Bird
0
0

You want to ensure smooth failover in a Kafka consumer group when one consumer crashes. How does the group coordinator help achieve this?

hard📝 Application Q15 of 15
Kafka - Consumer Groups
You want to ensure smooth failover in a Kafka consumer group when one consumer crashes. How does the group coordinator help achieve this?
AIt automatically detects the failure and triggers a rebalance to assign partitions to remaining consumers.
BIt stores the crashed consumer's messages until it recovers.
CIt restarts the crashed consumer automatically.
DIt duplicates messages to all consumers to avoid data loss.
Step-by-Step Solution
Solution:
  1. Step 1: Understand group coordinator's role in failure

    The group coordinator monitors consumer membership and triggers rebalancing when a consumer leaves or crashes.
  2. Step 2: Explain failover mechanism

    On failure detection, the coordinator reassigns partitions to remaining consumers to continue processing without data loss.
  3. Final Answer:

    It automatically detects the failure and triggers a rebalance to assign partitions to remaining consumers. -> Option A
  4. Quick Check:

    Group coordinator triggers rebalance on consumer failure [OK]
Quick Trick: Group coordinator triggers rebalance on consumer failure [OK]
Common Mistakes:
  • Thinking it stores messages for crashed consumers
  • Assuming it restarts consumers
  • Believing it duplicates messages to all consumers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes