Medium1 markMultiple Choice

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

An application processes messages from an Amazon SQS queue. Occasionally, a malformed message causes the processing application to crash, and the message is returned to the queue, creating an infinite loop. How can a solutions architect prevent this?

Answer options:

A.

Increase the visibility timeout of the SQS queue.

B.

Configure a Dead-Letter Queue (DLQ).

C.

Change the queue to a FIFO queue.

D.

Enable long polling on the SQS queue.

How to approach this question

Identify the 'poison pill' message scenario. DLQs are designed to isolate these messages.

Full Answer

B.Configure a Dead-Letter Queue (DLQ).✓ Correct
Configure a Dead-Letter Queue (DLQ).
A Dead-Letter Queue (DLQ) is used to isolate messages that cannot be processed successfully after a maximum number of receives. This prevents 'poison pill' messages from continuously crashing the consumer application.

Common mistakes

Increasing visibility timeout, which only delays the inevitable failure.

Practice the full AWS SAA-C03 Practice Exam 3

65 questions · hints · full answers · grading

More questions from this exam