Recall & Review
beginner
What is rebalancing in Kafka consumer groups?
Rebalancing is the process where Kafka redistributes partitions among consumers in a group when consumers join, leave, or fail. It ensures all partitions are assigned to active consumers.
Click to reveal answer
beginner
When does Kafka trigger a rebalance?
Kafka triggers a rebalance when a consumer joins or leaves the group, or when a consumer crashes. This helps keep partition assignments balanced.
Click to reveal answer
intermediate
What happens to message processing during a Kafka rebalance?
During rebalance, consumers stop fetching messages temporarily. This pause ensures partitions are reassigned safely but can cause a short delay in processing.
Click to reveal answer
intermediate
How can you minimize rebalance impact in Kafka?
You can minimize rebalance impact by tuning session timeouts, using static group membership, and handling partition assignments efficiently in your consumer code.
Click to reveal answer
advanced
What is static membership in Kafka rebalancing?
Static membership allows consumers to keep their identity across restarts, reducing unnecessary rebalances and improving stability during consumer restarts.
Click to reveal answer
What triggers a Kafka consumer group rebalance?
✗ Incorrect
Rebalance happens when consumers join or leave the group to redistribute partitions.
During rebalance, what happens to message consumption?
✗ Incorrect
Consumers pause fetching messages during rebalance to safely reassign partitions.
Which Kafka feature helps reduce unnecessary rebalances?
✗ Incorrect
Static membership keeps consumer identity stable, reducing rebalances.
What is a common cause of frequent rebalances?
✗ Incorrect
Frequent consumer group membership changes cause frequent rebalances.
How can you tune Kafka to reduce rebalance delays?
✗ Incorrect
Increasing session timeout gives consumers more time before considered dead, reducing rebalance frequency.
Explain what happens during Kafka consumer group rebalancing and why it is necessary.
Think about how Kafka keeps consumers working evenly.
You got /4 concepts.
Describe ways to reduce the impact of rebalancing on Kafka consumers.
Focus on configuration and consumer behavior.
You got /4 concepts.