Soru

Zorluk: OrtaMulti-Account Identity and Access Management Federation

An enterprise is implementing identity federation using an external SAML 2.0 Identity Provider (IdP) to enable single sign-on (SSO) to multiple member accounts within their AWS Organization. The solutions architect configures a SAML provider object in each member account and creates an IAM role named 'FederatedOperationsRole' in those accounts. However, when users attempt to federate into the member accounts from the IdP portal, they receive an error indicating that they are not authorized to perform the assume role action. Which of the following configurations is required in the trust policy of the 'FederatedOperationsRole' in the member accounts to resolve this issue?

  1. A
    Define the Principal as the Amazon Resource Name (ARN) of the SAML provider, but set the Action to sts:AssumeRole to allow standard cross-account role assumption.
  2. B
    Define the Principal as the root user of the member account, set the Action to sts:AssumeRole, and attach a Service Control Policy (SCP) to the Organizational Unit allowing the SAML provider to assume the role.
  3. Define the Principal as the Amazon Resource Name (ARN) of the SAML provider created in the member account, and set the Action to sts:AssumeRoleWithSAML.Cevap
  4. D
    Define the Principal as the Amazon Resource Name (ARN) of the SAML provider, and set the Action to sts:AssumeRoleWithWebIdentity to support federated web access.

Cevap

Define the Principal as the Amazon Resource Name (ARN) of the SAML provider created in the member account, and set the Action to sts:AssumeRoleWithSAML.
To successfully federate using SAML 2.0, the IAM role trust policy in the target member account must trust the SAML provider. This is accomplished by setting the Principal to the ARN of the SAML provider created in the account and specifying the Action as sts:AssumeRoleWithSAML. This allows the AWS STS service to accept the SAML assertion and issue temporary security credentials.

Adım Adım Çözüm

1
Identify the authentication protocol being used.
The scenario specifies SAML 2.0 identity federation.
Choosing the correct API call depends on whether SAML 2.0 or OIDC/Web Identity is used.
2
Verify the correct Security Token Service (STS) action for SAML 2.0.
The correct action is sts:AssumeRoleWithSAML.
AWS Security Token Service provides specialized actions for different federation types.
3
Configure the trust policy Principal field.
Set the Principal to the Federated provider ARN of the local SAML provider.
This establishes a trust relationship between the IAM role and the external identity provider.

Anahtar Kavram

SAML 2.0 Federation Trust Relationships
Tahmini Süre:2m 0s
Bu soruyu puanla