Medium1 markMultiple Choice

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

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 repeatedly crashes the application. Which TWO actions should the solutions architect take to resolve this? (Select TWO.)

Answer options:

A.

Increase the visibility timeout of the SQS queue.

B.

Create a Dead-Letter Queue (DLQ).

C.

Configure a redrive policy on the main SQS queue.

D.

Enable long polling on the SQS queue.

E.

Use AWS Lambda to filter out malformed messages before they enter the queue.

How to approach this question

Identify the 'poison pill' message scenario and apply the Dead-Letter Queue pattern.

Full Answer

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 on the source queue to specify the maxReceiveCount and the target DLQ.

Common mistakes

Thinking visibility timeout solves the issue; it only postpones it.

Practice the full AWS SAA-C03 Practice Exam 5

65 questions · hints · full answers · grading

More questions from this exam