Consumer Rebalancing — Concept Check
Questions on Consumer Rebalancing. Rebalancing redistributes partition assignments among consumers in a group. It is triggered by group membership changes and can cause brief processing pauses.
Questions in this quiz
8 questions on Consumer Rebalancing — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A consumer group experiences frequent rebalances, causing processing delays. Which configuration change is most likely to reduce the frequency of these rebalances?
- ADecrease max.poll.records
- BIncrease heartbeat.interval.ms
- CDecrease session.timeout.ms
- DIncrease max.poll.interval.ms
2.A Kafka consumer group is using Cooperative Sticky Assignor. What happens during a rebalance?
- AOnly affected partitions are revoked
- BAll consumers stop processing
- CAll partitions are revoked and reassigned
- DNo partitions are revoked
3.A consumer's processing time exceeds max.poll.interval.ms, causing it to be removed from the group. What should be done to prevent this?
- AIncrease max.poll.interval.ms
- BDecrease heartbeat.interval.ms
- CDecrease max.poll.records
- DIncrease session.timeout.ms
4.Which of the following is a common cause of unexpected rebalances in Kafka consumer groups?
- ALow max.poll.interval.ms
- BHigh session.timeout.ms
- CHigh max.poll.records
- DLow heartbeat.interval.ms
5.During a rebalance, a consumer commits offsets before revoking partitions. Why is this important?
- ATo avoid unnecessary reassignments
- BTo ensure no data loss
- CTo speed up the rebalance
- DTo reduce network traffic
6.A service using Kafka slows down, and analysis shows frequent rebalances. What is a likely configuration issue?
- AHigh max.poll.records
- BHigh heartbeat.interval.ms
- CLow max.poll.interval.ms
- DLow session.timeout.ms
7.What is the default partition assignment strategy in Kafka since version 2.4?
- ARound Robin Assignor
- BRange Assignor
- CCooperative Sticky Assignor
- DEager Rebalancing
8.A consumer takes longer than expected to process messages, leading to rebalances. Which setting should be adjusted?
- AIncrease session.timeout.ms
- BDecrease max.poll.records
- CIncrease max.poll.interval.ms
- DDecrease heartbeat.interval.ms