← All questions
MediumDataTechnical

Account A starts at 100 units before this batch. Each accepted event adds its signed delta; these are not full balance snapshots. Durable event identity is (source, event_id), and the first valid accepted payload is immutable. An exact retry has no new effect. A later different payload with the same identity is quarantined and does not replace the accepted event. Corrections must be new authorized events with their own identity and a reference to the original event. All rows below target A and the correction is authorized. Process them in the stated delivery order.

1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below

The problem

Account A starts at 100 units before this batch. Each accepted event adds its signed delta; these are not full balance snapshots. Durable event identity is (source, event_id), and the first valid accepted payload is immutable. An exact retry has no new effect. A later different payload with the same identity is quarantined and does not replace the accepted event. Corrections must be new authorized events with their own identity and a reference to the original event. All rows below target A and the correction is authorized. Process them in the stated delivery order.

DeliverySourceEvent IDDeltaCorrection reference
1paymentse1+40None
2paymentse2-15None
3paymentse1+40None
4paymentse2-12None
5adjustmentse1+5None
6paymentse3+3payments/e2
7paymentse3+3payments/e2

Give the final balance, accepted identities, no-effect deliveries and conflict record. Explain why maximum-version or last-arrival selection cannot compute this ledger.

Reference answer

Then expect these follow-ups

  • Delivery 4 arrives before delivery 2 in a replay. Which durable accepted-state record or source authority must preserve the original acceptance decision, rather than applying the first-arrival policy again from an empty store?

Free to read · better with Enzo

Practice this out loud with Enzo

Enzo runs it as a mock interview, pushes back with follow-ups, and grades you on the rubric.

Next question