Bird
0
0

Which Kafka producer configuration syntax correctly sets the linger.ms to 10 milliseconds?

easy📝 Syntax Q3 of 15
Kafka - Performance Tuning
Which Kafka producer configuration syntax correctly sets the linger.ms to 10 milliseconds?
A{"linger-ms": "10"}
B{"linger_ms": 10}
C{"linger.ms": 10}
D{"linger.ms": "ten"}
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct key format

    The correct key uses dot notation: "linger.ms".
  2. Step 2: Check value type

    The value should be a number, not a string or word.
  3. Final Answer:

    {"linger.ms": 10} -> Option C
  4. Quick Check:

    Correct syntax for linger.ms = A [OK]
Quick Trick: Use dot notation and numeric values for configs [OK]
Common Mistakes:
MISTAKES
  • Using underscore instead of dot
  • Passing string instead of number
  • Using words instead of numeric values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes