API Testing · Senior · Question 23 of 75
What is a dead-letter queue and how is it tested?
- 1A backup queue that receives copies of every message
- 2Where failing messages go; test that poison messages land there
- 3A queue for deleted users; test that it empties every day
Show the answer
Correct answer: Where failing messages go; test that poison messages land there
Explanation
A malformed message shouldn't block a consumer forever. Tests send one and check it's moved aside with enough context to fix.