Recall & Review
beginner
What is Apache Kafka?
Apache Kafka is a distributed event streaming platform used to build real-time data pipelines and streaming applications. It allows you to publish and subscribe to streams of records in a fault-tolerant way.
Click to reveal answer
beginner
Name the two main components you need to install to run Kafka locally.
You need to install Apache Kafka itself and Apache Zookeeper. Zookeeper helps Kafka manage the cluster metadata and coordination.
Click to reveal answer
intermediate
What is the role of Zookeeper in Kafka setup?
Zookeeper manages and coordinates Kafka brokers. It keeps track of the status of Kafka nodes and topics, helping with leader election and configuration management.
Click to reveal answer
beginner
Which command starts the Kafka server after installation?
You start the Kafka server using the command:
bin/kafka-server-start.sh config/server.properties on Linux/Mac or bin\windows\kafka-server-start.bat config\server.properties on Windows.Click to reveal answer
beginner
Why is it important to start Zookeeper before Kafka?
Kafka depends on Zookeeper for managing cluster metadata. If Zookeeper is not running, Kafka cannot start properly because it won't be able to coordinate brokers and topics.
Click to reveal answer
What is the first step in setting up Kafka locally?
✗ Incorrect
Zookeeper must be installed and started first because Kafka depends on it for coordination.
Which file contains the default Kafka server configuration?
✗ Incorrect
The server.properties file holds Kafka server settings.
How do you start Zookeeper after installation?
✗ Incorrect
The command to start Zookeeper uses the zookeeper-server-start.sh script with its config file.
What is the default port Kafka listens on?
✗ Incorrect
Kafka brokers listen on port 9092 by default.
Which of these is NOT required to run Kafka locally?
✗ Incorrect
Docker is optional; Kafka can run locally without Docker if Java, Zookeeper, and Kafka binaries are installed.
Describe the steps to install and start Kafka on your local machine.
Think about the order of starting services and what software is needed.
You got /5 concepts.
Explain why Zookeeper is important in Kafka setup and what happens if it is not running.
Consider Kafka's dependency on Zookeeper for coordination.
You got /4 concepts.