AWS Certified Developer Associate DVA-C02 Practice Question
Your team's e-commerce application hosted on AWS experiences spikes during flash sales that trigger write-capacity throttling errors in the database layer. These errors surface as exceptions when payment transactions attempt to write order data. You have been asked to modify the application's database interaction logic so that it remains reliable without immediately increasing capacity or incurring extra cost. Which pattern should you implement to handle these limitation errors?
Keep retrying failed transactions at a fixed interval until they succeed.
Implement a retry mechanism that uses progressively longer delays between attempts and adds random jitter (exponential backoff with jitter).
Automatically switch the table to on-demand capacity mode whenever throttling exceptions are caught.
Programmatically increase the table's provisioned capacity each time a throttling exception occurs.
When a database such as Amazon DynamoDB returns a ProvisionedThroughputExceededException, the request rate has temporarily exceeded the allocated write capacity. The recommended best practice is to retry the operation using exponential backoff and jitter-each retry waits progressively longer, with a small random variation, so that concurrent clients are less likely to retry in unison. This gives the table time to recover and spreads load more evenly.
Retrying at a fixed interval keeps applying pressure at the same frequency and is more likely to continue failing. Dynamically changing provisioned capacity from inside the application adds latency, may not take effect quickly enough, and raises cost. Switching the table to on-demand capacity requires an UpdateTable call that cannot be toggled frequently and can only be performed once every 24 hours, so it is unsuitable for per-request error handling.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is exponential backoff and jitter in retry mechanisms?
Open an interactive chat with Bash
What is a `ProvisionedThroughputExceededException`, and why does it occur?
Open an interactive chat with Bash
Why is dynamically adjusting provisioned capacity not recommended as an immediate solution?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .