Bird
0
0

What does the linger.ms configuration control in Kafka producer settings?

easy📝 Conceptual Q11 of 15
Kafka - Producers
What does the linger.ms configuration control in Kafka producer settings?
AThe maximum size of a message batch in bytes
BThe maximum time to wait before sending a batch of messages
CThe number of retries for sending a message
DThe timeout for consumer group rebalancing
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of linger.ms

    The linger.ms setting defines how long the producer waits before sending a batch, allowing more messages to accumulate.
  2. Step 2: Differentiate from other settings

    Other options like batch size control bytes, retries control attempts, and consumer timeout are unrelated to linger time.
  3. Final Answer:

    The maximum time to wait before sending a batch of messages -> Option B
  4. Quick Check:

    linger.ms = wait time before batch send [OK]
Quick Trick: linger.ms sets wait time before sending batch [OK]
Common Mistakes:
  • Confusing linger.ms with batch size
  • Thinking linger.ms controls retries
  • Mixing producer and consumer settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes