Bird
0
0

A Kafka consumer application throws an exception during the onPartitionsRevoked callback. What is the likely impact on rebalancing?

medium📝 Debug Q6 of 15
Kafka - Consumer Groups
A Kafka consumer application throws an exception during the onPartitionsRevoked callback. What is the likely impact on rebalancing?
ARebalance completes normally, ignoring the exception
BPartitions are reassigned to the same consumer without change
CRebalance is delayed or fails, causing consumer group instability
DConsumer automatically leaves the group without rebalance
Step-by-Step Solution
Solution:
  1. Step 1: Understand onPartitionsRevoked role

    This callback is called before partitions are revoked; exceptions here affect rebalance.
  2. Step 2: Analyze exception impact

    Exception can block rebalance completion, causing delays or instability in the consumer group.
  3. Final Answer:

    Rebalance is delayed or fails, causing consumer group instability -> Option C
  4. Quick Check:

    Exception in revoke callback = rebalance delay/failure [OK]
Quick Trick: Handle exceptions in revoke callback to avoid rebalance issues [OK]
Common Mistakes:
  • Assuming rebalance ignores exceptions
  • Thinking consumer leaves group automatically
  • Believing partitions stay assigned without rebalance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes