What command line tool is used to create a new topic in Kafka?
kafka-topics.sh
kafka-console-producer.sh
zookeeper-shell.sh
kafka-console-consumer.sh
Which Kafka CLI tool is used to produce messages to a Kafka topic?
kafka-configs.sh
How do you start a Kafka broker after installation?
Kafka automatically starts with the operating system
By simply starting the ZooKeeper service
Through a web interface provided by Kafka
By running the 'kafka-server-start.sh' script
Which of these is NOT a common use case for Kafka?
Real-time data analytics and monitoring.
Building a message queue for asynchronous communication.
Data pipelines for ingesting and processing data.
Storing large files like images and videos.
What command line option is used with the Kafka console producer to specify the topic to which messages should be sent?
--message
--partition
--topic
--bootstrap-server
Which configuration file is used to set up Kafka brokers?
broker.config
zookeeper.properties
server.properties
kafka.properties
What is the role of the zookeeper.connect property in Kafka configuration?
zookeeper.connect
Sets the data retention period for messages.
Configures the replication factor for topics.
Specifies the ZooKeeper quorum for Kafka to connect to.
Defines the compression codec for messages.
What happens to messages in Kafka after they are consumed?
They are immediately deleted from the topic
They remain in the topic until manually deleted
They are archived to a long-term storage system
They are moved to a separate 'consumed messages' queue
How does Kafka achieve scalability?
By limiting the number of topics allowed
By distributing data across multiple brokers
Through complex data compression algorithms
By using a single, powerful server
What is the role of ZooKeeper in a Kafka cluster?
Managing and coordinating Kafka brokers
Storing message data
Performing data aggregation
Consuming messages from topics