0
0
Kafkadevops~5 mins

Kafka installation and setup - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AStart Kafka server
BCreate Kafka topics
CWrite a Kafka producer
DInstall and start Zookeeper
Which file contains the default Kafka server configuration?
Aconfig.json
Bserver.properties
Ckafka.properties
Dzookeeper.properties
How do you start Zookeeper after installation?
Abin/zookeeper-server-start.sh config/zookeeper.properties
Bbin/kafka-server-start.sh config/server.properties
Cbin/start-zookeeper.sh
Dbin/zookeeper-start.sh
What is the default port Kafka listens on?
A9092
B2181
C8080
D9090
Which of these is NOT required to run Kafka locally?
AKafka binaries
BApache Zookeeper
CDocker
DJava Runtime Environment (JRE)
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.