Bird
0
0

You want to ensure that deleted topics' data is cleaned up exactly 30 minutes after deletion. Which configuration should you set and how?

hard📝 Application Q8 of 15
Kafka - Topics and Partitions
You want to ensure that deleted topics' data is cleaned up exactly 30 minutes after deletion. Which configuration should you set and how?
ASet <code>delete.topic.enable=false</code> and <code>delete.retention.ms=1800000</code>
BSet <code>delete.retention.ms=1800000</code> and <code>delete.topic.enable=true</code>
CSet <code>log.retention.ms=1800000</code> only
DSet <code>log.cleanup.policy=delete</code> only
Step-by-Step Solution
Solution:
  1. Step 1: Enable topic deletion

    Set delete.topic.enable=true to allow deletion.
  2. Step 2: Set retention time after deletion

    Set delete.retention.ms=1800000 (30 minutes in ms) to control cleanup delay.
  3. Final Answer:

    Set delete.retention.ms=1800000 and delete.topic.enable=true -> Option B
  4. Quick Check:

    Enable deletion and set retention for cleanup timing [OK]
Quick Trick: Both enable deletion and set retention for cleanup delay [OK]
Common Mistakes:
  • Setting retention without enabling deletion
  • Using log.retention.ms which controls general log retention
  • Disabling deletion while setting retention

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes