Hard1 markMultiple Choice
Domain 2.4: ReliabilityServerlessDynamoDBAPI Gateway

AWS SAP-C02 · Question 20 · Domain 2.4: Reliability

A company is designing a serverless application using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. The application must handle unpredictable spikes in traffic. During load testing, the API Gateway returns 504 Gateway Timeout errors, and DynamoDB returns ProvisionedThroughputExceededException errors. Which combination of actions will resolve these issues? (Select TWO)

Answer options:

A.

Change the DynamoDB table to On-Demand capacity mode.

B.

Increase the API Gateway timeout limit to 60 seconds.

C.

Optimize the Lambda function code to execute faster or increase its memory allocation.

D.

Enable API Gateway caching to reduce the load on DynamoDB.

E.

Configure DynamoDB Auto Scaling with a target utilization of 90%.

F.

Switch from API Gateway to an Application Load Balancer.

How to approach this question

Address both the database throttling and the API timeout.

Full Answer

DynamoDB On-Demand mode is best for unpredictable spikes. API Gateway 504 errors occur when Lambda takes longer than 29 seconds, so Lambda must be optimized to execute faster.

Common mistakes

Trying to increase the API Gateway timeout beyond its hard limit.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

75 questions · hints · full answers · grading

More questions from this exam