Bird
0
0

Given the following Kafka broker config snippet:

medium📝 Predict Output Q4 of 15
Kafka - Topics and Partitions
Given the following Kafka broker config snippet:
delete.topic.enable=true
delete.retention.ms=3600000

What happens when a topic is deleted?
ATopic data is immediately removed from disk
BTopic deletion is ignored due to retention setting
CTopic is marked for deletion and data is retained for 1 hour before cleanup
DTopic data is archived for 1 hour before deletion
Step-by-Step Solution
Solution:
  1. Step 1: Understand delete.topic.enable=true

    This enables topic deletion requests to be processed.
  2. Step 2: Interpret delete.retention.ms=3600000

    This means Kafka retains deleted topic data for 3600000 ms (1 hour) before cleanup.
  3. Final Answer:

    Topic is marked for deletion and data is retained for 1 hour before cleanup -> Option C
  4. Quick Check:

    delete.retention.ms sets delay before data cleanup [OK]
Quick Trick: delete.retention.ms delays data cleanup after deletion [OK]
Common Mistakes:
  • Assuming immediate data removal
  • Confusing retention with archiving
  • Ignoring delete.topic.enable setting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes