Bird
0
0

Identify the error in this MirrorMaker consumer configuration:

medium📝 Debug Q14 of 15
Kafka - Multi-Datacenter and Replication

Identify the error in this MirrorMaker consumer configuration:

consumer.bootstrap.servers=target.kafka:9092
consumer.group.id=mirror-group
Aconsumer.bootstrap.servers should use port 2181
Bconsumer.group.id is missing
Cconsumer.bootstrap.servers should point to the source cluster, not target
Dconsumer.group.id should be unique per topic
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of consumer.bootstrap.servers

    This property must point to the source Kafka cluster to read data for replication.
  2. Step 2: Check the given value

    It incorrectly points to "target.kafka:9092", which is the destination cluster, not the source.
  3. Final Answer:

    consumer.bootstrap.servers should point to the source cluster, not target -> Option C
  4. Quick Check:

    Consumer connects to source cluster [OK]
Quick Trick: Consumer must connect to source cluster, not target [OK]
Common Mistakes:
MISTAKES
  • Using target cluster address for consumer.bootstrap.servers
  • Confusing ZooKeeper port with Kafka broker port
  • Assuming group.id is missing when it is present

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes