Bird
0
0

Why does Kafka retain deleted topic data for a configurable period instead of deleting it immediately?

hard📝 Conceptual Q10 of 15
Kafka - Topics and Partitions
Why does Kafka retain deleted topic data for a configurable period instead of deleting it immediately?
ATo allow time for consumers to finish reading data and avoid data loss
BBecause immediate deletion causes broker crashes
CTo archive data for audit purposes automatically
DDue to limitations in the file system preventing instant deletion
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka's design for data safety

    Kafka retains deleted topic data temporarily to ensure consumers can finish processing messages.
  2. Step 2: Rule out incorrect reasons

    Immediate deletion does not cause crashes, archiving is not automatic, and file system limitations are not the reason.
  3. Final Answer:

    To allow time for consumers to finish reading data and avoid data loss -> Option A
  4. Quick Check:

    Retention after deletion protects consumer data consumption [OK]
Quick Trick: Retention delay protects consumers from losing unread data [OK]
Common Mistakes:
  • Thinking deletion delay is due to system crashes
  • Assuming automatic archiving
  • Blaming file system limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes