Bird
0
0

What happens when delete.topic.enable is set to false in Kafka?

easy📝 Conceptual Q1 of 15
Kafka - Topics and Partitions
What happens when delete.topic.enable is set to false in Kafka?
ATopics are deleted immediately without delay
BTopics cannot be deleted even if delete command is issued
CTopics are archived instead of deleted
DTopics are deleted only after broker restart
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of delete.topic.enable

    This configuration controls whether topic deletion is allowed in Kafka.
  2. Step 2: Effect of setting it to false

    If set to false, Kafka ignores delete requests and topics remain intact.
  3. Final Answer:

    Topics cannot be deleted even if delete command is issued -> Option B
  4. Quick Check:

    delete.topic.enable = false means no deletion allowed [OK]
Quick Trick: Set delete.topic.enable=true to allow topic deletion [OK]
Common Mistakes:
  • Assuming topics delete immediately without config
  • Confusing deletion with archiving
  • Thinking broker restart triggers deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes