Question 1
Topic: Apache Kafka® Fundamentals
Skill tested: Evaluates partition leadership, replication, and acknowledgment trade-offs for durable event production.
A payment platform writes transaction events to a topic with a replication factor of three. The team requires that a producer receive success only when all in-sync replicas have accepted a record, and it must prevent writes when fewer than two replicas remain in sync. A broker outage should not silently reduce the durability guarantee. Which configuration best meets these requirements?
With acks=all (also expressed as acks=-1), the leader waits for the current in-sync replicas to acknowledge the write. Setting min.insync.replicas=2 makes the broker reject such writes when fewer than two replicas are in sync, preserving the stated durability floor. acks=1 waits only for the leader, while acks=0 provides no broker acknowledgment. A minimum of one would allow writes with only the leader in the in-sync set, contrary to the requirement.