Q81 — AWS DVA-C02 Ch.2
Question 81 of 100 | ← Chapter 2
A company is launching a new feature. Users can access the new feature by submitting a form. The company expects a large volume of requests when the form becomes available. Each request will be stored as an item in an Amazon DynamoDB table. Each item will contain the user’s username, submission date, and verification status (UNVALIDATED, VALID, or NOT VALID). Each item will also include the user’s rating of the process, on a scale from 1 to 5. Each user may submit only one request. For the DynamoDB table, developers must select a partition key that ensures good distribution of workload across partitions. Which DynamoDB attribute best meets these requirements?
- A. Username ✓
- B. Submission date
- C. Verification status
- D. Rating of the process, on a scale from 1 to 5
Correct Answer: A. Username
Explanation
A username is the most suitable DynamoDB attribute to serve as the partition key. Since each user can submit only one request, using username as the partition key ensures each user’s request is distributed across different partitions in the DynamoDB table, achieving good record distribution.