Medium1 markMultiple Choice
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?
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
Q01An enterprise has 50 VPCs across two AWS Regions. They need to establish transitive routing betwe...HardQ02A company uses AWS Organizations. The security team wants to ensure that no IAM user or role can ...MediumQ03An application requires a relational database with an RPO of 1 second and an RTO of less than 1 m...HardQ04A company is setting up a new multi-account environment. They want to automate the provisioning o...MediumQ05An organization wants to allocate AWS costs to specific business units. They use AWS Organization...Hard
Expert