Bird
0
0

Which of the following is the correct syntax to start Kafka MirrorMaker with a consumer config file named consumer.properties?

easy📝 Syntax Q3 of 15
Kafka - Multi-Datacenter and Replication
Which of the following is the correct syntax to start Kafka MirrorMaker with a consumer config file named consumer.properties?
Abin/kafka-mirror-maker.sh --consumer-config consumer.properties --producer-config producer.properties --whitelist 'topic1,topic2'
Bbin/kafka-mirror-maker.sh --consumer consumer.properties --producer producer.properties --topics 'topic1,topic2'
Cbin/kafka-mirror-maker.sh --config consumer.properties --config producer.properties --topics 'topic1,topic2'
Dbin/kafka-mirror-maker.sh --consumer.config consumer.properties --producer.config producer.properties --whitelist 'topic1,topic2'
Step-by-Step Solution
Solution:
  1. Step 1: Review MirrorMaker command syntax

    The correct flags are --consumer.config and --producer.config for config files.
  2. Step 2: Match the correct option

    bin/kafka-mirror-maker.sh --consumer.config consumer.properties --producer.config producer.properties --whitelist 'topic1,topic2' uses the correct flags and whitelist parameter for topics.
  3. Final Answer:

    bin/kafka-mirror-maker.sh --consumer.config consumer.properties --producer.config producer.properties --whitelist 'topic1,topic2' -> Option D
  4. Quick Check:

    Correct MirrorMaker syntax = bin/kafka-mirror-maker.sh --consumer.config consumer.properties --producer.config producer.properties --whitelist 'topic1,topic2' [OK]
Quick Trick: Use --consumer.config and --producer.config flags [OK]
Common Mistakes:
MISTAKES
  • Using --consumer instead of --consumer.config
  • Using --config twice incorrectly
  • Confusing --whitelist with --topics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes