Bird
0
0

Which of the following is the correct way to set the linger time to 100 milliseconds in Kafka producer configuration?

easy📝 Syntax Q12 of 15
Kafka - Performance Tuning
Which of the following is the correct way to set the linger time to 100 milliseconds in Kafka producer configuration?
A"linger.ms = 100"
B"linger_time = 100"
C"lingerMs: 100"
D"linger = 100ms"
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct property name

    The Kafka producer uses linger.ms to set linger time in milliseconds.
  2. Step 2: Confirm correct syntax

    The correct syntax is linger.ms = 100, using dot notation and milliseconds.
  3. Final Answer:

    "linger.ms = 100" -> Option A
  4. Quick Check:

    linger.ms sets linger time [OK]
Quick Trick: Use exact property names with dots, like linger.ms [OK]
Common Mistakes:
MISTAKES
  • Using underscores instead of dots
  • Adding units like 'ms' in the value
  • Using camelCase or colon syntax incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes