The interview problem

Practice prompt

A customer deletes an item in one system but it reappears after the next sync. Define deletion semantics and repair the connector.

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 one authoritative source and a destination with archive and delete operations. Agree whether deletion means hidden, recoverable, permanently removed or excluded from future sync. Persist tombstones with source version and retention rules so older updates cannot resurrect records. Backfills must consult deletion state, not only current source rows. Provide a dry-run list of affected IDs and test restoration as a separate authorized operation.

2. Trace the design or derivation

Identify authority
  → record tombstone
  → suppress stale writes
  → reconcile backfill
  → handle explicit restore

Document how each destination behaves after deletion: UI visibility, search indexing, exports and integration callbacks can differ. A restore should carry a newer source version or explicit operation identity. Recreating the same display name should not automatically reuse the deleted object's identity unless the customer contract requires it.

3. Calculate the example

An update at source version 10 arrives after a delete at version 11. Arrival-order processing resurrects the item; version-aware application rejects the stale update while retaining the tombstone.

4. Failure cases and trade-offs

Some sources omit deleted records without emitting tombstones. Treating absence from one partial export as deletion can remove valid data. Tombstone retention costs storage but protects against late replay. Permanent erasure also needs backup and derived-store policies beyond sync visibility.

5. Validation, follow-ups and self-review

Test late updates, partial exports, restores and backfills. Follow-up: how long must tombstones live relative to replay windows? Self-review: define authority, version ordering and the difference between archive and erasure.

Sources and related practice

Technical reference: debezium.io — Change events and tombstones; version-gap recovery policy is original.

Source publication/update: Not established. 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 Verify deletion across an AI customer deployment; Handle missing versions in customer change events.

Continue your preparation

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