Bird
0
0

A developer sets the same consumer group ID for two different applications consuming the same topic. What issue might arise?

medium📝 Debug Q6 of 15
Kafka - Consumer Groups
A developer sets the same consumer group ID for two different applications consuming the same topic. What issue might arise?
AThe two applications will share partitions, causing unexpected message distribution.
BBoth applications will receive all messages independently.
CKafka will throw a configuration error and stop processing.
DMessages will be duplicated in the topic.
Step-by-Step Solution
Solution:
  1. Step 1: Understand group ID effect

    Same group ID means consumers belong to the same group and share partitions.
  2. Step 2: Identify consequence for different apps

    Different apps sharing group ID will split partitions, causing unexpected message distribution.
  3. Final Answer:

    The two applications will share partitions, causing unexpected message distribution. -> Option A
  4. Quick Check:

    Same group ID causes partition sharing = B [OK]
Quick Trick: Same group ID merges consumers into one group [OK]
Common Mistakes:
  • Expecting both apps to get all messages independently
  • Thinking Kafka throws error for same group ID
  • Believing messages duplicate in topic due to group ID

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes