What happens if the group coordinator broker fails while consumers are active?
medium📝 Predict Output Q5 of 15
Kafka - Consumer Groups
What happens if the group coordinator broker fails while consumers are active?
AConsumers stop consuming permanently
BA new broker is elected as group coordinator and rebalances the group
CMessages are lost from the topic
DConsumers automatically become producers
Step-by-Step Solution
Solution:
Step 1: Understand fault tolerance of group coordinator
If the group coordinator broker fails, Kafka elects a new broker as the coordinator to maintain group management. Consumers continue after rebalance; messages are not lost; consumers do not become producers.
Final Answer:
A new broker is elected as group coordinator and rebalances the group -> Option B
Quick Check:
Group coordinator failure triggers new election and rebalance [OK]
Quick Trick:Kafka elects new coordinator automatically on failure [OK]
Common Mistakes:
Thinking consumers stop permanently
Assuming message loss on coordinator failure
Confusing consumer and producer roles
Master "Consumer Groups" in Kafka
9 interactive learning modes - each teaches the same concept differently