SAP-C02 Study Assistant

SAP-C02 Question 421

API Gateway Lambda DynamoDB CloudWatch Auto Scaling

Question

A company has a web application that uses Amazon API Gateway. AWS Lambda, and Amazon DynamoDB. A recent marketing campaign has increased demand. Monitoring software reports that many requests have significantly longer response times than before the marketing campaign. A solutions architect enabled Amazon CloudWatch Logs for API Gateway and noticed that errors are occurring on 20% of the requests. In CloudWatch, the Lambda function Throttles metric represents 1% of the requests and the Errors metric represents 10% of the requests. Application logs indicate that, when errors occur, there is a call to DynamoDB. What change should the solutions architect make to improve the current response times as the web application becomes more popular? DynamoDB。

Options

A. Increase the concurrency limit of the Lambda function.

B. Implement DynamoDB auto scaling on the table.

C. Increase the API Gateway throttle limit.

D. Re-create the DynamoDB table with a better-partitioned primary index.

Answer

B

Explanation

Correct answer: B Explanation: The best answer is B. Correct option: B. Implement DynamoDB auto scaling on the table. Why this is correct: This option most directly satisfies the hard requirements in the question. For SA...

Log in to view the full explanation