Where is the Kafka data directory configured?
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
It's configured automatically based on the operating system.
In the server.properties file, using the log.dirs property.
server.properties
log.dirs
What is a key advantage of Kafka's 'publish-subscribe' model?
It allows multiple consumers to process the same data independently
It eliminates the need for message brokers
It guarantees real-time message delivery with no latency
It reduces the need for data transformation
What is the fundamental unit of data organization in Kafka?
Broker
Topic
Partition
Message
Which configuration parameter determines the number of partitions a topic will have?
topic.partitions
num.partitions
partition.count
replication.factor
How do you specify the message format (e.g., JSON, Avro) when consuming messages with the Kafka console consumer?
--consumer-format
--value-deserializer
--key-serializer
--message-format
What is the purpose of the auto.create.topics.enable configuration in Kafka?
auto.create.topics.enable
Configures automatic data balancing across partitions within a topic.
Enables automatic topic deletion after a specified retention period.
Automatically creates topics if they don't exist when producers or consumers try to access them.
Allows dynamic adjustment of the replication factor for existing topics.
How do you start a Kafka broker after installation?
Through a web interface provided by Kafka
By running the 'kafka-server-start.sh' script
Kafka automatically starts with the operating system
By simply starting the ZooKeeper service
What does the 'acks' configuration parameter control in a Kafka producer?
The level of message replication acknowledgment
The size of the message buffer
The consumer group ID
The number of partitions in a topic
What does it mean for a Kafka message to be 'persisted'?
It is written to disk and stored durably
It is stored in memory for fast access
It is encrypted for security purposes
It is immediately deleted after being read
Which Kafka CLI tool is used to produce messages to a Kafka topic?
kafka-topics.sh
kafka-configs.sh
kafka-console-producer.sh
kafka-console-consumer.sh