What is a key advantage of Kafka's distributed architecture?
It limits the amount of data Kafka can handle, making it more manageable.
It provides fault tolerance and scalability by replicating data across multiple brokers.
It simplifies the deployment and management of Kafka clusters.
It ensures messages are always processed in real-time with minimal latency.
How do you specify the message format (e.g., JSON, Avro) when consuming messages with the Kafka console consumer?
--consumer-format
--key-serializer
--message-format
--value-deserializer
What command line option for kafka-topics.sh is used to specify the replication factor for a new topic?
kafka-topics.sh
--replication-factor
--zookeeper
--topic
--partitions
Which of these is NOT a valid configuration parameter when creating a Kafka topic?
message-size
replication-factor
partitions
retention.ms
What is a 'Partition' in the context of Kafka topics?
A security mechanism to control access to specific topics.
A logical grouping of messages within a topic for parallel processing.
A separate copy of the entire topic data for redundancy.
A configuration setting that determines message retention time.
What command line tool is used to create a new topic in Kafka?
kafka-console-producer.sh
zookeeper-shell.sh
kafka-console-consumer.sh
What is a message offset in Kafka?
A key-value pair associated with a message for filtering
A timestamp indicating when the message was produced
A sequential number representing a message's position within a partition
A unique identifier assigned to each message
What is the role of a Kafka consumer?
Store message offsets
Manage the cluster and its configuration
Publish messages to topics
Subscribe to and process messages from topics
Which configuration parameter controls the data retention period for messages in a topic?
message.ttl
log.retention.hours
data.expiration
Which configuration file is used to set up Kafka brokers?
broker.config
server.properties
zookeeper.properties
kafka.properties