Bird
Raised Fist0

Which configuration property is mandatory to specify the Kafka broker addresses in a Java producer client?

easy🧠 Conceptual Q2 of Q15
Kafka - with Java/Python
Which configuration property is mandatory to specify the Kafka broker addresses in a Java producer client?
Abroker.addresses
Bserver.list
Cbootstrap.servers
Dkafka.brokers
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct property name

    The Kafka producer requires the property 'bootstrap.servers' to know where Kafka brokers are located.
  2. Step 2: Verify other options

    Other options like 'broker.addresses', 'server.list', and 'kafka.brokers' are incorrect or do not exist in Kafka configs.
  3. Final Answer:

    bootstrap.servers -> Option C
  4. Quick Check:

    Broker address config = bootstrap.servers [OK]
Quick Trick: Always set 'bootstrap.servers' for broker addresses [OK]
Common Mistakes:
MISTAKES
  • Using incorrect property names
  • Omitting broker addresses
  • Confusing with consumer configs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes