DVA-C02 practice question 27 of 35
A developer has built an application that inserts data into an Amazon DynamoDB table. The table is configured to use provisioned capacity. The…
Full set: 598 questionsDomain Security
The ProvisionedThroughputExceededException error indicates that the application's request rate for write operations (inserts) is higher than the Write Capacity Units (WCUs) provisioned for the DynamoDB table. To resolve this, the developer can take two approaches. First, on the client-side, implementing an error handling strategy like exponential backoff (C) will reduce the request frequency by introducing progressively longer delays between retries. This smooths out traffic bursts and prevents overwhelming the table's capacity. Second, on the service-side, changing the table's capacity mode from provisioned to on-demand (E) allows DynamoDB to automatically manage the throughput capacity. It instantly accommodates the application's workload as it ramps up or down, eliminating throttling due to insufficient provisioned capacity.
A. The error originates from DynamoDB, not the EC2 instance. The instance is successfully sending the requests; the database is rejecting them. A larger instance will not solve the database capacity issue.
B. The application is inserting data, which consumes Write Capacity Units (WCUs). Increasing Read Capacity Units (RCUs) will not affect the table's write throughput and will not resolve the error.
D. Increasing the request frequency by decreasing the retry delay would exacerbate the throttling problem, leading to more ProvisionedThroughputExceededException errors, not fewer.
1. AWS DynamoDB Developer Guide, "Troubleshooting throttling issues in Amazon DynamoDB": This document explicitly states, "If you receive ProvisionedThroughputExceededException... you can increase the provisioned throughput for the table... Another option is to use on-demand capacity mode... The AWS SDKs have a default retry policy that includes exponential backoff." This supports options C and E.
2. AWS DynamoDB Developer Guide, "Read/write capacity mode": This guide details the two capacity modes. It explains that "On-demand mode is a good option if... You have unpredictable application traffic." This directly addresses the scenario where provisioned capacity is being exceeded, making option E a valid solution.
3. AWS SDKs and Tools Reference Guide, "Error retries and exponential backoff": This guide describes the standard mechanism for handling transient errors from AWS services. It states, "These are techniques that attempt to retry an operation after a certain amount of time, with an exponentially increasing wait time between retries... to improve the chances of a successful response." This validates option C as a best practice.
Keep practicing
Take the free DVA-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DVA-C02 practice questions
- Question 1A company has a multi-node Windows legacy application that runs on premises. The applicat…
- Question 2A developer migrated a legacy application to an AWS Lambda function. The function uses a …
- Question 3A development learn has an Amazon API Gateway REST API that is backed by an AWS Lambda fu…
- Question 4A company is expanding the compatibility of its photo-snaring mobile app to hundreds of a…
- Question 5A company has an ecommerce application. To track product reviews, the company's developme…
- Question 6A social media company is designing a platform that allows users to upload data, which is…
