Bird
0
0

Which acks setting ensures that the producer waits for the leader broker to confirm the message?

easy📝 Conceptual Q2 of 15
Kafka - Producers
Which acks setting ensures that the producer waits for the leader broker to confirm the message?
Aacks=0
Backs=1
Cacks=all
Dacks=-1
Step-by-Step Solution
Solution:
  1. Step 1: Identify the meaning of acks=1

    Setting acks=1 means the producer waits for the leader broker to confirm the message.
  2. Step 2: Differentiate from other modes

    acks=all waits for all replicas, acks=0 waits for none, and acks=-1 is an alias for acks=all.
  3. Final Answer:

    acks=1 waits for leader acknowledgment only. -> Option B
  4. Quick Check:

    acks=1 = leader ack [OK]
Quick Trick: acks=1 waits for leader only, not all replicas [OK]
Common Mistakes:
  • Confusing acks=1 with acks=all
  • Thinking acks=0 waits for leader
  • Not knowing acks=-1 equals acks=all

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes