Kafka - Consumer GroupsWhich of the following is the correct way to specify a consumer group ID in Kafka consumer configuration?A"groupName" : "my-group"B"group.id" : "my-group"C"consumer.group" : "my-group"D"consumerId" : "my-group"Check Answer
Step-by-Step SolutionSolution:Step 1: Recall Kafka consumer config keysThe correct key to set the consumer group is "group.id".Step 2: Check other optionsOther keys like "consumer.group", "groupName", or "consumerId" are incorrect or do not exist.Final Answer:"group.id" : "my-group" -> Option BQuick Check:Consumer group ID key = "group.id" [OK]Quick Trick: Remember Kafka uses "group.id" for consumer groups [OK]Common Mistakes:Using incorrect config keysConfusing consumer ID with group IDMisspelling the key name
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