What command line tool is used to create a new topic in Kafka?
kafka-topics.sh
kafka-console-producer.sh
kafka-console-consumer.sh
zookeeper-shell.sh
Which configuration parameter controls the data retention period for messages in a topic?
log.retention.hours
retention.ms
data.expiration
message.ttl
Where is the Kafka data directory configured?
It's configured automatically based on the operating system.
In the topic.properties file, using the data.dir property.
topic.properties
data.dir
In the ZooKeeper configuration, using the kafka.data.path property.
kafka.data.path
In the server.properties file, using the log.dirs property.
server.properties
log.dirs
To view the configuration details of a specific topic, which command would you use?
kafka-topics.sh --describe --topic <topic-name>
kafka-topics.sh --list --topic <topic-name>
kafka-console-consumer.sh --describe --topic <topic-name>
kafka-configs.sh --describe --topic <topic-name>
Which of these is NOT a valid configuration parameter when creating a Kafka topic?
message-size
replication-factor
partitions
Which Kafka CLI tool is used to produce messages to a Kafka topic?
kafka-configs.sh
What command line option is used with the Kafka console producer to specify the topic to which messages should be sent?
--message
--topic
--bootstrap-server
--partition
How are messages within a Kafka topic further divided for scalability and parallelism?
Offsets
Segments
Clusters
Partitions
Which configuration parameter determines the number of partitions a topic will have?
topic.partitions
num.partitions
partition.count
replication.factor
Why is Kafka's partitioning of topics important?
To encrypt sensitive data within messages
To enable parallel processing of data
To simplify message ordering within a topic
To reduce the overall storage space used