
Answer-first summary for fast verification
Answer: Implement a Dead Letter Queue
Implement a Dead Letter Queue Dead-letter queues can be used by other queues (source queues) as a target for messages that can't be processed (consumed) successfully. Dead-letter queues are useful for debugging your application or messaging system because they let you isolate problematic messages to determine why their processing doesn't succeed. Sometimes, messages can’t be processed because of a variety of possible issues, such as when a user comments on a story but it remains unprocessed because the original story itself is deleted by the author while the comments were being posted. In such a case, the dead-letter queue can be used to handle message processing failures.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a scenario where applications running on EC2 instances are tasked with processing messages from an Amazon SQS (Simple Queue Service) queue, there are occasional instances where messages fail to be processed, resulting in errors. To identify and isolate these problematic messages for further debugging and analysis, which option would be most effective?
A
Implement a Dead Letter Queue
B
Use DeleteMessage
C
Reduce the VisibilityTimeout
D
Increase the VisibilityTimeout
No comments yet.