Easy1 markMultiple Choice
Domain 2.3: DecouplingResilienceSQSDLQ

AWS SAA-C03 · Question 34 · Domain 2.3: Decoupling

A company is using Amazon SQS to process background jobs. Occasionally, a message causes the consumer application to crash, and the message is returned to the queue. This creates an infinite loop where the bad message is repeatedly picked up and crashes the application. <br/><br/>How can a solutions architect resolve this issue?

Answer options:

A.

Increase the visibility timeout of the SQS queue.

B.

Configure a Dead-Letter Queue (DLQ) and set the maxReceiveCount on the main queue.

C.

Change the queue type from Standard to FIFO.

D.

Use AWS Lambda to filter out bad messages before they reach the queue.

How to approach this question

Recognize the 'poison pill' scenario and the standard SQS feature used to handle it.

Full Answer

B.Configure a Dead-Letter Queue (DLQ) and set the maxReceiveCount on the main queue.✓ Correct
Configure a Dead-Letter Queue (DLQ) and set the maxReceiveCount on the main queue.
A dead-letter queue (DLQ) is a queue that other (source) queues can target for messages that can't be processed successfully. You set a `maxReceiveCount` on the source queue. If a message is received that many times without being deleted, SQS moves it to the DLQ.

Common mistakes

Thinking visibility timeout solves the problem.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam