Bird
0
0

Why does Kafka allow only one consumer per partition within a consumer group?

hard📝 Conceptual Q10 of 15
Kafka - Consumer Groups
Why does Kafka allow only one consumer per partition within a consumer group?
ABecause partitions cannot be read by any consumer
BBecause Kafka limits consumers to one per topic
CTo increase message duplication for reliability
DTo guarantee message order and avoid duplicate processing
Step-by-Step Solution
Solution:
  1. Step 1: Understand partition-consumer relationship

    One consumer per partition ensures messages are processed in order without duplicates.
  2. Step 2: Analyze options

    To guarantee message order and avoid duplicate processing correctly explains this. Others are incorrect or misunderstand Kafka design.
  3. Final Answer:

    To guarantee message order and avoid duplicate processing -> Option D
  4. Quick Check:

    One consumer per partition preserves order [OK]
Quick Trick: One consumer per partition keeps message order intact [OK]
Common Mistakes:
  • Thinking partitions can't be read
  • Believing Kafka duplicates messages intentionally
  • Assuming consumer limit per topic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes