Medium1 markMultiple Choice
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?
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
Q01A company wants to ensure that no AWS resources can be created in the ap-northeast-1 region acros...EasyQ02A web application runs on Amazon EC2 instances behind an Application Load Balancer (ALB). The com...EasyQ03A company is storing highly sensitive data in an Amazon S3 bucket. The security team requires tha...MediumQ04An application running on an EC2 instance needs to access an Amazon DynamoDB table in a different...HardQ05A company needs to store database credentials securely. The credentials must be automatically rot...Medium
Expert