DVA-C02 · Question #600
A developer maintains a serverless application that uses an Amazon API Gateway REST API to invoke an AWS Lambda function by using a non-proxy integration. The Lambda function returns data, which is st
The correct answer is A. Use provisioned capacity mode for the DynamoDB table, and assign sufficient capacity units.. Using provisioned capacity ensures sufficient throughput for the DynamoDB table. Configuring the Lambda function to implement exponential backoff retries reduces the chance of exceeding capacity during peak usage. This combination addresses the root cause (ProvisionedThroughputEx
Question
A developer maintains a serverless application that uses an Amazon API Gateway REST API to invoke an AWS Lambda function by using a non-proxy integration. The Lambda function returns data, which is stored in Amazon DynamoDB. Several application users begin to receive intermittent errors from the API. The developer examines Amazon CloudWatch Logs for the Lambda function and discovers several ProvisionedThroughputExceededException errors. The developer needs to resolve the errors and ensure that the errors do not reoccur. Which solution will meet these requirements?
Options
- AUse provisioned capacity mode for the DynamoDB table, and assign sufficient capacity units.
- BUpdate the REST API to send requests on an Amazon SQS queue. Configure the Lambda
- CConfigure a usage plan for the REST API.
- DUpdate the REST API to invoke the Lambda function asynchronously.
How the community answered
(44 responses)- A66% (29)
- B11% (5)
- C18% (8)
- D5% (2)
Explanation
Using provisioned capacity ensures sufficient throughput for the DynamoDB table. Configuring the Lambda function to implement exponential backoff retries reduces the chance of exceeding capacity during peak usage. This combination addresses the root cause (ProvisionedThroughputExceededException) and prevents errors without overprovisioning.
Community Discussion
No community discussion yet for this question.