Apache Kafka Streaming (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What is Producer `acks` (`acks=0`, `acks=1`, `acks=all`)?
junior LevelkafkaBasic
In Simple Words: Controls the level of durability acknowledgment the producer demands from the broker before considering a write successful:
acks=0(Fire-and-Forget): Producer never waits for any broker response. Ultra-fast, lowest latency, but severe risk of silent message loss if the network fails or broker crashes.acks=1(Leader Ack - Legacy Default): Producer waits until the partition leader has written the record to its local log. Does not wait for followers. If the leader acknowledges and immediately crashes before followers replicate, the message is permanently lost.acks=alloracks=-1(Strongest Durability - Modern Default): Producer waits until the leader and all in-sync replicas (min.insync.replicas) have written the record to disk. Zero message loss guaranteed.