0
0
Kafkadevops~5 mins

Acknowledgment modes (acks=0, 1, all) in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does acks=0 mean in Kafka producer configuration?

acks=0 means the producer does not wait for any acknowledgment from the broker after sending a message. It sends the message and moves on immediately.

This is the fastest mode but risks message loss if the broker fails.

Click to reveal answer
beginner
Explain acks=1 in Kafka producer settings.

acks=1 means the producer waits for acknowledgment from the leader broker only.

The leader confirms it received the message, but followers might not have replicated it yet.

This balances speed and reliability.

Click to reveal answer
beginner
What does acks=all (or acks=-1) guarantee in Kafka?

acks=all means the producer waits for acknowledgment from all in-sync replicas.

This ensures the message is fully replicated and is the safest mode against data loss.

It is slower but more reliable.

Click to reveal answer
beginner
Which acknowledgment mode offers the fastest message sending but the least reliability?

acks=0 offers the fastest sending because the producer does not wait for any confirmation.

However, it risks losing messages if the broker fails before storing them.

Click to reveal answer
intermediate
Why might you choose acks=all despite its slower speed?

You choose acks=all to ensure maximum data safety.

It waits for all replicas to confirm the message, reducing the chance of data loss even if some brokers fail.

Click to reveal answer
What does acks=0 mean in Kafka?
AProducer waits for leader acknowledgment only
BProducer retries sending messages indefinitely
CProducer waits for all replicas acknowledgment
DProducer does not wait for any acknowledgment
Which acks setting waits for the leader broker's confirmation only?
Aacks=all
Backs=0
Cacks=1
Dacks=-1
What is the main advantage of acks=all?
AWaits for all in-sync replicas to confirm
BNo message loss risk
CNo acknowledgments needed
DFastest message sending
If you want the fastest sending speed and can tolerate some message loss, which acks value should you use?
Aacks=all
Backs=0
Cacks=1
Dacks=-1
What does acks=-1 mean in Kafka?
ASame as acks=all
BSame as acks=1
CSame as acks=0
DDisables acknowledgments
Describe the differences between acks=0, acks=1, and acks=all in Kafka producer configuration.
Think about how much the producer waits before considering a message sent.
You got /4 concepts.
    Why would a Kafka producer choose acks=all over acks=1 or acks=0?
    Consider what happens if a broker fails after receiving a message.
    You got /3 concepts.