A software development company is setting up federated access for its development teams to access multiple AWS accounts within an AWS Organization. The developer identities are managed in an external OpenID Connect (OIDC) compliant identity provider. A Solutions Architect registers the OIDC provider as an IAM Identity Provider in each target member account and creates an IAM role named DeveloperRole in those accounts with appropriate permissions. However, when developers attempt to authenticate using the OIDC provider and assume the DeveloperRole, the requests fail. Upon reviewing the configurations, the architect finds that the IAM roles cannot be assumed via OIDC. Which of the following is the most likely configuration error causing this issue?
- The trust policy of DeveloperRole in the member accounts specifies the sts:AssumeRole action instead of the sts:AssumeRoleWithWebIdentity action.Cevap
- BThe Solutions Architect attached a Service Control Policy (SCP) to the Organizational Unit (OU) containing the member accounts to grant the federated users access to DeveloperRole, assuming the SCP would override the need for local role trust policies.
- CThe trust policy of DeveloperRole in the member accounts specifies the sts:AssumeRoleWithSAML action instead of the sts:AssumeRoleWithWebIdentity action.
- DThe trust policy of DeveloperRole references the OIDC provider as an AWS service principal under the Principal block instead of specifying the federated provider's ARN.