The interview problem

FDE practice prompt

A customer reports that its billing platform shows paid orders while its CRM still shows payment pending. Other orders have duplicate fulfillment requests. You have two days to diagnose the integration and propose a safe recovery. Design the investigation, reconciliation process and customer handoff.

Original practice case, not a reported company interview. Technical references retrieved September 26, 2026. Volumes and service contracts below are assumptions to clarify with the customer.

1. Agree on authority before repairing data

Ask which system owns payment state, fulfillment state and customer contact details. A useful contract is that the billing platform owns payment settlement, the fulfillment platform owns shipment execution, and the CRM holds a derived view. A CRM timestamp does not override a billing settlement merely because it is newer. Record ownership per field or business transition rather than declaring one system authoritative for everything.

Separate stale display data from duplicate irreversible actions. Stop the faulty fulfillment trigger if evidence shows it can create duplicate shipments, while preserving incoming events durably. Agree with the customer on the operational impact of that pause and a manual exception path. Do not bulk mark all orders paid just to make dashboard totals match.

Request a narrow authorized sample with tenant ID, order ID, external object IDs, event IDs, processing times and outcome codes. Avoid copying full payment or customer payloads into debugging tickets. Establish the incident period, affected tenants, expected synchronization delay and the business definition of “paid,” including partial payments and reversals.

2. Reconstruct representative timelines

Trace one stale record and one duplicate from source commit through event delivery, durable receipt, transformation, target write and acknowledgement. Compare source event time, receipt time and processing time separately. A successful HTTP response proves only the receiver's documented acknowledgement boundary; it does not prove the CRM write or shipment succeeded.

Test hypotheses against evidence: did an event get acknowledged before durable storage, did a worker crash after creating a shipment but before recording success, or did an old event overwrite newer state? Check identifier mapping, tenant routing, timezone conversions and schema changes before assuming transport loss. Preserve an evidence table with hypothesis, supporting records, counterexamples and next test.

Counts alone cannot isolate the cause. Two duplicate target records and two missing target records can leave total row counts unchanged. Compare stable business keys and relevant state, then inspect the discrepancies. Provider webhook behavior must be read from its actual contract; for example, Stripe documents duplicate delivery and lack of guaranteed event ordering.

3. Build a reconciliation loop alongside the event path

Use two complementary paths. The normal path is verified event → durable inbox → canonical order-state processor → target adapter. A periodic reconciliation path reads authoritative records, compares the expected projection with the target and creates repair proposals. Both paths use the same mapping and state-transition rules so that a repair does not introduce a competing interpretation.

Store tenant ID, source system and stable object ID as the mapping key. Track source version where available, canonical state, observed target version, last successful synchronization and discrepancy category. Store event IDs in the inbox for transport deduplication, and use a separate stable business-operation identity for actions such as one fulfillment request per order and fulfillment revision.

A full scan needs a consistency strategy. Prefer a source snapshot or documented cursor with a high-water mark. If only mutable pagination and updated timestamps exist, use an overlap window, deduplicate records and revisit changes; do not claim the scan is a perfect point-in-time snapshot. A missing record in a partial scan is not proof of deletion. Handle deletion only using an authoritative deletion signal or a separately validated complete comparison.

4. Make each repair explainable and resumable

Classify discrepancies as missing projection, stale projection, conflicting ownership, duplicate action, or unknown outcome. A proposal includes the expected source state and version, observed target state, intended operation, reason and policy version. Dry-run reports let the customer review examples and counts before enabling repair for that discrepancy class.

Before writing, refresh the source state and use a target-side conditional update where supported. If the source changed or an operator edited a customer-owned target field, recompute or quarantine the proposal. A conditional write prevents a repair planned ten minutes ago from overwriting a legitimate recent change. A re-read alone leaves a race between the read and write. Without target-side preconditions, avoid overwriting customer-owned fields, restrict automatic repair to an agreed ownership boundary and surface remaining conflicts. A local lock alone cannot protect edits made directly in the remote system.

