Bird
0
0

Which of the following is the correct syntax to set linger.ms to 50 milliseconds in Kafka producer properties file?

easy📝 Syntax Q3 of 15
Kafka - Producers
Which of the following is the correct syntax to set linger.ms to 50 milliseconds in Kafka producer properties file?
Alinger-ms=50
Blinger_ms=50
Clinger.ms=50
Dlinger.ms: 50
Step-by-Step Solution
Solution:
  1. Step 1: Recall Kafka property syntax

    Kafka properties use dot notation with equals sign, e.g., property.name=value.
  2. Step 2: Validate options

    Only linger.ms=50 matches correct syntax; others use underscores, colons, or dashes incorrectly.
  3. Final Answer:

    linger.ms=50 -> Option C
  4. Quick Check:

    Correct property syntax uses dot and equals [OK]
Quick Trick: Use dot notation and equals sign for Kafka properties [OK]
Common Mistakes:
  • Using underscore instead of dot
  • Using colon instead of equals
  • Using dash instead of dot

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes