Medium1 markMultiple Choice
Domain 2.3: DecouplingDomain 2ResilienceSQS

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

An application processes messages from an Amazon SQS queue. Occasionally, a malformed message causes the processing application to crash. The message is returned to the queue and causes the application to crash again in an infinite loop. How can this be prevented?

Answer options:

A.

Increase the visibility timeout of the SQS queue.

B.

Configure a Dead-Letter Queue (DLQ).

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 mechanism for handling 'poison pill' messages.

Full Answer

B.Configure a Dead-Letter Queue (DLQ).✓ Correct
Configure a Dead-Letter Queue (DLQ) for the SQS queue.
A Dead-Letter Queue (DLQ) is used to isolate messages that can't be processed successfully after a maximum number of receives. This prevents 'poison pill' messages from blocking the system.

Common mistakes

Thinking visibility timeout solves processing errors.

Practice the full AWS SAA-C03 Practice Exam 2

65 questions · hints · full answers · grading

More questions from this exam