The interview problem

Practice prompt

Two customer operators edit the same record and one person's changes disappear. Propose a usable conflict workflow.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume records have version tokens and the backend can enforce conditional updates atomically. Return the version with each read and require it on write. When a stale edit conflicts, fetch the latest record and show changed fields alongside the user's unsaved values. Merge only fields with agreed independent semantics; business-rule conflicts require a user decision. Preserve an audit trail of accepted revisions.

2. Trace the design or derivation

Read version
  → retain user draft
  → conditional save
  → compare conflict
  → resolve and retry

For a customer demo, stage two sessions side by side and show the stale edit being preserved after rejection. Confirm that the conflict UI does not leak a newly restricted field from the latest version. The success criterion is no silent overwrite plus a practical recovery path, not merely returning an HTTP error.

3. Calculate the example

Both operators read version 4. One changes the delivery address and creates version 5. The second submits a full version-4 record with a new note. Without a precondition it can restore the old address; a version check rejects the stale replacement.

4. Failure cases and trade-offs

Automatically merging different fields can still violate cross-field rules. Last-write-wins is easy but hides data loss. Strict rejection protects consistency yet burdens users, so preserve their draft and explain the conflicting fields rather than asking them to start over.

5. Validation, follow-ups and self-review

Test simultaneous edits, retries after timeout and cross-field invariants. Follow-up: when would a patch be safe to rebase automatically? Self-review: connect server-side concurrency control to a recoverable user experience.

Sources and related practice

Technical reference: httpwg.org — HTTP validators, ranges, preconditions and representation semantics; customer workflows are original examples.

Source publication/update: June 2022. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Prevent lost edits with conditional HTTP updates; Diagnose abandonment in a multi-step AI workflow.

Continue your preparation

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