0
0
Kafkadevops~5 mins

Topic deletion and cleanup in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What happens when you delete a Kafka topic?
Deleting a Kafka topic removes all its data and metadata from the cluster. This means all messages, partitions, and offsets are permanently lost.
Click to reveal answer
beginner
How do you enable topic deletion in Kafka?
You enable topic deletion by setting the broker configuration delete.topic.enable=true. Without this, topic deletion requests are ignored.
Click to reveal answer
intermediate
What is the role of the log.retention.ms setting in topic cleanup?
The log.retention.ms setting controls how long Kafka keeps messages before deleting them during cleanup. It helps manage disk space by removing old data.
Click to reveal answer
intermediate
Explain the difference between topic deletion and log cleanup in Kafka.
Topic deletion removes the entire topic and all its data permanently. Log cleanup removes old messages based on retention policies but keeps the topic and newer messages intact.
Click to reveal answer
beginner
What happens if delete.topic.enable is set to false and you try to delete a topic?
If delete.topic.enable is false, Kafka ignores delete requests. The topic remains active and data is not removed.
Click to reveal answer
Which Kafka broker setting must be enabled to allow topic deletion?
Adelete.topic.enable=true
Blog.retention.ms=0
Cauto.create.topics.enable=true
Dlog.cleanup.policy=delete
What does Kafka do when a topic is deleted?
ADisables the topic but keeps data
BRemoves all data and metadata for the topic
COnly deletes messages older than retention period
DArchives the topic data for backup
What controls how long Kafka keeps messages before cleanup?
Aauto.offset.reset
Bdelete.topic.enable
Clog.retention.ms
Dlog.segment.bytes
If delete.topic.enable is false, what happens when you try to delete a topic?
AThe topic is deleted immediately
BThe topic is archived
CKafka throws an error
DThe delete request is ignored
Which of the following is NOT true about Kafka topic deletion?
AIt only deletes messages older than retention time
BIt can be disabled via broker config
CIt permanently removes all topic data
DIt removes topic metadata
Describe the process and configuration needed to delete a Kafka topic safely.
Think about broker settings and what happens to data.
You got /4 concepts.
    Explain the difference between Kafka topic deletion and log cleanup.
    Focus on what is removed and what remains.
    You got /4 concepts.