Challenge - 5 Problems
Kafka Topic Deletion Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of the Kafka topic deletion command?
Given the command to delete a Kafka topic, what will be the output if the topic exists and deletion is successful?
Kafka
kafka-topics.sh --delete --topic my-topic --bootstrap-server localhost:9092Attempts:
2 left
💡 Hint
Think about how Kafka handles topic deletion asynchronously.
✗ Incorrect
Kafka marks the topic for deletion but the actual removal happens asynchronously. The command outputs a confirmation that the topic is marked for deletion.
🧠 Conceptual
intermediate2:00remaining
What happens if topic deletion is disabled in Kafka?
If the Kafka broker configuration has 'delete.topic.enable=false', what will happen when you try to delete a topic?
Attempts:
2 left
💡 Hint
Consider the effect of disabling topic deletion in Kafka broker settings.
✗ Incorrect
When 'delete.topic.enable' is false, Kafka ignores delete requests and the topic remains intact without any deletion.
🔧 Debug
advanced2:00remaining
Why does the topic not get deleted after issuing the delete command?
You ran the command to delete a Kafka topic, but the topic still appears in the list. What could be the reason?
Kafka
kafka-topics.sh --delete --topic test-topic --bootstrap-server localhost:9092 kafka-topics.sh --list --bootstrap-server localhost:9092
Attempts:
2 left
💡 Hint
Check the broker configuration related to topic deletion.
✗ Incorrect
If 'delete.topic.enable' is false, Kafka will not delete topics even if the delete command is issued, so the topic remains listed.
📝 Syntax
advanced2:00remaining
Which command correctly deletes a Kafka topic named 'orders'?
Choose the correct syntax to delete the Kafka topic 'orders' using kafka-topics.sh with bootstrap server localhost:9092.
Attempts:
2 left
💡 Hint
Check the official kafka-topics.sh command syntax for deleting topics.
✗ Incorrect
The correct syntax uses '--delete' and '--topic' flags with '--bootstrap-server' to specify the broker.
🚀 Application
expert3:00remaining
How to ensure complete cleanup of deleted Kafka topics?
After deleting a Kafka topic, which steps ensure that all data and metadata related to the topic are fully cleaned up from the Kafka cluster?
Attempts:
2 left
💡 Hint
Think about Kafka's asynchronous deletion and broker storage cleanup.
✗ Incorrect
Kafka deletes topic data asynchronously. Sometimes manual cleanup of topic directories on brokers is needed if deletion is stuck or incomplete.