Kafka - Consumer GroupsWhy does Kafka trigger a rebalance when a consumer's session timeout expires?ABecause the consumer is considered dead and partitions must be reassignedBBecause the consumer requested a manual rebalanceCBecause the broker wants to increase partition countDBecause the consumer committed offsets lateCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand session timeout roleSession timeout defines how long a consumer can be silent before considered dead.Step 2: Analyze rebalance trigger on timeoutIf timeout expires, Kafka assumes consumer left and triggers rebalance to reassign partitions.Final Answer:Because the consumer is considered dead and partitions must be reassigned -> Option AQuick Check:Session timeout expiry = consumer dead, triggers rebalance [OK]Quick Trick: Session timeout expiry signals dead consumer, triggers rebalance [OK]Common Mistakes:Thinking consumer requested rebalance manuallyAssuming broker increases partitions on timeoutBelieving late offset commit triggers rebalance
Master "Consumer Groups" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumer Groups - Cooperative vs eager rebalancing - Quiz 9hard Kafka Basics and Event Streaming - Kafka CLI tools overview - Quiz 6medium Kafka Basics and Event Streaming - Event streaming concept - Quiz 5medium Kafka Basics and Event Streaming - Message broker architecture - Quiz 14medium Kafka Cluster Architecture - Leader election - Quiz 9hard Producers - Acknowledgment modes (acks=0, 1, all) - Quiz 15hard Producers - Serialization (String, JSON, Avro) - Quiz 15hard Producers - Why producers publish data - Quiz 6medium Topics and Partitions - Topic deletion and cleanup - Quiz 4medium Topics and Partitions - Topic deletion and cleanup - Quiz 8hard