0
0
Kafkadevops~5 mins

Topic configuration in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Apartitions
Bcleanup.policy
Creplication.factor
Dretention.ms
What does increasing the number of partitions in a topic do?
AIncreases replication factor
BDecreases message retention time
CIncreases parallelism and throughput
DChanges the topic name
What is the default replication factor if not set explicitly?
A2
B1
C3
D0
Which tool can be used to change topic configuration after creation?
Akafka-configs.sh
Bkafka-topics.sh
Ckafka-console-producer.sh
Dkafka-console-consumer.sh
What does the 'cleanup.policy' configuration control?
AHow messages are deleted or compacted
BNumber of partitions
CReplication factor
DMessage format
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.