Bird
0
0

You configured a Dead Letter Queue but messages are not arriving there after failures. Which of the following is the most likely cause?

medium📝 Debug Q14 of 15
Spring Boot - Messaging
You configured a Dead Letter Queue but messages are not arriving there after failures. Which of the following is the most likely cause?
AThe message payload is empty
BThe listener method does not throw exceptions
CThe main queue is missing the <code>x-dead-letter-exchange</code> argument
DThe DLQ name is too long
Step-by-Step Solution
Solution:
  1. Step 1: Check DLQ configuration completeness

    If the main queue lacks the x-dead-letter-exchange argument, failed messages have no route to DLQ.
  2. Step 2: Evaluate other options

    Listener throwing exceptions is needed but not sufficient; DLQ name length and empty payload do not prevent DLQ routing.
  3. Final Answer:

    The main queue is missing the x-dead-letter-exchange argument -> Option C
  4. Quick Check:

    Missing DLX argument blocks DLQ routing [OK]
Quick Trick: DLQ needs dead-letter-exchange set on main queue [OK]
Common Mistakes:
  • Ignoring missing DLX argument
  • Blaming listener behavior alone
  • Worrying about DLQ name length unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes