Bird
Raised Fist0

Which of the following is the correct syntax to set a Kafka configuration property in a properties file?

easy📝 Syntax Q12 of Q15
Kafka - with Java/Python
Which of the following is the correct syntax to set a Kafka configuration property in a properties file?
Abootstrap.servers = localhost:9092
Bbootstrap.servers: localhost:9092
Cbootstrap.servers -> localhost:9092
Dbootstrap.servers localhost:9092
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka config file syntax

    Kafka uses key=value pairs in properties files.
  2. Step 2: Match syntax to options

    Only bootstrap.servers = localhost:9092 uses the correct key=value format.
  3. Final Answer:

    bootstrap.servers = localhost:9092 -> Option A
  4. Quick Check:

    Kafka config syntax = key=value [OK]
Quick Trick: Kafka configs use key=value pairs, not colons or arrows [OK]
Common Mistakes:
MISTAKES
  • Using colon instead of equals sign
  • Using arrow symbols
  • Omitting the equals sign

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes