Bird
0
0

Which of the following is the correct syntax to configure broker ID in Kafka's server.properties file?

easy📝 Syntax Q3 of 15
Kafka - Cluster Architecture
Which of the following is the correct syntax to configure broker ID in Kafka's server.properties file?
Abroker-id=1
BbrokerId=1
Cbroker.id=1
Dbroker id=1
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka broker ID configuration syntax

    The correct property name is 'broker.id' with a dot separator.
  2. Step 2: Check other options for syntax errors

    Options with camelCase, hyphens, or spaces are invalid in Kafka config.
  3. Final Answer:

    broker.id=1 -> Option C
  4. Quick Check:

    Broker ID config uses dot notation [OK]
Quick Trick: Use 'broker.id' with dot, not camelCase or spaces [OK]
Common Mistakes:
  • Using camelCase instead of dot notation
  • Including spaces in property name
  • Replacing dot with hyphen

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes