Bird
0
0

You observe that a Kafka consumer group using cooperative rebalancing is stuck in a rebalance loop. What is a probable fix?

medium📝 Debug Q7 of 15
Kafka - Consumer Groups
You observe that a Kafka consumer group using cooperative rebalancing is stuck in a rebalance loop. What is a probable fix?
AEnsure all consumers use the same partition.assignment.strategy supporting cooperative rebalancing.
BIncrease the session.timeout.ms to delay heartbeat expiration.
CDisable auto offset commit to prevent conflicts.
DReduce the number of partitions in the topic.
Step-by-Step Solution
Solution:
  1. Step 1: Diagnose rebalance loop cause

    Mismatched or incompatible assignment strategies cause consumers to repeatedly rebalance.
  2. Step 2: Identify correct fix

    Ensuring all consumers use a cooperative-compatible strategy resolves the loop.
  3. Final Answer:

    Ensure all consumers use the same partition.assignment.strategy supporting cooperative rebalancing. -> Option A
  4. Quick Check:

    Fix rebalance loop = A [OK]
Quick Trick: Matching assignment strategies prevent rebalance loops [OK]
Common Mistakes:
  • Changing session timeout instead of strategy
  • Disabling auto commit unrelated to rebalance loops
  • Reducing partitions does not fix rebalance loops

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes