Bird
0
0

Which of the following is the correct syntax to set the broker ID in Kafka's configuration file?

easy📝 Syntax Q12 of 15
Kafka - Cluster Architecture
Which of the following is the correct syntax to set the broker ID in Kafka's configuration file?
Abroker_id=1
Bbroker-id:1
Cbroker.id=1
DbrokerId=1
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka config syntax

    Kafka uses key=value pairs with dots to separate words, like broker.id=1.
  2. Step 2: Compare options

    Only broker.id=1 uses the correct dot notation and equal sign syntax.
  3. Final Answer:

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

    Correct syntax uses dot and equal sign [OK]
Quick Trick: Kafka configs use dot notation and equal sign [OK]
Common Mistakes:
  • Using underscores instead of dots
  • Using colon instead of equal sign
  • CamelCase keys instead of lowercase with dots

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes