Enable DynamoDB auto scaling to remove throttling under traffic growth
Short answer
B Implement DynamoDB auto scaling on the table so provisioned capacity keeps pace with the increased traffic.
Question
Key Takeaways
The error signal points at DynamoDB rather than Lambda: Lambda error and throttle rates are far below the overall error rate, so the downstream table is being throttled, and DynamoDB auto scaling adjusts provisioned capacity so the table keeps up as traffic grows.
A web application uses API Gateway, Lambda, and DynamoDB, and a marketing campaign increased demand. Requests now take much longer, twenty percent of requests return errors, Lambda throttling is only one percent and Lambda errors are ten percent, and the application logs show a DynamoDB call whenever an error occurs.
Common mistake: Increasing the Lambda concurrency limit. Lambda throttling accounts for only one percent of requests, so raising the concurrency ceiling adds simultaneous executions that each retry the same throttled table call, which increases load without reducing errors.
Expert Analysis
Why the Answer Is Correct
The metrics isolate the bottleneck. Twenty percent of requests error, but Lambda throttles are only one percent and Lambda errors are ten percent, so roughly half of all failures originate outside Lambda, and the application logs confirm that a DynamoDB call accompanies every error. That pattern is DynamoDB request throttling caused by provisioned read and write capacity no longer matching demand after the campaign. DynamoDB auto scaling adjusts the provisioned capacity of the table and its indexes as traffic changes, so the table absorbs the growth automatically and the errors and the associated latency stop, with no manual capacity planning as the application becomes more popular.
Why the Other Options Are Wrong
A: Increasing the Lambda concurrency limit addresses only the one percent of requests being throttled at the function level, and since the throttled table call is the actual failure, the additional concurrent executions simply retry the same failing request and add more load. C: Raising the API Gateway throttle limit increases the number of requests forwarded into a system that is already failing, so it worsens the backlog and the latency instead of reducing them. D: Recreating the table with a better-partitioned primary index addresses hot-key distribution, but nothing in the scenario indicates key skew, and the traffic simply grew beyond the current capacity, which is an auto scaling problem rather than a schema problem.
Community Comment Notes
The community voted 100 to 0 for B, and the consensus reasoning was that the error is tied to the DynamoDB call under a traffic spike, with a commenter linking the DynamoDB auto scaling documentation to confirm the mechanism.
Official Reference
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
kejam 👍 4 Answered Bhttps://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html
-
AzureDP900 👍 1Option B is right. Auto scaling for DynamoDB can help ensure that your table is always provisioned with enough capacity to handle incoming requests, which in turn can help prevent throttle limit exceeds. By automatically adjusting the provisioned capacity of your table based on actual usage patterns, you can maintain optimal performance and responsiveness, even during periods of high traffic or demand.
-
juanife 👍 1 Answered Bwithout any doubt it's b, since the error is related to calls against dynamodb when traffic spike ocurrs
-
alexis123456 👍 4Correct Answer is B
-
HunkyBunky 👍 2 Answered BAnswer is B
Show 1 more comment
-
career360guru 👍 1 Answered BOption B
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →