Bird
0
0

You want to replicate topic 'metrics' from source cluster to a target cluster where the topic is named 'app_metrics'. How can MirrorMaker be configured to achieve this topic renaming?

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

You want to replicate topic 'metrics' from source cluster to a target cluster where the topic is named 'app_metrics'. How can MirrorMaker be configured to achieve this topic renaming?

AMirrorMaker does not support topic renaming during replication
BSet 'producer.topic.override' to 'app_metrics' in the producer config
CRename the topic manually on the target cluster after replication
DUse the 'topic.rename.format' property to map 'metrics' to 'app_metrics' during replication
Step-by-Step Solution
Solution:
  1. Step 1: Understand topic renaming

    MirrorMaker supports topic renaming via configuration properties.
  2. Step 2: Use topic.rename.format

    The 'topic.rename.format' property allows specifying a pattern to rename topics during replication.
  3. Final Answer:

    Use the 'topic.rename.format' property to map 'metrics' to 'app_metrics' during replication -> Option D
  4. Quick Check:

    Topic renaming requires specific config, not manual rename [OK]
Quick Trick: Use topic.rename.format for renaming topics [OK]
Common Mistakes:
MISTAKES
  • Assuming manual rename after replication works
  • Using non-existent producer.topic.override property
  • Believing MirrorMaker cannot rename topics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes