Bird
0
0

Which command correctly starts the Zookeeper server in Kafka installation?

easy📝 Syntax Q3 of 15
Kafka - Basics and Event Streaming
Which command correctly starts the Zookeeper server in Kafka installation?
Abin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
Bbin/kafka-server-start.sh config/server.properties
Cbin/zookeeper-server-start.sh config/zookeeper.properties
Dbin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test
Step-by-Step Solution
Solution:
  1. Step 1: Identify the Zookeeper start command

    The Zookeeper server is started using the script zookeeper-server-start.sh with the zookeeper.properties config file.
  2. Step 2: Differentiate from Kafka server and client commands

    kafka-server-start.sh starts Kafka broker; console-producer and console-consumer are client tools, not servers.
  3. Final Answer:

    bin/zookeeper-server-start.sh config/zookeeper.properties -> Option C
  4. Quick Check:

    Zookeeper start command = zookeeper-server-start.sh [OK]
Quick Trick: Use zookeeper-server-start.sh to launch Zookeeper [OK]
Common Mistakes:
  • Using kafka-server-start.sh to start Zookeeper
  • Confusing producer or consumer commands as server start
  • Omitting the config file argument

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes