Medium1 markMultiple Choice
Domain 2.4: ReliabilityReliabilitySQSDecoupling

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

An architecture uses Amazon API Gateway and AWS Lambda. During traffic spikes, the backend database becomes overwhelmed, causing Lambda functions to timeout and fail. How can the architect improve the reliability of this system with the LEAST architectural changes?

Answer options:

A.

Migrate the database to Amazon DynamoDB.

B.

Implement Amazon SQS as a buffer between API Gateway and Lambda.

C.

Increase the timeout setting on the Lambda functions.

D.

Use AWS Step Functions to orchestrate the API calls.

How to approach this question

Identify the pattern for decoupling and buffering requests to protect downstream systems.

Full Answer

B.Implement Amazon SQS as a buffer between API Gateway and Lambda.✓ Correct
Implement Amazon SQS as a buffer between API Gateway and Lambda.
Amazon SQS provides a reliable, highly scalable queue that can buffer requests, preventing downstream services like databases from being overwhelmed.

Common mistakes

Increasing Lambda timeouts, which just leads to longer failures and higher costs.

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

75 questions · hints · full answers · grading

More questions from this exam