Bird
0
0

What does the retention.ms setting control in Kafka?

easy📝 Conceptual Q11 of 15
Kafka - Topics and Partitions
What does the retention.ms setting control in Kafka?
AThe maximum size of a Kafka topic
BHow long Kafka keeps data before deleting it
CThe number of partitions in a topic
DThe replication factor of a topic
Step-by-Step Solution
Solution:
  1. Step 1: Understand retention.ms meaning

    retention.ms sets the time duration Kafka retains data before deletion.
  2. Step 2: Compare with other options

    Other options relate to size, partitions, or replication, not time retention.
  3. Final Answer:

    How long Kafka keeps data before deleting it -> Option B
  4. Quick Check:

    retention.ms = time-based retention [OK]
Quick Trick: Remember ms means milliseconds, so it's about time [OK]
Common Mistakes:
  • Confusing retention.ms with retention.bytes
  • Thinking it controls topic size
  • Mixing it with partition count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes