Bird
0
0

You notice messages with the same key are arriving out of order in your consumer. What is a likely cause?

medium📝 Debug Q6 of 15
Kafka - Topics and Partitions
You notice messages with the same key are arriving out of order in your consumer. What is a likely cause?
AThe consumer is reading from multiple partitions in parallel.
BThe producer is sending messages asynchronously without waiting for acknowledgments.
CThe topic has only one partition.
DThe messages have different keys.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze cause of out-of-order messages

    Messages with the same key should be in the same partition and ordered.
  2. Step 2: Identify parallel consumption effect

    Reading from multiple partitions in parallel can cause perceived out-of-order delivery if messages come from different partitions.
  3. Final Answer:

    The consumer is reading from multiple partitions in parallel. -> Option A
  4. Quick Check:

    Parallel consumption causes order issues = A [OK]
Quick Trick: Parallel partition reads can mix message order [OK]
Common Mistakes:
  • Blaming asynchronous producer without evidence
  • Ignoring partition assignment by key
  • Assuming single partition topic causes disorder

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes