Medium1 markMultiple Choice
Domain 2.3: Decoupling MechanismsDomain 2ResilienceSQSDLQ

AWS SAA-C03 · Question 31 · Domain 2.3: Decoupling Mechanisms

An application processes messages from an Amazon SQS queue. Occasionally, a message causes the processing application to crash, and the message is returned to the queue, creating an infinite loop of failures. How can a solutions architect prevent these 'poison pill' messages from blocking the queue?

Answer options:

A.

Increase the visibility timeout of the SQS queue.

B.

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

C.

Use an SQS FIFO queue instead of a standard queue.

D.

Enable long polling on the SQS queue.

How to approach this question

Identify the term 'poison pill' or 'infinite loop of failures' and match it with Dead-Letter Queue (DLQ).

Full Answer

B.Configure a Dead-Letter Queue (DLQ) and set the maxReceiveCount.✓ Correct
Configure a Dead-Letter Queue (DLQ) and set the maxReceiveCount.
A Dead-Letter Queue (DLQ) is an SQS queue that other queues can target for messages that can't be processed successfully. You configure a redrive policy with a `maxReceiveCount`. When a message is received that many times without being deleted, it is moved to the DLQ.

Common mistakes

Choosing visibility timeout, which only hides the message temporarily before it fails again.

Practice the full AWS SAA-C03 Practice Exam 1

65 questions · hints · full answers · grading

More questions from this exam