
Answer-first summary for fast verification
Answer: Use a dead-letter queue to handle message processing failures
Overall explanation Correct option: Use a dead-letter queue to handle message processing failures 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.
An e-commerce company utilizes Amazon SQS queues to create a loosely coupled application architecture. The development team has encountered a specific edge case where message processing fails: a user places an order for a particular product ID, but the product ID is subsequently deleted, leading to a failure in the application code.
As a Developer Associate, which solution would you recommend to effectively handle these message processing failures?
A
Use a dead-letter queue to handle message processing failures
B
Use short polling to handle message processing failures
C
Use a temporary queue to handle message processing failures
D
Use long polling to handle message processing failures
No comments yet.