Bird
0
0

Which of the following is the correct way to assign a consumer to a group in Kafka's consumer configuration?

easy📝 Syntax Q12 of 15
Kafka - Consumer Groups
Which of the following is the correct way to assign a consumer to a group in Kafka's consumer configuration?
Agroup.id = "my-group"
Bconsumer.group = "my-group"
CgroupName = "my-group"
Dassign.group = "my-group"
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka consumer configuration keys

    The correct key to set the consumer group is 'group.id'.
  2. Step 2: Match the correct syntax

    Only 'group.id = "my-group"' matches Kafka's expected configuration format.
  3. Final Answer:

    group.id = "my-group" -> Option A
  4. Quick Check:

    Kafka uses 'group.id' to set consumer groups [OK]
Quick Trick: Remember Kafka config uses 'group.id' for groups [OK]
Common Mistakes:
  • Using incorrect keys like 'consumer.group'
  • Confusing variable names with config keys
  • Missing quotes around group name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes