The interview problem

Practice prompt

A customer cancels an import after some records have already triggered external actions. Design the user-visible semantics.

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

Distinguish queued, running, committed and compensating items. Stop admitting new work after the cancellation fence, ask workers to stop cooperatively, and reconcile effects already in flight. Define which completed effects are reversible and who approves compensation.

2. Trace the design or derivation

Cancel request
  → admission fence
  → worker acknowledgment
  → effect reconciliation
  → final ledger

Return a cancellation-requested state before claiming completion. A user may need immediate reassurance that no new items will start even while in-flight items settle. Include counts by final status and a named owner for unresolved effects.

3. Calculate the example

Of 100 items, 60 committed, 10 running and 30 queued. Canceling cannot honestly report zero effects; the 10 running items remain uncertain until workers or reconciliation resolve them.

4. Failure cases and trade-offs

Killing workers does not undo remote effects. Compensation can fail or have different business meaning from reversal. A canceled parent job must not hide unresolved child outcomes.

5. Validation, follow-ups and self-review

Acceptance: cancel at each lifecycle boundary and compare the final item ledger with external state. Follow-up: can a canceled job resume? Self-review: show the fence and residual obligations.

Sources and related practice

Technical reference: learn.microsoft.com — Compensation versus rollback after distributed effects.

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 Resume long-running business workflows; Reconcile conflicting records across customer systems.

Continue your preparation

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