Bird
0
0

How can you configure MirrorMaker 2 to handle topic deletions so that deletions in the source cluster are reflected in the target cluster?

hard📝 Application Q9 of 15
Kafka - Multi-Datacenter and Replication
How can you configure MirrorMaker 2 to handle topic deletions so that deletions in the source cluster are reflected in the target cluster?
ASet 'auto.create.topics.enable=false' on source cluster
BSet 'sync.topic.configs=true' and enable 'delete.topic.enable' on target cluster
CUse 'offset.storage.topic' to track deletions
DConfigure 'replication.factor' to 1
Step-by-Step Solution
Solution:
  1. Step 1: Understand topic deletion replication

    MirrorMaker 2 can sync topic config changes including deletions if configured.
  2. Step 2: Required settings

    Setting 'sync.topic.configs=true' enables config sync; target cluster must allow topic deletions with 'delete.topic.enable'.
  3. Final Answer:

    Set 'sync.topic.configs=true' and enable 'delete.topic.enable' on target cluster -> Option B
  4. Quick Check:

    Topic deletion sync = sync.topic.configs + delete.topic.enable [OK]
Quick Trick: Enable config sync and topic deletion on target cluster [OK]
Common Mistakes:
  • Confusing auto.create.topics.enable with deletion
  • Using offset storage topic for deletions
  • Changing replication factor unrelatedly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes