What command line tool is used to create a new topic in Kafka?
zookeeper-shell.sh
kafka-topics.sh
kafka-console-consumer.sh
kafka-console-producer.sh
What happens to messages in Kafka after they are consumed?
They are moved to a separate 'consumed messages' queue
They remain in the topic until manually deleted
They are archived to a long-term storage system
They are immediately deleted from the topic
Which of the following is NOT a responsibility of a Kafka Consumer?
Subscribe to topics
Publish messages to topics
Track message consumption progress
Read messages from topics
In Kafka, what is a 'Topic' analogous to?
A specific partition within a broker
A storage location on a hard drive
A category or stream of messages
A single message
In Kafka's architecture, what is the role of a 'Broker'?
A consumer of data from Kafka topics.
A network protocol used for communication in Kafka.
A tool for analyzing data stored in Kafka.
A server that stores and manages Kafka data.
Which Kafka admin command is used to create a new topic?
kafka-console-producer.sh --create
kafka-topics.sh --create
kafka-configs.sh --alter
kafka-topics.sh --describe
What command line option is used with the Kafka console producer to specify the topic to which messages should be sent?
--topic
--message
--bootstrap-server
--partition
What is a message offset in Kafka?
A timestamp indicating when the message was produced
A unique identifier assigned to each message
A sequential number representing a message's position within a partition
A key-value pair associated with a message for filtering
Which configuration parameter determines the number of partitions a topic will have?
partition.count
replication.factor
num.partitions
topic.partitions
Which Kafka CLI tool is used to produce messages to a Kafka topic?
kafka-configs.sh