Kafka - Consumer GroupsA Kafka consumer group is configured with cooperative rebalancing but experiences frequent full rebalances. What is a likely cause?AHaving too few partitions in the topic.BSetting session.timeout.ms too high.CNot committing offsets manually.DUsing an incompatible partition.assignment.strategy with cooperative rebalancing.Check Answer
Step-by-Step SolutionSolution:Step 1: Identify cause of full rebalances despite cooperative configIf the partition.assignment.strategy does not support cooperative rebalancing, full eager rebalances occur.Step 2: Rule out other optionsSession timeout affects heartbeat detection, offset commits affect processing, and partition count affects parallelism but not rebalance style.Final Answer:Using an incompatible partition.assignment.strategy with cooperative rebalancing. -> Option DQuick Check:Full rebalance cause = A [OK]Quick Trick: Use compatible assignment strategy for cooperative rebalancing [OK]Common Mistakes:Blaming session timeout for rebalance styleConfusing offset commits with rebalance triggersAssuming partition count affects rebalance type
Master "Consumer Groups" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumers - Auto-commit vs manual commit - Quiz 12easy Kafka Basics and Event Streaming - Kafka CLI tools overview - Quiz 13medium Producers - Message key and value - Quiz 4medium Producers - Acknowledgment modes (acks=0, 1, all) - Quiz 7medium Producers - Acknowledgment modes (acks=0, 1, all) - Quiz 6medium Producers - Acknowledgment modes (acks=0, 1, all) - Quiz 4medium Topics and Partitions - Partition ordering guarantees - Quiz 9hard Topics and Partitions - Topic configuration - Quiz 4medium Topics and Partitions - Retention policies (time-based, size-based) - Quiz 9hard Topics and Partitions - Partition key and routing - Quiz 4medium