Bird
0
0

Why must each Kafka broker have a unique broker.id in a cluster?

hard📝 Conceptual Q10 of 15
Kafka - Cluster Architecture

Why must each Kafka broker have a unique broker.id in a cluster?

ATo uniquely identify brokers for partition assignment and metadata management
BTo enable brokers to share the same log directories
CTo allow brokers to use the same network port
DTo synchronize clocks across brokers
Step-by-Step Solution
Solution:
  1. Step 1: Understand broker.id purpose

    broker.id uniquely identifies each broker for managing partitions and cluster metadata.
  2. Step 2: Analyze other options

    Sharing log directories or ports causes conflicts; clock sync is unrelated to broker.id.
  3. Final Answer:

    To uniquely identify brokers for partition assignment and metadata management -> Option A
  4. Quick Check:

    Unique broker.id = unique broker identity [OK]
Quick Trick: Unique broker.id prevents conflicts in cluster metadata [OK]
Common Mistakes:
  • Thinking broker.id controls ports or logs
  • Confusing broker.id with time synchronization
  • Assuming broker.id can be duplicated

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes