nerdexam
Amazon

DVA-C02 · Question #40

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…

The correct answer is C. Configure and use Amazon Cognito. Access DynamoDB with the authenticated users. This will allow the application to support 10,000 users concurrently and will provide a unique identifier for each user. By using Amazon Cognito, the company can authenticate users and then access DynamoDB with the authenticated users to store their preferences in a table. This…

Submitted by lucia.co· Mar 5, 2026Development with AWS Services

Question

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?

Options

  • ACreate a user cookie. Attach an IAM role to the S3 bucket that hosts the application.
  • BDeploy an Amazon CloudFront distribution with an origin access identity (OAI) to access the S3
  • CConfigure and use Amazon Cognito. Access DynamoDB with the authenticated users.
  • DCreate an IAM user for each user. Use fine-grained access control on the DynamoDB table to

How the community answered

(53 responses)
  • A
    2% (1)
  • B
    9% (5)
  • C
    83% (44)
  • D
    6% (3)

Explanation

This will allow the application to support 10,000 users concurrently and will provide a unique identifier for each user. By using Amazon Cognito, the company can authenticate users and then access DynamoDB with the authenticated users to store their preferences in a table. This approach will allow the company to control access to the DynamoDB table and to scale to any number of users. Creating a user cookie or deploying an Amazon CloudFront distribution with an OAI would not solve the problem because these solutions do not provide a way to uniquely identify users or control access to DynamoDB. Creating an IAM user for each user and using fine- grained access control on the DynamoDB table would not be practical or scalable because it would require the company to manage and maintain a large number of IAM users. When dealing with user profiles in serverless applications we often turn to Cognito for managing their credentials while the app itself will store user entities.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice