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?
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
Q01A company stores sensitive documents in an Amazon S3 bucket. The security team requires that only...EasyQ02A large enterprise uses AWS Organizations to manage multiple accounts. The security team wants to...MediumQ03A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (AL...EasyQ04A company wants to continuously monitor its AWS accounts for malicious activity and unauthorized ...MediumQ05A company needs to encrypt data at rest in Amazon RDS and manage database credentials securely. T...Medium
Expert