0
0
Kafkadevops~10 mins

Kafka Manager/UI tools - Interactive Code Practice

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

Complete the code to start Kafka Manager with the default port.

Kafka
bin/kafka-manager [1]
Drag options to blanks, or click blank then click option'
A-Dhttp.port=8080
B-Dhttp.port=9092
C-Dhttp.port=7000
D-Dhttp.port=9000
Attempts:
3 left
💡 Hint
Common Mistakes
Using common web port 8080 instead of Kafka Manager's default 9000.
Using Kafka broker port 9092 instead of Kafka Manager UI port.
Not specifying any port and expecting it to start automatically.
2fill in blank
medium

Complete the configuration line to add a Kafka cluster in Kafka Manager.

Kafka
kafka-manager.zkhosts=[1]
Drag options to blanks, or click blank then click option'
Alocalhost:2181
Blocalhost:9092
Clocalhost:8080
Dlocalhost:7000
Attempts:
3 left
💡 Hint
Common Mistakes
Using Kafka broker port 9092 instead of ZooKeeper port 2181.
Using the Kafka Manager UI port instead of ZooKeeper port.
3fill in blank
hard

Fix the error in the command to start Kafka Manager with a custom config file.

Kafka
bin/kafka-manager -Dconfig.file=[1]
Drag options to blanks, or click blank then click option'
Aconf/application.conf
Bconf/application.txt
Cconf/application.yaml
Dconf/application.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using unsupported config file formats like .txt, .json, or .yaml.
Misspelling the config file name.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps topic names to their partition count if partitions are more than 3.

Kafka
{topic: [1] for topic, partitions in topics.items() if partitions [2] 3}
Drag options to blanks, or click blank then click option'
Apartitions
B==
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using equality operator instead of greater than.
Mapping topic to topic name instead of partition count.
5fill in blank
hard

Fill all three blanks to filter topics with more than 5 partitions and create a dictionary with uppercase topic names and their partition counts.

Kafka
{ [1]: [2] for [3], partitions in topics.items() if partitions > 5 }
Drag options to blanks, or click blank then click option'
Atopic.upper()
Bpartitions
Ctopic
Dpartition
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names like 'partition' instead of 'partitions'.
Not converting topic names to uppercase.