For remote actions, retain a durable operation ledger and use a stable idempotency key when the API supports it. Provider key retention and parameter matching rules matter; a local record must outlive the provider's retry window when business duplication remains harmful. After a timeout, query by the business operation or external reference before retrying. An empty eventually consistent lookup is not proof of failure: wait for the documented visibility boundary or keep the outcome unknown. If the provider offers neither idempotency nor an authoritative lookup, classify the outcome as unknown and escalate instead of promising exactly-once execution.

Correcting a CRM projection can be reversible; creating a second shipment is not equivalent. Duplicate executed actions need a business-approved compensation workflow, not database deletion that erases their history. Record every attempted repair, response and final verified outcome.

For example, order O-42 already has shipment S-7, but the worker crashed before saving S-7 locally. Reconciliation finds the shipment using O-42's stable operation reference, links S-7 and updates the CRM projection without creating another shipment. If the lookup cannot establish whether S-7 exists, the repair stays unresolved. This is a successful detection of uncertainty, not permission to generate a fresh operation key.

5. Estimate recovery time and protect live traffic

Assume one million source orders, pages of 100 and an effective scan allowance of 20 requests per second after reserving capacity for normal work. Listing alone requires 10,000 requests, or at least 500 seconds: 8 minutes 20 seconds. A per-order target lookup would add one million requests; at the same rate that is 50,000 seconds, about 13.9 hours. A bulk target export or indexed local projection changes the recovery plan substantially.

Suppose the comparison finds 12,000 repairable discrepancies and the target permits 10 repair writes per second after the live-traffic reserve. Ideal repair time is 1,200 seconds, or 20 minutes. If 10% of records each require exactly one additional write attempt, 13,200 attempts take at least 1,320 seconds, or 22 minutes. Reads, retries with backoff, validation and customer review add time; this is a throughput lower bound, not a promised completion time.

Use per-tenant budgets, bounded concurrency and checkpoints. Pause repairs when live error rates or latency worsen. If new discrepancies arrive faster than they are repaired, the backlog grows despite a busy worker; fix the generating defect and measure net drain rate. Prioritize business impact and discrepancy age instead of always processing the newest records.

6. Prove recovery and hand over ownership

Start with read-only comparison, then a small reviewed tenant cohort and reversible projection repairs. Test duplicate events, out-of-order events, a crash after remote success, expired idempotency records, concurrent customer edits and unavailable source APIs. Acceptance requires both convergence of the derived state and absence of new duplicate business actions. An empty queue is insufficient if failed items silently moved to an unowned dead-letter queue.

Track discrepancy count by class, oldest unresolved age, verified repair rate, unknown outcomes and customer-impacting duplicates. Report a denominator and scan coverage: “300 stale projections among 100,000 checked orders” is more useful than “300 errors.” Separate confirmed recovery from records awaiting authoritative evidence.

Give the customer a concise incident explanation, affected scope, repair evidence, remaining exceptions and named owners. Provide an operator runbook for pausing, resuming and escalating reconciliation. The two-day deliverable can be a diagnosed defect, tested patch and bounded recovery plan; do not disguise a continuing unverified migration as complete because the meeting is tomorrow.

7. Follow-ups and self-review

Foundation: explain why matching row counts does not prove consistency. Senior: recover a remote success followed by a local crash without duplicating fulfillment. Staff: reconcile a source without snapshots while customers continue editing target-owned fields.

Score 0–2 each for ownership contracts, evidence-based diagnosis, consistency-aware comparison, safe repair identity and operational handoff. Full marks require explicit handling of unknown outcomes. Continue with deployment debugging and webhook delivery.

Sources and next steps

The customer scenario, reconciliation architecture and calculations are original. Stripe is a concrete reference for integration contracts, not a claim that every billing or CRM API shares those guarantees.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.