An enterprise with a multi-account AWS environment managed under AWS Organizations uses an external SAML 2.0 Identity Provider (IdP) to authenticate corporate users. The security team wants users to federate first into a central Identity account () and then assume a target role named WorkloadDeveloperRole in a member Production account () to manage resources.
To scale administration, the security team enforces Attribute-Based Access Control (ABAC). Users must only manage resources in the Production account where the resource tag CostCenter matches the user's CostCenter attribute from the corporate directory. This attribute must be securely propagated from the IdP through the federation session to the cross-account role.
Which two configurations must the solutions architect implement to establish this trust relationship and ensure compliant access? (Select two.)
- Configure the SAML assertion in the corporate IdP to map the user's CostCenter attribute to https://aws.amazon.com/SAML/Attributes/PrincipalTag:CostCenter. In the Identity account (), configure the trust policy of the federated IAM role to allow both the sts:AssumeRoleWithSAML and sts:TagSession actions for the SAML provider principal.Cevap
- In the Production account (), configure the trust policy of WorkloadDeveloperRole to allow both the sts:AssumeRole and sts:TagSession actions for the Identity account's federated role principal. In the Identity account, configure the federated role's permissions policy to allow sts:AssumeRole on the target role, and configure the cross-account role assumption to pass the CostCenter tag as a transitive session tag.Cevap
- CConfigure the trust policy of the initial federated role in the Identity account () to allow only the sts:AssumeRole action for the SAML provider principal, and configure the corporate IdP to sign the SAML assertion with a private key registered in AWS IAM.
- DAttach a Service Control Policy (SCP) to the Organizational Unit (OU) containing the Production account () that allows the sts:AssumeRole and sts:TagSession actions for the federated role in the Identity account (), thereby overriding the need to define a local trust policy on the WorkloadDeveloperRole in the Production account.
- EIn the Identity account (), configure the trust policy of the federated role to allow only sts:AssumeRoleWithSAML. In the Production account (), configure the trust policy of WorkloadDeveloperRole to allow sts:AssumeRole from the SAML provider principal directly, bypassing the Identity account for the cross-account step.