Kafka - Consumer GroupsYou have a Kafka topic with 3 partitions and a consumer group with 4 consumers. What happens to the extra consumer?AThe extra consumer causes an error in the groupBThe extra consumer reads from all partitionsCThe extra consumer remains idle and does not receive messagesDKafka creates a new partition for the extra consumerCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand partition to consumer assignmentEach partition can be assigned to only one consumer in the group.Step 2: Analyze consumer count vs partitionsWith 3 partitions and 4 consumers, only 3 consumers get partitions; the 4th consumer stays idle.Final Answer:The extra consumer remains idle and does not receive messages -> Option CQuick Check:More consumers than partitions means idle consumers [OK]Quick Trick: Consumers > partitions means some consumers idle [OK]Common Mistakes:Thinking Kafka creates new partitions automaticallyAssuming extra consumers share partitionsBelieving extra consumers cause errors
Master "Consumer Groups" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumer Groups - Rebalancing behavior - Quiz 12easy Consumers - Consumer configuration - Quiz 6medium Consumers - Subscribing to topics - Quiz 4medium Kafka Cluster Architecture - Leader election - Quiz 15hard Kafka Cluster Architecture - Broker configuration basics - Quiz 15hard Kafka Cluster Architecture - Leader election - Quiz 13medium Producers - Producer API basics - Quiz 2easy Topics and Partitions - Partition concept - Quiz 7medium Topics and Partitions - Topic configuration - Quiz 15hard Topics and Partitions - Topic configuration - Quiz 1easy