A developer built a game that stores player data in an Amazon DynamoDB table where the partition key is the player's country. After a sudden surge of players from one country, the application starts throwing ProvisionedThroughputExceededException errors. What should the developer do to address these errors?
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the primary key to include more unique identifiers..
Why this is the answer
The correct answer is to modify the primary key to include more unique identifiers. The ProvisionedThroughputExceededException indicates that a single partition key (the player's country) is experiencing a "hot partition" due to an uneven distribution of read/write requests. By adding more unique identifiers to the primary key (e.g., player ID in addition to country), the data can be distributed across more partitions, allowing DynamoDB to scale throughput more effectively. Using strongly consistent reads would increase the read capacity units consumed, worsening the problem. Implementing pagination reduces the amount of data returned per query but doesn't resolve the underlying hot partition issue. Using the Scan operation is generally inefficient for large tables and would consume even more throughput, potentially exacerbating the errors.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed