Kafka - Cluster ArchitectureWhat is the main role of ZooKeeper in a Kafka cluster?ATo store Kafka messages permanentlyBTo replace Kafka brokers in the clusterCTo serve as a Kafka client for producersDTo manage cluster coordination and metadataCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand ZooKeeper's purposeZooKeeper is used to manage coordination tasks like leader election and metadata storage in Kafka clusters.Step 2: Identify what ZooKeeper does not doZooKeeper does not store Kafka messages or act as a client or broker replacement.Final Answer:To manage cluster coordination and metadata -> Option DQuick Check:ZooKeeper = cluster coordination [OK]Quick Trick: ZooKeeper manages coordination, not message storage [OK]Common Mistakes:Thinking ZooKeeper stores Kafka messagesConfusing ZooKeeper with Kafka brokersAssuming ZooKeeper acts as a client
Master "Cluster Architecture" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Consumer Groups - Why consumer groups enable parallel processing - Quiz 10hard Consumer Groups - Why consumer groups enable parallel processing - Quiz 14medium Consumer Groups - Cooperative vs eager rebalancing - Quiz 2easy Consumers - Consumer poll loop - Quiz 6medium Kafka Basics and Event Streaming - Why Kafka exists - Quiz 8hard Kafka Cluster Architecture - In-sync replicas (ISR) - Quiz 11easy Kafka Cluster Architecture - Broker nodes - Quiz 12easy Producers - Producer retries and idempotency - Quiz 7medium Producers - Message key and value - Quiz 7medium Topics and Partitions - Retention policies (time-based, size-based) - Quiz 2easy