Bird
0
0

You have this Kafka producer config:

medium📝 Debug Q14 of 15
Kafka - Performance Tuning
You have this Kafka producer config:
props.put("batch.size", 32768);
props.put("linger.ms", 0);
props.put("acks", "0");

What is the main problem with this setup if you want high throughput and reliability?
Alinger.ms=0 disables batching, reducing throughput.
Backs=0 means no acknowledgment, risking message loss.
Cbatch.size is too large and causes errors.
DThe config syntax is invalid and will cause exceptions.
Step-by-Step Solution
Solution:
  1. Step 1: Check acks setting impact

    acks=0 means producer does not wait for any acknowledgment, risking message loss.
  2. Step 2: Evaluate throughput vs reliability

    While batch.size is large and linger.ms=0 disables waiting, the main reliability issue is acks=0.
  3. Final Answer:

    acks=0 means no acknowledgment, risking message loss. -> Option B
  4. Quick Check:

    acks=0 risks loss despite throughput [OK]
Quick Trick: acks=0 disables reliability, not good for safe throughput [OK]
Common Mistakes:
  • Thinking linger.ms=0 disables batching completely
  • Assuming batch.size too large causes errors
  • Confusing config syntax as invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes