Bird
0
0

A user sets delete.retention.ms to a negative value. What will happen when they try to delete a topic?

medium📝 Debug Q7 of 15
Kafka - Topics and Partitions
A user sets delete.retention.ms to a negative value. What will happen when they try to delete a topic?
AKafka will ignore the delete request
BTopic data will be deleted immediately without retention
CTopic deletion will fail with an error
DKafka will reject the config and use default retention
Step-by-Step Solution
Solution:
  1. Step 1: Understand config validation

    Kafka validates config values; negative retention is invalid.
  2. Step 2: Behavior on invalid config

    Kafka rejects invalid values and falls back to default retention time.
  3. Final Answer:

    Kafka will reject the config and use default retention -> Option D
  4. Quick Check:

    Invalid retention values revert to defaults [OK]
Quick Trick: Use positive values for retention configs to avoid fallback [OK]
Common Mistakes:
  • Assuming immediate deletion with negative value
  • Expecting error on deletion command
  • Thinking deletion is ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes