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.)
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
Q01A company needs to grant an external auditor read-only access to specific AWS resources. The audi...EasyQ02An application running on EC2 instances needs to access objects in an S3 bucket. The security tea...MediumQ03A company is designing a VPC for a multi-tier web application. They need to block specific malici...MediumQ04A large enterprise uses AWS Organizations to manage multiple accounts. The security team wants to...HardQ05A company hosts a web application on an Application Load Balancer (ALB). They are experiencing SQ...Medium
Expert