Bird
0
0

Given the following MirrorMaker command, what is its purpose?

medium📝 Predict Output Q13 of 15
Kafka - Multi-Datacenter and Replication
Given the following MirrorMaker command, what is its purpose?
bin/kafka-mirror-maker.sh --consumer.config consumer.properties --producer.config producer.properties --whitelist='topic1,topic2'
AConsume messages from topic1 and topic2 without replication
BDelete topic1 and topic2 from the target cluster
CProduce messages to topic1 and topic2 only on source cluster
DReplicate only topic1 and topic2 from source to target cluster
Step-by-Step Solution
Solution:
  1. Step 1: Understand MirrorMaker command components

    The command uses consumer and producer configs and a whitelist of topics to replicate.
  2. Step 2: Interpret whitelist usage

    The whitelist='topic1,topic2' means only these topics are replicated from source to target cluster.
  3. Final Answer:

    Replicate only topic1 and topic2 from source to target cluster -> Option D
  4. Quick Check:

    Whitelist limits topics replicated [OK]
Quick Trick: Whitelist limits topics MirrorMaker replicates [OK]
Common Mistakes:
MISTAKES
  • Thinking it only consumes without replication
  • Assuming it produces only on source cluster
  • Believing it deletes topics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes