11.) In a Docker setup, which image is commonly used to run Kafka?
A) apache/kafka
B) kafka/docker
C) wurstmeister/kafka
D) confluentinc/kafka
12.) What is the default directory where Kafka logs are stored?
A) /kafka-logs
B) /var/kafka/logs
C) /tmp/log
D) /opt/kafka/data
13.) What command is used to delete a Kafka topic?
A) kafka-delete-topic.sh
B) kafka-topics.sh –remove
C) kafka-topics.sh –remove
D) kafka-topic-delete.sh
14.) What must be enabled in the config to allow topic deletion?
A) delete.topic.enable=true
B) allow.topic.deletion=true
C) kafka.topic.delete=true
D) enable.delete.topic=true
15.) Which file starts the Kafka shell CLI tools?
A) kafka.sh
B) kafka-tools.sh
C) kafka-cli.sh
D) kafka-run-class.sh
16.) What is the flag to specify a topic name while using kafka-console-producer.sh?
A) –name
B) –topic
C) –send-topic
D) –channel
17.) Which Kafka CLI tool is used to describe partitions, replication, and configs of a topic?
A) kafka-topics.sh –describe
B) kafka-configs.sh
C) kafka-describe.sh
D) kafka-metadata.sh
18.) How can you consume messages from the beginning of a topic?
A) –start new
B) –offset latest
C) –from-beginning
D) –consume-all
19.) Which tool sets or modifies Kafka topic-level configuration?
A) kafka-configs.sh
B) kafka-properties.sh
C) kafka-edit.sh
D) kafka-env.sh
20.) To check the offset of a Kafka consumer group, which CLI is used?
A) kafka-consumer-offsets.sh
B) kafka-topics.sh –offset
C) kafka-check-offset.sh
D) kafka-consumer-groups.sh
Related