What is the role of ZooKeeper in a Kafka cluster?
Managing and coordinating Kafka brokers
Consuming messages from topics
Performing data aggregation
Storing message data
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.
Defines the compression codec for messages.
Specifies the ZooKeeper quorum for Kafka to connect to.
How do you specify the message format (e.g., JSON, Avro) when consuming messages with the Kafka console consumer?
--value-deserializer
--key-serializer
--message-format
--consumer-format
How does a Kafka consumer typically keep track of its position within a partition?
By storing the last consumed message offset
By relying on the producer's message ordering
By querying the Kafka broker for its current position
By using message timestamps
What is the fundamental unit of data organization in Kafka?
Message
Broker
Partition
Topic
How does Kafka achieve scalability?
By using a single, powerful server
By distributing data across multiple brokers
Through complex data compression algorithms
By limiting the number of topics allowed
What is a message offset in Kafka?
A unique identifier assigned to each message
A timestamp indicating when the message was produced
A key-value pair associated with a message for filtering
A sequential number representing a message's position within a partition
Which of these is NOT a common use case for Kafka?
Data pipelines for ingesting and processing data.
Building a message queue for asynchronous communication.
Real-time data analytics and monitoring.
Storing large files like images and videos.
What is a key advantage of Kafka's 'publish-subscribe' model?
It reduces the need for data transformation
It guarantees real-time message delivery with no latency
It eliminates the need for message brokers
It allows multiple consumers to process the same data independently
What does a message value in Kafka typically contain?
The actual data or payload being transmitted
Metadata about the message
Information for routing the message
The message's unique identifier