AWS SAP-C02 · Question 35 · Domain 2.4: Reliability
A company is designing an event-driven architecture. An Amazon API Gateway receives orders and places them in an Amazon SQS queue. An AWS Lambda function processes the orders. The company wants to ensure that if the Lambda function fails to process an order after multiple retries, the order data is not lost and can be analyzed later. Which combination of steps should be taken? (Select TWO)
A company is designing an event-driven architecture. An Amazon API Gateway receives orders and places them in an Amazon SQS queue. An AWS Lambda function processes the orders. The company wants to ensure that if the Lambda function fails to process an order after multiple retries, the order data is not lost and can be analyzed later. Which combination of steps should be taken? (Select TWO)
Answer options:
Configure a Dead Letter Queue (DLQ) on the SQS queue.
Configure a Dead Letter Queue (DLQ) on the API Gateway.
Set the maxReceiveCount on the SQS queue to a value greater than 1.
Enable AWS X-Ray on the Lambda function to store the failed messages.
Configure the Lambda function to write failed messages to Amazon ElastiCache.
Use Amazon SNS instead of SQS to ensure message delivery.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7
75 questions · hints · full answers · grading
Expert