Bird
0
0

Given the following MirrorMaker 2 configuration snippet, what is the effect?

medium📝 Predict Output Q13 of 15
Kafka - Multi-Datacenter and Replication
Given the following MirrorMaker 2 configuration snippet, what is the effect?
{
  "clusters": {
    "A": {"bootstrap.servers": "a.kafka:9092"},
    "B": {"bootstrap.servers": "b.kafka:9092"}
  },
  "mirrors": [{"source.cluster": "A", "target.cluster": "B", "topics": ["orders"]}]
}
AData from cluster B is copied to cluster A for topic 'orders'
BData from cluster A is copied to cluster B for topic 'orders'
CData from both clusters A and B are merged into a new topic 'orders'
DNo data is copied because topics list is empty
Step-by-Step Solution
Solution:
  1. Step 1: Analyze source and target clusters

    The config shows source.cluster as A and target.cluster as B, meaning data flows from A to B.
  2. Step 2: Check topics list

    The topics list includes "orders", so only the 'orders' topic is replicated from A to B.
  3. Final Answer:

    Data from cluster A is copied to cluster B for topic 'orders' -> Option B
  4. Quick Check:

    Source A to target B for 'orders' topic [OK]
Quick Trick: Source cluster data replicates to target cluster [OK]
Common Mistakes:
  • Reversing source and target clusters
  • Thinking topics list is empty
  • Assuming data merges instead of copies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes