Bird
0
0

What is the main role of ZooKeeper in a Kafka cluster?

easy📝 Conceptual Q11 of 15
Kafka - Cluster Architecture
What is the main role of ZooKeeper in a Kafka cluster?
ATo store Kafka messages permanently
BTo replace Kafka brokers in the cluster
CTo serve as a Kafka client for producers
DTo manage cluster coordination and metadata
Step-by-Step Solution
Solution:
  1. Step 1: Understand ZooKeeper's purpose

    ZooKeeper is used to manage coordination tasks like leader election and metadata storage in Kafka clusters.
  2. Step 2: Identify what ZooKeeper does not do

    ZooKeeper does not store Kafka messages or act as a client or broker replacement.
  3. Final Answer:

    To manage cluster coordination and metadata -> Option D
  4. Quick Check:

    ZooKeeper = cluster coordination [OK]
Quick Trick: ZooKeeper manages coordination, not message storage [OK]
Common Mistakes:
  • Thinking ZooKeeper stores Kafka messages
  • Confusing ZooKeeper with Kafka brokers
  • Assuming ZooKeeper acts as a client

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes