Bird
0
0

In a Kafka broker config, the line log.retention.ms=abc causes an error. Why?

medium📝 Debug Q7 of 15
Kafka - Cluster Architecture
In a Kafka broker config, the line log.retention.ms=abc causes an error. Why?
Alog.retention.ms is not a valid configuration
Blog.retention.ms requires a numeric value in milliseconds
CThe value should be in seconds, not milliseconds
DThe property name is case sensitive and must be uppercase
Step-by-Step Solution
Solution:
  1. Step 1: Understand expected value type for log.retention.ms

    This property expects a numeric value representing milliseconds.
  2. Step 2: Identify invalid value

    The value 'abc' is not numeric, causing a configuration parsing error.
  3. Final Answer:

    log.retention.ms requires a numeric value in milliseconds -> Option B
  4. Quick Check:

    log.retention.ms = numeric milliseconds [OK]
Quick Trick: Use numbers only for time-based configs like log.retention.ms [OK]
Common Mistakes:
  • Using non-numeric strings for time values
  • Confusing milliseconds with seconds
  • Incorrect case sensitivity assumptions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes