Medium1 markMultiple Choice
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?
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
Q01A company has multiple AWS accounts in an AWS Organizations organization. The security team wants...MediumQ02A solutions architect is designing an application that will run on Amazon EC2 instances. The appl...EasyQ03A company wants to implement a federated identity solution for its employees to access the AWS Ma...MediumQ04A mobile application needs to access Amazon DynamoDB directly to read user-specific data. The app...HardQ05A company is hosting a web application on Amazon EC2 instances. The application connects to an Am...Medium
Expert