Bird
0
0

Given two consumers in a group using eager rebalancing, what happens when one consumer leaves?

medium📝 Predict Output Q13 of 15
Kafka - Consumer Groups
Given two consumers in a group using eager rebalancing, what happens when one consumer leaves?
AAll partitions in the group are reassigned immediately, causing a pause.
BOnly the partitions of the leaving consumer are reassigned gradually.
CThe remaining consumer continues without any rebalancing.
DPartitions are reassigned only after a timeout period.
Step-by-Step Solution
Solution:
  1. Step 1: Understand eager rebalancing behavior on consumer leave

    In eager rebalancing, when any consumer leaves, all partitions are reassigned immediately to maintain balance.
  2. Step 2: Recognize the impact on consumer pause

    This immediate reassignment causes a pause for all consumers during the rebalance.
  3. Final Answer:

    All partitions in the group are reassigned immediately, causing a pause. -> Option A
  4. Quick Check:

    Eager rebalancing = full immediate reassignment [OK]
Quick Trick: Eager means all partitions reassign at once [OK]
Common Mistakes:
  • Thinking only leaving consumer's partitions reassign
  • Assuming no pause occurs
  • Believing reassignment waits for timeout

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes