Medium1 markMultiple Choice
Domain 2.4: ReliabilityServerlessSQSReliability

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)

Answer options:

A.

Configure a Dead Letter Queue (DLQ) on the SQS queue.

B.

Configure a Dead Letter Queue (DLQ) on the API Gateway.

C.

Set the maxReceiveCount on the SQS queue to a value greater than 1.

D.

Enable AWS X-Ray on the Lambda function to store the failed messages.

E.

Configure the Lambda function to write failed messages to Amazon ElastiCache.

F.

Use Amazon SNS instead of SQS to ensure message delivery.

How to approach this question

Identify the SQS feature for handling failed messages.

Full Answer

Configure a Dead Letter Queue (DLQ) on the SQS queue., Set the maxReceiveCount on the SQS queue to a value greater than 1.
To prevent data loss from failed processing, configure an SQS Dead Letter Queue (DLQ). The `maxReceiveCount` parameter determines how many times the consumer (Lambda) can attempt to process the message before it is moved to the DLQ.

Common mistakes

Thinking Lambda needs a DLQ configured directly when consuming from SQS (the DLQ should be on the SQS queue itself).

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

75 questions · hints · full answers · grading

More questions from this exam