A financial technology enterprise manages its multi-account environment using AWS Organizations. The security team mandates that all human operators must access AWS member accounts exclusively via SAML 2.0 federation with the corporate Identity Provider (IdP). To prevent backdoors, the architect must ensure that no external AWS accounts outside the organization o-1234567890 can perform cross-account role assumption into the member accounts, while internal cross-account role assumption between member accounts remains fully functional. The corporate SAML provider CorporateIdP has already been created in the member accounts.
Which combination of an IAM role trust policy in the member accounts and a Service Control Policy (SCP) at the Organization root will securely achieve this goal?
- Configure the IAM role trust policy in the member accounts with the Action set to "sts:AssumeRoleWithSAML" and the Principal set to the CorporateIdP SAML provider ARN. Apply an SCP at the Organization root that denies the Action "sts:AssumeRole" for all resources with a condition of StringNotEqualsIfExists for "aws:PrincipalOrgID" set to "o-1234567890".Answer
- BConfigure the IAM role trust policy in the member accounts with the Action set to "sts:AssumeRole" and the Principal set to the CorporateIdP SAML provider ARN. Apply an SCP at the Organization root that denies the Action "sts:AssumeRole" for all resources with a condition of StringNotEqualsIfExists for "aws:PrincipalOrgID" set to "o-1234567890".
- CConfigure the IAM role trust policy in the member accounts with the Action set to "sts:AssumeRoleWithSAML" and the Principal set to the CorporateIdP SAML provider ARN. Apply an SCP at the Organization root that denies the Action "sts:AssumeRole" for all resources with a condition of StringNotEquals for "aws:PrincipalOrgID" set to "o-1234567890".
- DConfigure the IAM role trust policy in the member accounts with the Action set to "sts:AssumeRoleWithSAML" and the Principal set to the CorporateIdP SAML provider ARN. Apply an SCP at the Organization root that denies the Actions "sts:AssumeRole" and "sts:AssumeRoleWithSAML" for all resources with a condition of StringNotEqualsIfExists for "aws:PrincipalOrgID" set to "o-1234567890".