AWS Certified Solutions Architect – Associate (SAA-C03) — Question 303

A company is hosting a web application from an Amazon S3 bucket. The application uses Amazon Cognito as an identity provider to authenticate users and return a JSON Web Token (JWT) that provides access to protected resources that are stored in another S3 bucket.

Upon deployment of the application, users report errors and are unable to access the protected content. A solutions architect must resolve this issue by providing proper permissions so that users can access the protected content.

Which solution meets these requirements?

Answer options

Correct answer: A

Explanation

Amazon Cognito identity pools provide temporary AWS credentials to authenticated users so they can access AWS services directly. To allow users to access protected resources in an Amazon S3 bucket, the identity pool must be configured to assume an IAM role that contains the necessary permissions. Modifying S3 ACLs or using custom attribute mappings does not grant the required AWS credentials to the authenticated Cognito users.