The interview problem

Practice prompt

A user revokes permission while data is queued for an optional analytics job. Design enforcement at the point of use.

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 product policy defines which processing requires consent and the engineer implements that policy. Store subject, purpose, consent version and effective state in an authoritative service. Jobs carry purpose and subject references, then recheck current eligibility before reading or publishing optional results. Record the policy version used. Revocation propagation, derived-result removal and already-completed processing are distinct workflows with declared bounds.

2. Trace the design or derivation

Identify purpose
  → check current policy
  → process bounded work
  → recheck publication
  → record evidence

For a long-running job, define checkpoints or cancellation signals so an initial check does not authorize indefinite work. A final publication check prevents some exposure but cannot undo computation already performed. State these limits clearly to policy owners and design the processing granularity around the required revocation response.

3. Calculate the example

A job was queued under consent version 8, but version 9 revokes the purpose before execution. Checking only the enqueue-time snapshot would allow processing after revocation. A point-of-use check rejects or removes that subject's contribution according to the approved policy.

4. Failure cases and trade-offs

A stale consent cache creates a revocation lag; define and measure its bound. One boolean cannot represent multiple purposes. Strong checks add latency and outage dependencies, so failure behavior must be explicit rather than silently defaulting to allowed processing.

5. Validation, follow-ups and self-review

Revoke during queueing, execution and publication; inspect downstream copies. Follow-up: what can be removed from aggregate outputs? Self-review: separate policy ownership, point-of-use authorization and deletion semantics.

Sources and related practice

Technical reference: cheatsheetseries.owasp.org — Point-of-use authorization checks; consent policy must be supplied by its owner.

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 Revoke access across cached document sessions; Verify deletion across an AI customer deployment.

Continue your preparation

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