DVA-C02 · Question #766
A developer is designing a full-stack serverless application. Files for the website are stored in an Amazon S3 bucket. AWS Lambda functions that use Amazon API Gateway endpoints return results from…
The correct answer is A. Create an Amazon Cognito user pool and an app client. Configure the app client to use the user. An Amazon Cognito user pool provides a fully managed user directory with built-in registration and authentication. Creating a user pool with an app client and using the hosted UI offers the quickest, lowest-configuration way to add secure sign-up and sign-in to a serverless web…
Question
A developer is designing a full-stack serverless application. Files for the website are stored in an Amazon S3 bucket. AWS Lambda functions that use Amazon API Gateway endpoints return results from an Amazon DynamoDB table. The developer must create a solution that securely provides registration and authentication for the application while minimizing the amount of configuration. Which solution meets these requirements?
Options
- ACreate an Amazon Cognito user pool and an app client. Configure the app client to use the user
- BConfigure an Amazon Cognito identity pool. Map the users with IAM roles that are configured to
- CConfigure and launch an Amazon EC2 instance to set up an identity provider with an Amazon
- DCreate an IAM policy that allows access to the website that is stored in the S3 bucket. Attach the
How the community answered
(23 responses)- A87% (20)
- C9% (2)
- D4% (1)
Explanation
An Amazon Cognito user pool provides a fully managed user directory with built-in registration and authentication. Creating a user pool with an app client and using the hosted UI offers the quickest, lowest-configuration way to add secure sign-up and sign-in to a serverless web application without building or operating custom identity infrastructure.
Community Discussion
No community discussion yet for this question.