Bird
0
0

You want to replicate only topics starting with logs- from the source cluster to the target cluster using MirrorMaker. Which configuration property should you set to filter these topics?

hard📝 Application Q15 of 15
Kafka - Multi-Datacenter and Replication

You want to replicate only topics starting with logs- from the source cluster to the target cluster using MirrorMaker. Which configuration property should you set to filter these topics?

Aconsumer.topic.filter=logs-*
Bproducer.topic.filter=logs-*
Cmirror.topic.prefix=logs-
Dconsumer.topic.whitelist=logs-*
Step-by-Step Solution
Solution:
  1. Step 1: Identify the property to filter topics in MirrorMaker

    MirrorMaker uses consumer.topic.whitelist to specify which topics to consume from the source cluster.
  2. Step 2: Match the pattern for topics starting with 'logs-'

    The pattern "logs-*" matches all topics starting with "logs-".
  3. Final Answer:

    consumer.topic.whitelist=logs-* -> Option D
  4. Quick Check:

    Use consumer.topic.whitelist to filter topics [OK]
Quick Trick: Use consumer.topic.whitelist to select topics by pattern [OK]
Common Mistakes:
MISTAKES
  • Using producer.topic.filter which does not exist
  • Confusing mirror.topic.prefix with filtering
  • Using consumer.topic.filter instead of whitelist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes