
Answer-first summary for fast verification
Answer: Username
The correct answer is A: Username. This option ensures that the workload is well-distributed across partitions as each user can submit only one request. Using the username as the partition key helps avoid hot partitions, where too many requests are directed to a single partition, causing uneven load distribution. Other options like submission date, validation status, and rating are not optimal because they can lead to imbalanced partitions due to the possible clustering of similar values.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company is introducing a new feature with an application form for early access. Given the expected influx of requests, each will be stored in a DynamoDB table with attributes for username, submission date, validation status (UNVALIDATED, VALID, NOT VALID), and a user rating from 1 to 5. To ensure a well-distributed workload across partitions, identify the optimal partition key for the DynamoDB table.
A
Username
B
Submission date
C
Validation status
D
Rating of the process
No comments yet.