21.) To install Kafka using tarball, which step comes first?
A) Run the broker
B) Extract the tar file
C) Modify server.properties
D) Start producer
22.) In Kafka Docker Compose setup, what service typically comes before Kafka?
A) Kafka UI
B) Consumer
C) Zookeeper
D) Log Cleaner
23.) How do you override Kafka configs while running a script?
A) Use –env parameter
B) Pass key=value after the script name
C) Edit config file
D) Set them in .bashrc
24.) Which tool is used for performance testing Kafka producers?
A) kafka-producer-perf-test.sh
B) kafka-perf-producer.sh
C) kafka-test-producer.sh
D) kafka-benchmark.sh
25.) What CLI tool can change topic retention policy?
A) kafka-topics.sh
B) kafka-configs.sh
C) kafka-retention.sh
D) kafka-admin.sh
26.) What property defines Kafka broker ID in the config file?
A) broker.id
B) kafka.broker
C) id.broker
D) broker.name
27.) How to stop Kafka safely?
A) Use Ctrl + C
B) killall -9 kafka
C) Use kafka-server-stop.sh
D) Close the terminal
28.) What config is used to set the number of partitions when creating a topic?
A) partitions
B) –set-partitions
C) –num-partitions
D) –partition-count
29.) What command can help validate Kafka message sending without coding?
A) kafka-message-validator.sh
B) kafka-console-producer.sh
C) kafka-producer.sh –debug
D) kafka-test-run.sh
30.) Which command is used to delete consumer group offset data?
A) kafka-cleaner.sh
B) kafka-consumer-groups.sh –reset-offsets
C) kafka-clear.sh
D) kafka-delete-offsets.sh
Related