Hard1 markMultiple Choice
Domain 2.4: Reliability RequirementsAPI GatewaySQSServerlessReliability

AWS SAP-C02 · Question 24 · Domain 2.4: Reliability Requirements

A company is designing an event-driven architecture. An Amazon API Gateway receives orders and triggers an AWS Lambda function. The Lambda function processes the order and sends a message to an Amazon SQS queue. A backend fleet of EC2 instances polls the queue. During peak times, the API receives thousands of requests per second, causing the Lambda function to hit concurrency limits and drop orders. How can the architect redesign the system to ensure NO orders are lost during traffic spikes?

Answer options:

A.

Increase the Lambda concurrency limit to 10,000.

B.

Configure API Gateway to integrate directly with the SQS queue, bypassing the Lambda function.

C.

Replace the SQS queue with Amazon Kinesis Data Streams.

D.

Add an Amazon ElastiCache cluster in front of the Lambda function.

How to approach this question

Look for the pattern that removes the bottleneck (Lambda) and uses a native buffer (SQS).

Full Answer

B.Configure API Gateway to integrate directly with the SQS queue, bypassing the Lambda function.✓ Correct
Configure API Gateway to integrate directly with the SQS queue, bypassing the Lambda function.
API Gateway supports direct AWS Service Integrations. By integrating API Gateway directly with SQS, you remove Lambda as a bottleneck. SQS acts as a durable buffer, ensuring no orders are lost during massive traffic spikes.

Common mistakes

Assuming Lambda is required to move data from API Gateway to SQS.

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

75 questions · hints · full answers · grading

More questions from this exam