Bird
0
0

What does a time-based retention policy in Kafka primarily control?

easy📝 Conceptual Q1 of 15
Kafka - Topics and Partitions
What does a time-based retention policy in Kafka primarily control?
AThe maximum size of a topic partition
BThe number of consumers allowed
CHow long messages are kept before deletion
DThe replication factor of the topic
Step-by-Step Solution
Solution:
  1. Step 1: Understand retention.ms setting

    The retention.ms setting defines the time duration messages are retained in Kafka before deletion.
  2. Step 2: Differentiate from size-based retention

    Size-based retention controls storage size, not time. Time-based retention controls message lifetime.
  3. Final Answer:

    How long messages are kept before deletion -> Option C
  4. Quick Check:

    Time-based retention = message lifetime [OK]
Quick Trick: Time-based retention controls message lifetime [OK]
Common Mistakes:
  • Confusing time-based with size-based retention
  • Thinking retention controls consumer count
  • Mixing retention with replication settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes