Bird
0
0

Given MirrorMaker replicates topic 'orders' from cluster A to cluster B, what happens if a message is produced to 'orders' in cluster A?

medium📝 Predict Output Q4 of 15
Kafka - Multi-Datacenter and Replication

Given MirrorMaker replicates topic 'orders' from cluster A to cluster B, what happens if a message is produced to 'orders' in cluster A?

AThe message is only stored in cluster A
BThe message is copied to 'orders' topic in cluster B
CThe message is deleted after replication
DThe message is sent to a different topic in cluster B
Step-by-Step Solution
Solution:
  1. Step 1: Understand MirrorMaker replication behavior

    MirrorMaker copies messages from source to destination topics with the same name by default.
  2. Step 2: Analyze message flow

    A message produced to 'orders' in cluster A will be replicated to 'orders' in cluster B, not deleted or redirected.
  3. Final Answer:

    The message is copied to 'orders' topic in cluster B -> Option B
  4. Quick Check:

    Message replication = copied to same topic [OK]
Quick Trick: MirrorMaker copies messages to same topic in target cluster [OK]
Common Mistakes:
MISTAKES
  • Thinking messages are deleted after replication
  • Assuming messages stay only in source cluster
  • Believing messages go to different topics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes