An enterprise manages a multi-account AWS environment using AWS Organizations. The security team is setting up identity federation with an external SAML 2.0 Identity Provider (IdP) to allow developers to access a role named DeveloperRole in several member accounts. The architecture must meet the following requirements:
1. Developers must authenticate via the corporate IdP and receive a federated session with access rights determined by their department attribute (attribute-based access control, or ABAC).
2. All federated sessions across all accounts must be prohibited from making changes to account billing settings.
3. Administrative overhead should be minimized while adhering to the principle of least privilege.
Which two configuration steps must the solutions architect perform to implement this solution? (Select two.)
- In each member account, create a SAML identity provider resource and a role named DeveloperRole. Configure the trust policy of the DeveloperRole to list the SAML identity provider as the principal, allow the sts:AssumeRoleWithSAML and sts:TagSession actions, and map the department attribute to the aws:PrincipalTag/Department session tag.Answer
- Create a Service Control Policy (SCP) that denies billing modification actions, and attach it to the target Organizational Units (OUs) or member accounts. In each member account, attach an IAM policy to the DeveloperRole that grants the necessary permissions for developer activities.Answer
- CCreate a single Service Control Policy (SCP) at the Organization root that defines the external SAML IdP as the principal and allows the sts:AssumeRoleWithSAML action, enabling trust for all member accounts without modifying individual local IAM role trust policies.
- DIn each member account, create a role named DeveloperRole with a trust policy that allows the sts:AssumeRole action for the SAML identity provider. Configure the SAML identity provider to pass the department attribute within the SAML assertion as a standard session policy instead of session tags.
- EConfigure the trust policy of a centralized DeveloperRole in the management account to trust the SAML IdP. Configure a Service Control Policy (SCP) at the organization root that dynamically permits role chaining from the management account to member accounts, bypassing the need for individual trust policies in the member accounts.