AWS Certified Developer – Associate — Question 124
A company uses the AWS SDK for JavaScript in the Browser to build a web application and then hosts the application on Amazon S3. The company wants the application to support 10,000 users concurrently. The company selects Amazon DynamoDB to store user preferences in a table. There is a requirement to uniquely identify users at any scale.
Which solution will meet these requirements?
Answer options
- A. Create a user cookie. Attach an 1AM role to the S3 bucket that hosts the application.
- B. Deploy an Amazon CloudFront distribution with an origin access identity (OAI) to access the S3 bucket.
- C. Configure and use Amazon Cognito. Access DynamoDB with the authenticated users.
- D. Create an IAM user for each user. Use fine-grained access control on the DynamoDB table to control access.
Correct answer: C
Explanation
Option C is correct because Amazon Cognito allows for user authentication and can efficiently manage user identities at scale, enabling access to DynamoDB seamlessly. Options A and B do not directly address the requirement for user identification and management. Option D is not scalable due to the need to create individual IAM users, which is impractical for 10,000 users.