Quiz · Delivery guarantees · lesson 6 of 9Quiz — duplicatesWhat is an idempotent consumer, and how do you implement deduplication of redelivered messages?[A]An idempotent consumer disables retries so a message is processed at most once. Because nothing is ever redelivered, there is no need to track processed ids, and losing a message on failure is the accepted trade-off of this approach.[B]You deduplicate by timestamp: the consumer ignores any message that arrives within a few seconds of the previous one, assuming it is a retry. A stable id is unnecessary because near-simultaneous delivery is the only way duplicates ever occur in practice.[C]An idempotent consumer is one the broker marks as exactly-once, after which the broker filters duplicates for you before delivery. No dedup store is needed on your side — you set an idempotent flag on the subscription and the platform handles the rest.[D]An idempotent consumer reaches the same end state however often a message arrives, so at-least-once redelivery is safe. Deduplicate: give each a stable id, record processed ids, skip any already seen — ideally in the side effect's transaction.← BackDuplicates and the idempotent consumerNext →Exercise: an idempotent consumer