Bird
0
0

Which of the following is the correct way to set a size-based retention policy in Kafka's topic configuration?

easy📝 Syntax Q12 of 15
Kafka - Topics and Partitions
Which of the following is the correct way to set a size-based retention policy in Kafka's topic configuration?
A"retention.bytes" = 1073741824
B"retention.time" = 604800000
C"retention.size" = 1073741824
D"retention.ms" = 1073741824
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct property for size-based retention

    The correct property is retention.bytes for size limits.
  2. Step 2: Check option values and names

    "retention.bytes" = 1073741824 uses retention.bytes with a size value (1GB). Others use wrong keys or time-based keys.
  3. Final Answer:

    "retention.bytes" = 1073741824 -> Option A
  4. Quick Check:

    Size retention uses retention.bytes [OK]
Quick Trick: Size retention uses bytes, so look for retention.bytes [OK]
Common Mistakes:
  • Using retention.time instead of retention.ms
  • Using retention.size which is invalid
  • Confusing retention.ms with size setting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes