Bird
0
0

Given the following MirrorMaker configuration snippet, what will be the value of producer.bootstrap.servers?

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

Given the following MirrorMaker configuration snippet, what will be the value of producer.bootstrap.servers?

consumer.bootstrap.servers=source1.kafka:9092,source2.kafka:9092
producer.bootstrap.servers=target.kafka:9092
A"source1.kafka:9092,source2.kafka:9092"
B"target.kafka:9092"
C"source1.kafka:9092"
D"localhost:9092"
Step-by-Step Solution
Solution:
  1. Step 1: Read the configuration lines carefully

    The snippet shows two properties: consumer.bootstrap.servers and producer.bootstrap.servers with their values.
  2. Step 2: Identify the value assigned to producer.bootstrap.servers

    It is explicitly set to "target.kafka:9092" in the second line.
  3. Final Answer:

    "target.kafka:9092" -> Option B
  4. Quick Check:

    producer.bootstrap.servers = target cluster address [OK]
Quick Trick: Producer connects to target cluster bootstrap servers [OK]
Common Mistakes:
MISTAKES
  • Mixing consumer and producer server addresses
  • Assuming producer uses source cluster address
  • Ignoring explicit configuration values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes