Bird
0
0

Examine this MirrorMaker configuration snippet:

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

Examine this MirrorMaker configuration snippet:
consumer.bootstrap.servers=source:9092
producer.bootstrap.servers=target:9092
topics=orders,payments
whitelist=orders

What is the main issue with this configuration?

AThe producer.bootstrap.servers should point to the source cluster
BUsing both 'topics' and 'whitelist' properties simultaneously causes conflict
CThe consumer group ID is missing, causing consumer failures
DThe topics property should list only one topic at a time
Step-by-Step Solution
Solution:
  1. Step 1: Understand MirrorMaker topic filtering

    MirrorMaker uses either 'whitelist' or 'blacklist' to filter topics, not 'topics'.
  2. Step 2: Identify conflict

    Specifying both 'topics' and 'whitelist' leads to ambiguous topic selection.
  3. Final Answer:

    Using both 'topics' and 'whitelist' properties simultaneously causes conflict -> Option B
  4. Quick Check:

    Only one topic filter property should be used [OK]
Quick Trick: Use either whitelist or topics, not both [OK]
Common Mistakes:
  • Assuming producer.bootstrap.servers points to source
  • Forgetting to set consumer group ID
  • Thinking topics property accepts multiple topics without filtering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes