0
0
Kafkadevops~10 mins

Kafka installation and setup - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to download Kafka using wget.

Kafka
wget [1]
Drag options to blanks, or click blank then click option'
Ahttps://example.com/kafka.zip
Bhttps://kafka.apache.org/downloads
Chttps://downloads.apache.org/kafka/3.5.1/kafka_2.13-3.5.1.tgz
Dhttps://apache.org/kafka/latest
Attempts:
3 left
💡 Hint
Common Mistakes
Using the website homepage URL instead of the direct download link.
Downloading a wrong file format like .zip instead of .tgz.
2fill in blank
medium

Complete the command to extract the Kafka archive.

Kafka
tar [1] kafka_2.13-3.5.1.tgz
Drag options to blanks, or click blank then click option'
A-cvf
B-xzvf
C-xvzf
D-xzf
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'c' which is for creating archives instead of extracting.
Omitting the 'z' option for gzip compressed files.
3fill in blank
hard

Fix the error in the command to start the Kafka server.

Kafka
bin/kafka-server-start.sh [1]/config/server.properties
Drag options to blanks, or click blank then click option'
Akafka_2.13-3.5.1
Bkafka_2.13-3.5.1/config
Ckafka/config
Dconfig
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'config' without the Kafka folder prefix.
Using an incorrect folder path.
4fill in blank
hard

Fill both blanks to create a topic named 'test' with 1 partition and replication factor 1.

Kafka
bin/kafka-topics.sh --create --topic [1] --partitions [2] --replication-factor 1 --bootstrap-server localhost:9092
Drag options to blanks, or click blank then click option'
Atest
B1
C3
Dmytopic
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different topic name.
Setting partitions to a number other than 1.
5fill in blank
hard

Fill both blanks to list all topics using the correct bootstrap server and command.

Kafka
bin/kafka-topics.sh --list --bootstrap-server [1]:[2]
Drag options to blanks, or click blank then click option'
Alocalhost
B9092
C127.0.0.1
D2181
Attempts:
3 left
💡 Hint
Common Mistakes
Using Zookeeper port 2181 instead of Kafka port 9092.
Using IP address instead of localhost.