Bird
0
0

Which scenario best describes when a message should be sent to a Dead Letter Queue in Kafka?

easy📝 Conceptual Q2 of 15
Kafka - Event-Driven Architecture
Which scenario best describes when a message should be sent to a Dead Letter Queue in Kafka?
AWhen the message is older than a certain timestamp.
BWhen the message is successfully processed.
CWhen the message is consumed multiple times without error.
DWhen the message format is invalid and cannot be parsed.
Step-by-Step Solution
Solution:
  1. Step 1: Identify error conditions for DLQ usage

    Messages that cannot be processed due to format errors or other failures are candidates for DLQ to avoid blocking the main topic.
  2. Step 2: Eliminate non-error scenarios

    Successful processing or repeated consumption without error does not require DLQ. Age alone is not a reason for DLQ.
  3. Final Answer:

    When the message format is invalid and cannot be parsed. -> Option D
  4. Quick Check:

    DLQ triggers on processing errors = true [OK]
Quick Trick: Send only unprocessable messages to DLQ [OK]
Common Mistakes:
MISTAKES
  • Sending successfully processed messages to DLQ
  • Sending messages based on age alone
  • Confusing repeated consumption with errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes