DVA-C02 · Question #403
A developer has an application that uses an Amazon DynamoDB table with a configured local secondary index (LSI). During application testing, the DynamoDB table metrics report a ProvisionedThroughputEx
The correct answer is A. The data in the table's partition key column is not evenly distributed.. A ProvisionedThroughputExceededException that occurs without exceeding overall table capacity is a classic symptom of a hot partition caused by uneven partition key distribution.
Question
A developer has an application that uses an Amazon DynamoDB table with a configured local secondary index (LSI). During application testing, the DynamoDB table metrics report a ProvisionedThroughputExceededException error message. The number of requests made by the test suite did not exceed the table's provisioned capacity limits. What is the cause of this issue?
Options
- AThe data in the table's partition key column is not evenly distributed.
- BThe LSI's capacity is different from the table's capacity.
- CThe application is not implementing exponential backoff retry logic while interacting with the
- DThe application has the IAM permission to query the DynamoDB table but not to query the LSI.
How the community answered
(32 responses)- A63% (20)
- B13% (4)
- C22% (7)
- D3% (1)
Why each option
A ProvisionedThroughputExceededException that occurs without exceeding overall table capacity is a classic symptom of a hot partition caused by uneven partition key distribution.
DynamoDB distributes data across partitions based on partition key values. When partition key data is not evenly distributed, a disproportionate share of requests is routed to a single partition, exhausting that partition's share of the allocated throughput even though the table-level capacity appears sufficient.
A Local Secondary Index shares the read and write capacity of its base table partition; it does not have separate or different capacity limits that could cause this error independently.
Lack of exponential backoff retry logic means the application does not handle throttling gracefully, but it is not the root cause of the throttling itself.
Insufficient IAM permissions to query an LSI would result in an AccessDeniedException, not a ProvisionedThroughputExceededException.
Concept tested: DynamoDB hot partition from uneven partition key distribution
Source: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html
Community Discussion
No community discussion yet for this question.