An enterprise is designing a centralized identity federation strategy for its multi-account AWS environment managed under AWS Organizations. The security team is configuring an external SAML 2.0 Identity Provider (IdP) to allow corporate users to authenticate and assume IAM roles in member accounts. The architecture must support Attribute-Based Access Control (ABAC) by dynamically passing user department tags from the IdP to the target AWS sessions. Additionally, central administrators must enforce guardrails that prevent member account administrators from altering the federation setup, while still requiring member account administrators to manage local resource permissions. Which combination of actions must the solutions architect perform to meet these requirements? (Select TWO.)
- Configure the external SAML IdP to pass the department attribute as a session tag using the claim name 'https://aws.amazon.com/SAML/Attributes/PrincipalTag:Department'. In the member accounts, configure the trust policy of the target IAM roles to allow the 'sts:AssumeRoleWithSAML' and 'sts:TagSession' actions for the SAML provider principal.Answer
- BConfigure the external SAML IdP to pass the department attribute as a session tag using the claim name 'https://aws.amazon.com/SAML/Attributes/PrincipalTag:Department'. In the member accounts, configure the trust policy of the target IAM roles to allow 'sts:AssumeRole' and 'sts:TagSession' actions for the SAML provider principal.
- Create a Service Control Policy (SCP) and attach it to the organization's root to deny 'iam:DeleteSAMLProvider' and 'iam:UpdateSAMLProvider' actions. Ensure that local IAM policies in the member accounts explicitly grant resource-level permissions to the federated roles.Answer
- DCreate a Service Control Policy (SCP) and attach it to the Organizational Unit (OU) containing the member accounts to allow resource access for federated roles containing the 'aws:PrincipalTag/Department' condition, eliminating the need for local IAM policies to grant permissions.
- EConfigure the SAML assertion to include the user's department in the Subject NameID attribute. In the member accounts, construct local IAM policies that use the 'aws:username' policy variable to dynamically restrict access based on the department value.