Bird
0
0

You have a Kafka topic with 3 partitions and a consumer group with 4 consumers. What happens to the extra consumer?

hard📝 Application Q15 of 15
Kafka - Consumer Groups
You have a Kafka topic with 3 partitions and a consumer group with 4 consumers. What happens to the extra consumer?
AThe extra consumer causes an error in the group
BThe extra consumer reads from all partitions
CThe extra consumer remains idle and does not receive messages
DKafka creates a new partition for the extra consumer
Step-by-Step Solution
Solution:
  1. Step 1: Understand partition to consumer assignment

    Each partition can be assigned to only one consumer in the group.
  2. Step 2: Analyze consumer count vs partitions

    With 3 partitions and 4 consumers, only 3 consumers get partitions; the 4th consumer stays idle.
  3. Final Answer:

    The extra consumer remains idle and does not receive messages -> Option C
  4. Quick Check:

    More consumers than partitions means idle consumers [OK]
Quick Trick: Consumers > partitions means some consumers idle [OK]
Common Mistakes:
  • Thinking Kafka creates new partitions automatically
  • Assuming extra consumers share partitions
  • Believing extra consumers cause errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes