DE Mastery GitHub

Apache Kafka · KFK-03

Producers — batching, idempotence, ordering under retries

From your world. SOX: no duplicate and no reordered financial events, even on retry

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz KFK-03.

1Which single setting makes a producer reject duplicates AND preserve per-partition order across retries?
2With enable.idempotence=true, what is the maximum value of max.in.flight.requests.per.connection that still preserves ordering under retries?
3You tune a JSON event producer for THROUGHPUT. You must keep per-key order and have no duplicates. Which settings do you use? (choose all) (select all that apply)
4A producer has retries enabled, max.in.flight=6, and idempotence off. Sometimes it writes account events out of order within a partition. Why?
5What does the default partitioner do with a record that HAS a key?
6Which of these does enable.idempotence=true implicitly set?