Security, Compliance, and Governance

An Amazon EKS application in account A uses EKS Pod Identity and must access a resource in account B through an IAM role owned by account B. Which role arrangement supports this requirement?

Show the answer

Correct answerB. Associate a role in account A, then assume the role in account B.

AWhy not this: An IAM role is not an OIDC identity provider, and Pod Identity does not require an IAM OIDC provider.

BWhy this is right: A same-account association supplies the initial identity, which can assume a trusted target role in another account.

CWhy not this: The agent's node credentials are not the application's Pod Identity role, and this does not establish cross-account pod access.

DWhy not this: The role in a Pod Identity association must belong to the same AWS account as the cluster.

An EKS Pod Identity association uses a role in the cluster's account. For cross-account access, the association can also name a target role in account B (targetRoleArn); EKS assumes the source role and then chains to the target role, which must trust the source role. Associating the service account directly with only a role in another account is not supported.