A developer is building an enterprise web application. The application must authenticate corporate users using an external SAML 2.0 Identity Provider (IdP) and provide them with access to two resources: a secure REST API hosted on Amazon API Gateway, and a private Amazon S3 bucket for uploading reports directly from the client.
Which TWO configurations are required to meet these requirements? (Select TWO.)
- Configure an Amazon Cognito User Pool with the external SAML Identity Provider (IdP) to handle user authentication, and set up an API Gateway Cognito Authorizer using the User Pool's tokens.Cevap
- Configure an Amazon Cognito Identity Pool that uses the User Pool as an identity provider, and assign an authenticated IAM role with write permissions to the Amazon S3 bucket.Cevap
- CConfigure an API Gateway Lambda Authorizer to validate the SAML token and generate temporary IAM credentials to allow the client to upload files to the Amazon S3 bucket.
- DConfigure the Amazon Cognito User Pool to directly issue temporary AWS credentials to the client application upon successful SAML federation.
- EConfigure a Cognito User Pool resource server with custom OAuth 2.0 scopes to authorize direct file uploads to the Amazon S3 bucket.
Cevap
Configure an Amazon Cognito User Pool with the external SAML Identity Provider (IdP) to handle user authentication, and set up an API Gateway Cognito Authorizer using the User Pool's tokens. In addition, configure an Amazon Cognito Identity Pool that uses the User Pool as an identity provider, and assign an authenticated IAM role with write permissions to the Amazon S3 bucket.
The correct architecture uses an Amazon Cognito User Pool to federate authentication with the SAML Identity Provider (IdP) and secures the API Gateway using a Cognito Authorizer with the generated JWT. It also uses an Amazon Cognito Identity Pool (Federated Identities) to exchange the User Pool JWT for temporary AWS credentials defined by an authenticated IAM role, enabling the client application to upload reports directly to Amazon S3.
Adım Adım Çözüm
Anahtar Kavram
Integration of Cognito User Pools for user directory/federation and Cognito Identity Pools for temporary AWS credential delegation.