Recall & Review
beginner
What is a Kafka topic configuration?
A Kafka topic configuration is a set of settings that control how a topic behaves, such as retention time, number of partitions, and replication factor.
Click to reveal answer
beginner
What does the 'retention.ms' configuration control in a Kafka topic?
The 'retention.ms' setting controls how long Kafka keeps the messages in a topic before deleting them, measured in milliseconds.
Click to reveal answer
beginner
How does the 'partitions' setting affect a Kafka topic?
The 'partitions' setting defines how many parts a topic is split into, allowing parallel processing and scalability.
Click to reveal answer
intermediate
What is the role of 'replication.factor' in Kafka topic configuration?
The 'replication.factor' determines how many copies of each partition are kept across different brokers for fault tolerance.
Click to reveal answer
intermediate
How can you change a Kafka topic's configuration after it is created?
You can use Kafka's command-line tools or APIs to alter topic configurations like retention time or cleanup policy without deleting the topic.
Click to reveal answer
Which configuration controls how long messages are stored in a Kafka topic?
✗ Incorrect
The 'retention.ms' setting controls the message retention time in milliseconds.
What does increasing the number of partitions in a topic do?
✗ Incorrect
More partitions allow more consumers to read in parallel, improving throughput.
What is the default replication factor if not set explicitly?
✗ Incorrect
By default, Kafka sets replication factor to 1, meaning no replication.
Which tool can be used to change topic configuration after creation?
✗ Incorrect
'kafka-configs.sh' is used to alter topic configurations.
What does the 'cleanup.policy' configuration control?
✗ Incorrect
'cleanup.policy' defines whether messages are deleted or compacted.
Explain the key configurations you can set for a Kafka topic and their effects.
Think about message storage time, parallelism, fault tolerance, and message deletion.
You got /4 concepts.
How can you update a Kafka topic's configuration after it has been created? Describe the process.
Focus on tools and commands used to change settings safely.
You got /4 concepts.