0
0
Kafkadevops~10 mins

Why Kafka exists - Test Your Understanding

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

Complete the code to create a Kafka topic named 'orders'.

Kafka
bin/kafka-topics.sh --create --topic [1] --bootstrap-server localhost:9092
Drag options to blanks, or click blank then click option'
Alogs
Borders
Cevents
Dmessages
Attempts:
3 left
💡 Hint
Common Mistakes
Using a topic name that does not match the producer or consumer.
2fill in blank
medium

Complete the code to produce a message 'Hello Kafka' to the 'orders' topic.

Kafka
echo 'Hello Kafka' | bin/kafka-console-producer.sh --topic orders --bootstrap-server [1]
Drag options to blanks, or click blank then click option'
Alocalhost:9092
B127.0.0.1:8080
Clocalhost:2181
D0.0.0.0:9092
Attempts:
3 left
💡 Hint
Common Mistakes
Using the Zookeeper port instead of the broker port.
3fill in blank
hard

Fix the error in the consumer command to read messages from the 'orders' topic.

Kafka
bin/kafka-console-consumer.sh --topic orders --bootstrap-server [1] --from-beginning
Drag options to blanks, or click blank then click option'
Alocalhost:2181
B127.0.0.1:8080
Clocalhost:9092
D0.0.0.0:2181
Attempts:
3 left
💡 Hint
Common Mistakes
Using Zookeeper port 2181 instead of broker port 9092.
4fill in blank
hard

Fill both blanks to explain why Kafka exists: Kafka is designed for {{BLANK_1}} and {{BLANK_2}} of data streams.

Kafka
Kafka is designed for [1] and [2] of data streams.
Drag options to blanks, or click blank then click option'
Ahigh-throughput
Blow-latency
Cslow-processing
Dmanual-handling
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing options that imply slow or manual processing.
5fill in blank
hard

Fill all three blanks to complete the sentence: Kafka provides {{BLANK_1}} storage, {{BLANK_2}} processing, and {{BLANK_3}} scalability.

Kafka
Kafka provides [1] storage, [2] processing, and [3] scalability.
Drag options to blanks, or click blank then click option'
Adurable
Breal-time
Chorizontal
Dtemporary
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'temporary' storage or ignoring scalability.