An enterprise is implementing a multi-account strategy using AWS Organizations. The solutions architect is configuring federated access for a remote team of data engineers who must access Amazon S3 buckets across multiple target member accounts. The authentication flow must use the company's external SAML 2.0-compliant Identity Provider (IdP). The solutions architect has created the SAML identity provider object in each target AWS account. The data engineers must authenticate via the IdP and assume a specific cross-account IAM role named DataEngineerRole in the target accounts. However, during testing, the data engineers receive an "Access Denied" error immediately after authenticating with the IdP and attempting to redirect to the AWS Management Console. Which combination of configuration adjustments must the solutions architect perform to resolve this issue?
- AAttach a Service Control Policy (SCP) to the target accounts' Organizational Unit (OU) that explicitly allows the sts:AssumeRole action for the external Identity Provider. Remove the local trust policy from the target DataEngineerRole to allow the role to inherit permissions from the parent OU.
- Update the trust policy of DataEngineerRole in each target account to allow the sts:AssumeRoleWithSAML action for the federated SAML provider principal. Ensure the SAML assertion sent by the Identity Provider includes the https://aws.amazon.com/SAML/Attributes/Role and https://aws.amazon.com/SAML/Attributes/RoleSessionName attributes.Answer
- CUpdate the trust policy of DataEngineerRole to grant the sts:AssumeRole action to the AWS account root principal of the identity provider's host account. Configure the Identity Provider's SAML assertion to pass the user's corporate email address as the RoleSessionName and target the default AWS STS endpoint.
- DConfigure the Identity Provider to authenticate using OpenID Connect (OIDC) protocols. Update the target IAM role trust policy to allow the sts:AssumeRoleWithWebIdentity action, referencing the OIDC provider's client ID, and map the SAML attributes to the OIDC subject claim.