Skip to content
Tech Interview Prep
Technical interview guide

Requirements Gathering & User Stories

Turning a vague need into a written, testable requirement: user stories, acceptance criteria, and edge cases.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: GOV.UK Service Manual, Scrum Guide 2020, ISO/IEC 25010:2023, WCAG 2.2, RFC 2119, OpenAPI, and NIST guidance current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-3

Review the story 'As a user, I want AI so that work is easier.'

Answer

What I'd say first

This story can't be estimated or tested as written. "A user" doesn't name who does the work today; "AI" names a solution before the problem is stated; "work is easier" has no baseline, so no sprint can fail it. I'd send it back with a rewrite rather than reject it.

Assumption I'd state out loud: there's a team with a measurable current process. If there isn't, the first ticket is instrumenting the flow, not building anything.

The rewrite

Original: "As a user, I want AI so that work is easier."

Rewrite: "As a support agent clearing the refund queue, I want the 12 refund fields pre-filled from the customer's email thread, so I can hit the 4pm SLA without re-keying data I've already read."

Illustrative targets, not measured: median handle time on refund tickets 6m20s → 4m30s; wrong-order-ID rate 3.1% → under 1%. The point is that each is a number someone can pull from the ticketing system before and after.

Acceptance criteria that actually decide the build:

  • On a labelled sample of 200 historical threads, the pre-filled order ID matches the thread in ≥95%.
  • Below a confidence threshold, fields are left blank: never guessed.
  • Every field is editable before submit, and submit requires an agent action.
  • No customer PII leaves the existing tenant.

How this fails in a sprint

  • Automation bias: agents accept wrong pre-fills. Detect by auditing 50 accepted tickets a week and comparing field error rate on accepted versus edited tickets. If accepted tickets are worse, the UI is signalling confidence it doesn't have.
  • Silent drift: the upstream email template changes and extraction quietly degrades. Detect by watching the blank-field rate: a jump means the parser stopped matching, not that the model got worse.
  • Scope creep to auto-send: someone proposes dropping the review step to hit the time target. Detect with a test asserting submit requires an agent action; if that test can be deleted without breaking anything, the guardrail was never real.
  • The story itself fails when it ships as "build AI" plus "integrate AI" with no baseline, so nobody can say whether it worked. If the story has no current handle-time number, it isn't ready.

Alternatives, and when AI is right

  • Regex or template extraction: if 90% of refund emails come from the same web form, this is deterministic, cheap and debuggable. It wins.
  • A saved-reply macro: the agent fills the fields, no model. Zero inference cost, no drift.
  • Remove the fields: if the form already collects them, the real fix is a UI change.
  • Do nothing: if handle time is dominated by waiting on the customer, pre-filling saves nothing.

Deciding criterion: input variance against error cost. Variable unstructured input, a cheap human check, and recoverable errors: pre-fill is a good fit. Fixed input, or an unrecoverable error like a wrong refund amount with no review step, and rules or a form change beat a model.

What would change my mind

If the baseline shows re-keying is under 10% of handle time, I'd drop the story. If the error cost is a financial mispayment, I'd require the review step in the acceptance criteria before estimating.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-19

Review a specification full of MUST and SHOULD statements.

Answer

Core answer (first 90 seconds)

Before touching a clause I'd establish two things: is this document actually normative, and who is bound by it. If it's an RFC-style spec or a contract, MUST and SHOULD carry the RFC 2119 meaning and the review is a conformance review. If it's an internal design doc, the key words are decoration and the right fix is to delete them and write plain prose. I'll assume the first case, with implementers as the audience and a test suite as the enforcement mechanism.

Then three passes, in this order: normative-language hygiene, verifiability, consistency.

Pass 1: normative language

RFC 2119 defines the key words; RFC 8174 (May 2017) clarified that they are normative only when they appear in all capitals. So the first mechanical check is a case-sensitive grep: lowercase "must" and "should" are prose, not requirements. Then, for each all-caps MUST, ask the only question that matters: what breaks if a conforming implementation does the opposite? If the answer is "nothing interoperable, unsafe, or contractually breached", it's emphasis and belongs as a SHOULD or plain text. For each SHOULD, RFC 2119 puts the burden on the implementer to weigh the full implications of deviating, so the spec owes them the exception. If no sentence names the condition under which deviation is acceptable, either promote it to MUST or write the exception down.

Pass 2: verifiability

Every normative statement needs a pass/fail test with a concrete input and an observable output. "The server MUST be efficient" is a goal, not a requirement. ISO/IEC/IEEE 29148 lists verifiable, unambiguous, singular and complete as properties of a good requirement; that's the per-clause checklist.

Pass 3: consistency

Contradictions hide where two clauses touch the same field or state. Build a clause × noun matrix and read the rows.

Worked example (hypothetical):

ClauseTextProblem
§3.2"The server MUST reject any request without a Content-Length header."Absolute, but chunked transfer-encoding carries no Content-Length
§5.1"The server MUST accept chunked requests."Directly contradicts §3.2

A chunked request satisfies §5.1 and violates §3.2, so no implementation can conform. Detection is cheap: list every clause that mentions a header, field or state, then check the pairs.

Rewrite of a weak clause:

Before: "The server SHOULD validate the token signature and must reject expired tokens. Implementations may cache tokens."

After: "The server MUST validate the token signature before honoring any claim. The server MUST reject a token whose exp is in the past. The server MAY cache validated tokens for up to 300 seconds; a cached entry MUST be revalidated after that."

Three changes: SHOULD → MUST because signature validation is a security requirement with no legitimate exception; lowercase "must" → MUST so it is actually normative; "may cache" → MAY with a bound, because caching is a genuine option but the spec has to say what "validated" means over time.

What would change the approach

If the document turns out to be guidance rather than a contract, I'd stop reviewing key words and rewrite it as prose: the MUST/SHOULD apparatus is what makes a non-normative doc unreadable. If it is a contract, every MUST needs a traceability link to the clause or regulation it implements, and I'd check that before style.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-13

A stakeholder keeps telling you to "just add a bulk-import button to the admin screen". Walk me through how you get from that to a user story they confirm.

Answer

Treat the button as evidence, not as the requirement. In the first conversation I'd say: "I'll write that down. Before I do, walk me through the last time you needed it." Past behaviour beats hypotheticals; the GOV.UK user research guidance is explicit that you learn needs from what people actually did, not from what they say they'd like.

Then I run a short reframing loop, one question per answer:

They sayI askWhat I'm learning
"Add a bulk-import button""Show me the file you'd import."The real artefact and its shape
"It's a spreadsheet from finance""How many rows, how often?"Whether manual entry is the problem at all
"About 400 a month, every Monday""What happens today?"The current workaround and its cost
"Two people retype them, half a day, we get typos""Who feels that?"The actual user, versus the requester

That gives me a need I can state without naming a screen: ops staff re-key roughly 400 finance records every Monday, costing two people half a day and producing transcription errors that surface as failed reconciliations.

Captured as a story, in the GOV.UK format:

As an operations analyst, I want finance records to reach the system without being re-typed, so that Monday's reconciliation starts from accurate data and doesn't cost half a day.

Acceptance criteria, all observable:

  • Given a finance export of up to 500 rows, when it is submitted, then every valid row is present within 5 minutes and each rejected row is reported with its row number and reason.
  • Given a row that fails validation, when the import completes, then no partial record is written for that row.
  • Given the same file submitted twice, then no duplicate records are created.
  • The import is completable keyboard-only and with a screen reader (WCAG 2.2 AA): it is a form.

Note what the story does not contain: the word "button". Scheduled pull from finance, an API, and a file upload all remain live options, and the cheapest one may be fixing the export upstream.

Confirming it is a separate step, not a formality. I read the story and criteria back to the stakeholder, ask them to correct the benefit clause specifically (that is where proxies are usually wrong), and check with the person who actually does the re-keying. If the requester is a manager, they are a proxy: they can describe the work but not the experience of doing it. I also ask what made this urgent now: an audit finding or a deadline is a real constraint and belongs in the story's context, not in a side conversation.

Failure modes I watch for. The story names a UI element in its "I want" clause, which locks design and hides the need. The manager is the only source. The need gets over-generalised to "users want bulk operations everywhere" with no frequency or volume evidence. The deadline constraint is dropped, so the team optimises the wrong thing. Detection is mechanical: if the acceptance criteria cannot be tested without naming a specific screen, the story is still a solution.

When not to build it: at 5 rows a month the answer is a documented manual process. When the source system can push, the requirement is an integration, not an admin feature.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-1

Turn 'users want faster search' into actionable requirements.

Answer

What I'd say in the first two minutes

"Faster search" is three problems wearing one sentence: results appear slowly, results are wrong so users re-query, or the task takes long even when every individual query is fast. They have different fixes and different owners, so I won't write a requirement until I know which one is being complained about.

Assumptions I'd state before answering: this is the product search box on web and mobile, roughly 40M documents, peak 200 QPS, and the requester has heard complaints rather than measured them. If any of those is wrong the numbers move, not the method.

Then I get a baseline before touching anything. Three measurements, all instrumented first:

  • Server-side p50/p95/p99 per query class: typo, filtered, empty-result.
  • Client-side time-to-first-result from RUM. This is usually 1.5–2× server time once network and render are counted, and it's the number users actually feel.
  • Task-level: reformulation rate and abandonment per session. A fast query that users re-run three times is not fast.

The requirement then carries a number, a load, and a guardrail: "p95 client-side time-to-first-result for the top 1,000 queries falls from 1.4 s to 600 ms at 200 QPS peak, with nDCG@10 no worse than −1% relative." (Figures hypothetical; the shape is the point.)

Why the guardrail matters

Latency is trivially buyable by returning fewer, worse results: probe fewer shards, shrink the candidate set, skip the reranker. So every latency target needs a relevance floor and a freshness bound attached, or you hit the number and lose the users you were trying to keep.

RequirementMetricBaselineTargetGuardrail
Faster perceived searchp95 client TTFResult1.4 s600 ms @ 200 QPSnDCG@10 ≥ −1%
Fresh resultsindex lag p9590 s30 s—
Cost$/1k queries$0.42≤ $0.42no new replica tier

The fanout arithmetic that decides the target

If a query fans out to 5 shards and each shard's p99 is 40 ms, the gather waits for the slowest. P(all 5 under 40 ms) = 0.99⁵ ≈ 0.951, so the p99 of the slowest-of-5 is the single shard's p99.8: call it 60 ms. Tail latency compounds with fanout. That's why the target is set on client p95, not server p50, and why cutting shard count often buys more than tuning the query.

Failure modes, with detection

  • Empty results: detect via zero-hit rate per query class; respond with spelling correction and relaxed filters, and log the query. It's a relevance bug, not a latency one.
  • Typos: detect via edit-distance-1 queries returning zero hits; fall back to fuzzy match with a visible "showing results for X".
  • Timeout: detect via deadline-exceeded rate; return partial results from the shards that answered within budget rather than a spinner.
  • Degraded dependency: detect via circuit-breaker state on the ranking service; serve the cheaper lexical ranking and mark the response degraded.

Each has an operational cost: partial results need a UI affordance, and degraded mode needs its own metric so you know how often it fires.

Trade-offs and rollout

Latency trades against recall (candidate set size), freshness (refresh interval), and cost (cache and replicas). The deciding criterion is which one the user notices: for navigational queries latency wins, for exploratory ones recall does. So I'd split the requirement by query class rather than set one global number.

Ship behind a flag, re-measure the three baselines, and only then call it done.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Evaluate whether a backlog item is ready for delivery.

Answer

Core answer. Readiness is a bet, not a state. The question I actually answer is: can this team commit to finishing this item in the next iteration without a mid-flight surprise that changes scope, cost, or the outcome? I check three things before anything else: the smallest shippable slice, the test that proves it shipped, and who owns each open decision. If I can't name all three, the item isn't ready no matter how complete the ticket looks.

Then the gates. Keep them few. A Definition of Ready with fifteen boxes becomes a parking lot, not a filter.

GatePass looks likeHow the fail surfaces
OutcomeOne sentence: who benefits, what changes, how we'd knowTicket opens with a solution ("add a Redis cache") and no problem statement
Acceptance3–7 examples in Given/When/Then, at least one negative caseQA writes tests after code lands; defects escape to prod
DependenciesNamed team, named person, confirmed date, or an agreed stub"Blocked" appears mid-sprint; cycle time spikes
SizeFits one iteration: ≤ 3 dev-days, or ≤ 1/3 of sprint capacityItem carries over two sprints running
DecisionsEvery open question has an owner and a dateSame question resurfaces in three standups
RolloutFlag name, default state, kill switch, metric to watchFirst deploy is a big-bang release

Worked example. Item: "Enterprise SSO for tenant admins." Outcome: tenant admins log in via their own IdP; success = 80% of invited admins complete first login within 7 days. Acceptance: valid SAML assertion accepted, expired assertion rejected, unknown IdP returns a clear error. Dependency: IdP metadata endpoint from the platform team. Confirmed with a named engineer, stub available. Size: 4 dev-days across two engineers, over the 3-day gate, so split. Ship SAML for one IdP first, add OIDC next. Decisions: who owns the tenant-to-IdP mapping. Platform team, due Thursday. Rollout: flag sso_enterprise, default off, watch login failure rate. Verdict: ready after the split.

Failure modes and detection.

  • Untestable acceptance criteria ("fast", "intuitive"): QA can't write a failing test, so defects escape; track escaped-defect rate per item.
  • Unconfirmed dependency: shows up as a mid-sprint block; track blocked time and carryover rate.
  • Item too big: carries over sprint to sprint; carryover above roughly 15% means the size gate is being ignored.
  • Ambiguous outcome: rework; reopened tickets and scope changes after "done".

Run the acceptance examples through a short three-amigos session (PM, dev, QA) before the item leaves refinement; that is where the untestable criteria and the missing negative case get caught, cheaply.

Trade-off. Gate on the cost of a mid-flight surprise, not on ceremony. High-blast-radius or cross-team work (payments, auth, data migrations, anything with a fixed date) earns a hard gate. Small reversible changes behind a flag, spikes, and discovery work don't: a one-line revert costs less than the meeting. The failure on the other side is a rigid DoR that suppresses discovery and pushes ownership onto the ticket author; the tell is a "Ready" column that never drains.

What would change my answer: if the team ships continuously behind flags with fast rollback, I'd drop the size gate and keep outcome, acceptance, and dependency confirmation.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-4

Write acceptance criteria for submitting a payment.

Answer

What I'd say first

Acceptance criteria here are Given/When/Then statements about what's observable from outside the payment service: how many charges exist, what state the order is in, and what the user sees. I'd assume a card payment through a provider like Stripe, an order row already sitting in pending_payment, and a client that can retry. Three things decide almost every criterion: at most one charge per idempotency key, a terminal order state within a bounded time, and a receipt the user can act on.

#GivenWhenThen
1order in pending_payment, key Kuser submitsexactly one charge created; order → paid within 5 s p95
2same key Kclient retries after a timeoutprovider returns the original charge; no second charge; order unchanged
3issuer returns card_declinedsubmitorder stays pending_payment; no charge; user sees "card declined, try another card"; next attempt uses a new key
4provider silent past our 10 s client timeoutsubmitorder stays pending_payment with key K; reconciliation polls the provider by K every 30 s for up to 15 min
5two concurrent submits, same key Kboth in flightprovider dedupes; one charge; both responses identical
6cart price changed since the order was createdsubmitreject with 409, no charge, user sees the new total
73DS challenge requiredsubmitorder stays pending_payment until the challenge resolves; no charge before authentication
8provider returns 5xxsubmitno charge; order pending_payment; retry allowed with the same key

Why a timeout isn't a decline. A decline is a definitive answer from the issuer: the provider returns a decline code and no charge exists, so retrying with a different payment method is safe. A timeout means the request left your process and you never saw the response: the charge may or may not exist. Retrying with a fresh key would risk a second charge, so you retry with the same key: the provider stores keys for 24 hours and returns the original response instead of charging again. If you can't retry, you query the provider for charges carrying that key.

The trade-off that decides the design. You can't wrap a remote call and a database write in one transaction, so you pick a side. Persist-then-call: insert the order with pending_payment and key K, then call. If you crash after the call, you still have a pending row you can reconcile by querying the provider with K: you never lose a charge. Call-then-persist: fewer rows, but a crash between the two loses the charge entirely and the user is billed with no order. Choose persist-then-call whenever money moves; call-then-persist only for reversible operations where the provider is queryable and you accept the reconciliation window.

Failure modes and how you'd see them. Duplicate charge: count charges per idempotency key, alert if any key has more than one. It should be structurally impossible. Stuck pending: alert on pending_payment rows older than 2 minutes; the reconcile job runs every 30 s for up to 15 min, then flags needs_review. Webhook arriving after the client gave up: the webhook is the source of truth and moves the order to paid even though the client saw a timeout.

Tests. A contract test against the provider's sandbox asserts that a repeated key returns the same charge id. An end-to-end test kills the process between the provider call and the persist, then asserts reconciliation recovers the order to paid with exactly one charge.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Write requirements for an empty and error state.

Answer

Core answer (first 90 seconds)

Assume a REST/JSON backend and a client rendering a list or a form. The requirement is not "show an error": it is a decision table keyed on what the client can actually distinguish. Four signals decide the treatment: HTTP status, read vs write, whether the user has unsaved input, and whether the failure is retryable. State those assumptions, then commit to the table:

StateSignalMessagePrimary action
Valid empty200, []"No invoices yet.""Create invoice"
Filtered empty200, [], filters active"No invoices match 'paid, March'.""Clear filters"
Not found404"That invoice was deleted.""Back to list"
Forbidden403"You don't have access to this invoice.""Request access"
Dependency down503 + Retry-After: 30"Invoices are temporarily unavailable."auto-retry, then manual
Unexpected500 / network drop"Something went wrong. Reference: abc-123.""Retry" + support link

The mechanism: each row exists because the user's next action differs. A 403 retried forever is a support ticket; a 503 auto-retried with backoff is invisible. Collapsing them into one "Error" forces the user to guess, and guessing is what generates the ticket.

Write the messages, don't describe them. "No results for 'acme' in March. Clear filters.", not "an informative empty-state message." The reference ID in the 500 row is the one string that lets support find the request without exposing internals.

Retry. Only retry idempotent reads and writes carrying an idempotency key. Exponential backoff with jitter, capped at 3 attempts:

JavaScript
// checked against Node 20
const delay = Math.min(2 ** attempt * 200, 5000) * (0.5 + Math.random());

Retrying a non-idempotent POST without a key double-charges. Detect it as duplicate rows, or as a request-rate spike the moment a dependency recovers (thundering herd).

Failure modes and how each is detected

  • Generic 500 returned for a 403: users retry forever. Detect via retry rate on 4xx responses.
  • Leaking internals: stack traces, SQL, or "email not found" vs "wrong password" (account enumeration). Detect by scanning response bodies in CI.
  • Losing form state on a failed submit: the user re-types a 40-field form. Detect via form-abandonment rate after an error.
  • Screen-reader spam: aria-live="assertive" firing on every keystroke. Use role="alert" for errors and aria-live="polite" for empty states.
  • Retry storm: client retries 500 with no backoff, multiplying load on an already-degraded dependency.

Trade-offs, with deciding criteria

  • Specific vs generic: specific helps the user, generic hides internals. Rule: be specific about the user's action, generic about the system's internals.
  • Auto-retry vs manual: auto for 503 and network drops, honoring Retry-After; manual for 4xx, which will not fix themselves.
  • Inline vs toast vs full-page: inline for field errors, toast for transient failures, full-page only when the whole view is unusable.

Telemetry. Log status, route, request ID and latency; never the payload or PII. Alert on 5xx rate above 1% over 5 minutes, not on individual errors.

Acceptance tests. Keyboard-only recovery, screen-reader announcement of each state, entered state preserved after a failed submit, and every row of the table reachable in a test.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-5

Define a non-functional requirement for API latency.

Answer

Clarify, then assume. "API latency" isn't one number: it's per operation, measured at a named boundary. I'd assume a synchronous, user-facing read: GET /v1/orders/{id}, 4 KB JSON response, a 50M-row orders table behind Postgres with a Redis read-through cache, clock started at the load balancer so it includes TLS and network, not inside the handler.

The SLO. Steady state 800 rps, burst 3,000 rps for 60 s, 200 concurrent in-flight requests:

MetricTargetWindow
p50≤ 20 ms28-day rolling
p99≤ 200 ms28-day rolling
p99.9≤ 500 ms28-day rolling
error rate (5xx + timeouts)< 0.1%28-day rolling
client timeout1 s, then one retry with jitter—

0.1% of 28 days is 40 minutes of error budget. When it's spent, latency work stops and reliability work starts: that's the whole reason to write the budget down.

Why p99 and not the mean. The mean hides the tail. A user who hits a 2 s request doesn't care that the average was 30 ms. For a synchronous read, tail latency is the user experience, so I budget the tail. Flip it for a nightly batch export: mean throughput matters, p99 doesn't, and I'd write a completion-time SLO instead. The deciding criterion is whether a slow response is a failed response. For interactive reads, it is.

Latency budget. 200 ms p99 decomposes as 5 ms TLS/edge, 10 ms auth, 15 ms cache lookup, 150 ms Postgres, 20 ms serialization. If the DB leg owns 150 ms, no amount of cache tuning saves you: you know where to spend.

Failure modes and how I'd see them.

  • Connection pool exhaustion: HikariCP's default max pool is 10, so 200 concurrent requests leave 190 queued. Detection: pool wait-time metric rising while CPU stays flat.
  • Cache stampede: a hot key expires and 3,000 rps land on Postgres at once. Detection: DB QPS spike correlated with cache miss rate.
  • Retry storm: clients retrying without jitter multiply load 2–3x mid-incident. Detection: request rate exceeding arrival rate.
  • GC pauses: one 300 ms stop-the-world pause blows p99.9 by itself. Detection: GC pause histogram.

Guardrails. Latency must not improve by dropping work: no serving past TTL, no skipping authz, no unbounded cache. Cost guardrail: don't buy p99 with 10x the instances. Target 30% CPU headroom at peak.

Measurement. Load-test with production-shaped payloads before launch, then trust production telemetry. Exclude health checks and synthetic probes from the SLO. Reassess when payload size or arrival rate changes by more than 2x.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-2

Design discovery for a new account-recovery flow.

Answer

Assumptions I'd state up front: consumer product, ~5M monthly active accounts, login is password plus optional TOTP, accounts hold payment methods and PII, and support already handles roughly 2,000 recovery tickets a week at about $12 fully loaded each. If any of those are wrong the plan changes, so I'd confirm them in the first meeting.

The core answer: recovery is an authentication event, not a support process. NIST SP 800-63B (rev 3, §5.1.1.2) requires the recovery process to meet the same requirements as normal authentication, and that is the whole design constraint: if the recovery path is weaker than login, it becomes the cheapest way in. So discovery has one job: find the evidence ladder that restores an account at the assurance level that account already had, without turning recovery into the attack path.

That gives three phases.

1. Fix the assurance target per account tier. AAL1 is single-factor; AAL2 needs two distinct factor categories; AAL3 adds a hardware-based authenticator and verifier impersonation resistance. A payments account sitting at AAL2 should not be recoverable by a single emailed link. Write the target down before you talk to users, or every interview becomes a negotiation about convenience.

2. Instrument the current funnel before redesigning it. You cannot discover what you cannot count. Log every recovery attempt with entry point, evidence offered, outcome, time-to-recovery, and whether support was involved. Then the arithmetic is trivial, and it is what decides the trade-off:

metriccurrent (illustrative)
recovery attempts / week9,000
self-service success41%
escalate to support5,300 tickets
support cost5,300 × $12 ≈ $64k/week
abandonment after 2 failed attempts22%

That 22% is the access cost. The fraud cost is the other side: recovery-driven account takeovers. Pull both from the same funnel, not from two teams' dashboards.

3. Test the evidence ladder against both. Evidence is not binary; each item buys assurance at a price.

evidenceprovesassurance contributionattacker cost
email linkmailbox controlAAL1-ishlow: the mailbox is often the target
TOTP / recovery codepossession of a factorcounts toward AAL2medium
device-bound passkeypossession plus devicestrong, AAL2/AAL3high
ID document + selfieclaimed identityweak alone, high frictionmedium, high support cost
support agent overridenothing verifiablenonelow: social engineering

The last row is where most real breaches land: the agent is the weakest authenticator in the building. Discovery has to cover the support script, not just the UI.

Trade-off and how I'd decide it: fraud loss per 10,000 recoveries versus abandonment rate, split by account tier. For a low-value account, accept a weaker ladder and eat the fraud; for a payments account, require two factors and accept that some users wait. The deciding criterion is expected loss, not principle, if a tier's fraud loss per recovery exceeds the support cost of a manual review, route that tier to review.

Failure modes to design against, with detection:

  • Recovery enumeration: an attacker probes which emails exist. Detect with response-time and response-shape parity, and alert on recovery-start spikes per IP.
  • SIM swap: SMS is the recovery factor. Detect with a carrier-change signal and impossible-travel on the recovery attempt.
  • Support social engineering: the override row above. Detect with agent override rate per agent and outlier review.
  • Total-factor loss: the user has nothing left. This is the accessibility and travel case; without a documented fallback they churn. Detect via abandonment after N attempts and support contacts that never resolve.
  • Shared-device users: recovery on a device someone else controls. Detect when a recovery from a new device is immediately followed by a credential change.

Validation: staged release. 1% of traffic, hold fraud and abandonment against the funnel baseline, widen only when both move the right way. Record the unresolved trade-offs as explicit decisions with an owner, not as open questions.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

Split an epic for onboarding a new business customer.

Answer

First, what I'd clarify: onboarding into what? I'll assume a B2B payments platform taking on a business entity (KYB, UBO screening, agreement, account provisioning) because that's where the split actually bites. A SaaS signup has the same shape with less regulation.

The answer: split by the policy path the customer walks, not by the systems you touch. A slice is done when a named segment of customer reaches a named end state (account active, or rejected with reason) through the real policy checks.

Four slices for a first release:

SliceSegmentEnd stateWhat's new
S1US sole trader, single owneractiveeligibility, owner identity, agreement, provision, notify
S2US LLC, 1–3 UBOsactiveUBO graph, per-UBO screening
S3Money services businessactive or referredlicense verification, EDD, manual review queue
S4Any segmentactive/rejected, no humanrules engine replacing manual review

S1 is the thinnest safe path: it exercises authorization, audit and data integrity end to end, and it's the only slice you can demo to a compliance officer in week two. S2–S4 are additive on the same spine.

Why vertical: the acceptance criterion is a customer state, so every slice forces policy, persistence and notification to be wired together. A horizontal slice, "build the document upload service", has no customer state to demo, and that's how you detect it: at sprint review nobody can show a customer moving from applied to active.

Deciding criteria between the dimensions. Split by segment when the policy path forks: different documents, different screening lists, different approval authority. Split by rule complexity when the segment is the same but edge cases are a long tail: ship the common path, put the tail behind a decision table. Split by progressive capability when the outcome is identical and only the automation level changes: manual review, then rules, then a model. If two candidate slices share the same policy path and the same acceptance criteria, they are one slice; merging them is the fix.

Failure modes, with how you'd see them. Numbers below are illustrative for a mid-size book.

  • Policy drift across slices. S2 and S3 each implement their own sanctions threshold. Detection: a decision-log query grouping by slice and threshold. Two distinct values means you've drifted. Cost: a customer approved on one path and rejected on another; remediation is re-screening the affected cohort, roughly a week of analyst time for 5,000 customers.
  • Manual fallback that becomes permanent. S3 ships a review queue "temporarily". Detection: manual-review rate per 100 onboardings. If it sits flat at 40 after S4 ships, the automation isn't firing: check the rules-engine logs for fallthrough.
  • Missing unhappy path. Detection: count onboardings with no terminal state, stuck in pending past SLA. Above ~2% of the cohort, the rejection and timeout paths aren't built.

Release to a bounded cohort (5% of S1 traffic, one region) and watch four numbers: completion rate, time-to-active p50/p95, fraud rate on the cohort, and support contacts per 100 onboardings. Baseline support is about 3 per 100; if the cohort runs 12, the rejection messaging is the problem, not the policy.

The trade-off I'd say out loud: segment-first buys compliance coverage fastest but duplicates plumbing; capability-first gives one pipeline but delays the regulated segment. For a first release I take segment-first for S1 and S2, and hold S3 until the spine is proven.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Walk me through building a user story map for a multi-step customer journey, and use it to slice an MVP and later releases.

Answer

Core answer, first 90 seconds. The backbone of the map is the user's journey in narrative order, written as verbs the user performs, not the system's components. I'd derive it from research, per GOV.UK's guidance to start from user needs rather than a feature list, then stack the stories that serve each step underneath, thinnest at the top. The map is a slicing tool: releases are horizontal cuts across the whole backbone, so every release ends with a user having completed a real outcome. A vertical cut, "all of the account-creation column", is a milestone, not a release.

Take a service where someone connects a bank account and makes a first payment.

Journey stepStories, thinnest first
DiscoverLanding page states eligibility and what to bring; eligibility checker
Create accountEmail + password; magic link; SSO
Prove identityManual document upload with human review; automated document + liveness check; reuse an existing government identity
Connect payment methodAdd card; direct debit mandate; open banking
Make first paymentPay once; recurring; partial payment
Confirm and receiptOn-screen confirmation with reference; email receipt; downloadable statement
Recover when stuckStatic help page; contextual error messages; contact channel with an SLA

Release slices.

SliceContentsOutcome for the user
0, walking skeletonOne eligible user type, manual identity review, card only, single payment, on-screen confirmation, static helpA real user completes a real payment end to end
1, MVPAutomated document check, email receipt, contextual errors for the top three failure modesA defined segment self-serves with no staff intervention
2Direct debit, recurring payment, downloadable statement, contact channel with SLARepeat users stop needing support
3Open banking, partial payment, SSO, reuse of existing identityBroader segments, lower drop-off

What the map exposes. Gaps first: "Recover when stuck" is empty in the first draft, and an empty column is a missing requirement, not a deferred one. WCAG 2.2 error identification (3.3.1) and help (3.3.5) are acceptance criteria on slice 1, not a hardening phase. There is no column for cancelling or changing your mind, and no story for the user who fails identity verification, which is a whole sub-journey. Dependencies next: automated identity checking needs a vendor contract and a data-protection assessment (NIST Privacy Framework, identify and purpose limitation), so it cannot sit in slice 0; direct debit needs a mandate lifecycle and a bank file format with a long lead time, so it starts before slice 2 is scheduled. Release boundaries last: quality requirements attach to slices. WCAG 2.2 AA on identity and payment, ISO/IEC 25010 security and reliability characteristics, and you cut depth, not columns. Deferring the whole recovery column ships a service that works until it doesn't.

Failure modes. The map turns into a Gantt chart with dates and owners and stops being a conversation tool. The backbone is drawn from the architecture (auth service, payment service), so slices follow team boundaries and none delivers an outcome. The map is built once in a workshop and never revised when research invalidates a step. The "MVP" no segment can complete: typically account creation and payment ship without confirmation, so users don't trust the payment happened. Detection is the same in every case: walk a real user's scenario across the map; if a slice leaves the user mid-journey, the boundary is wrong.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-17

You have 40 candidate requirements for a release that fits about 15. Walk me through how you'd prioritize them with MoSCoW or Kano, and how you'd communicate the result.

Answer

First I'd pin down what's fixed. If the date is fixed, this is a scope problem and MoSCoW is the right tool. If the date can move, Kano is more useful, because it tells you what's worth building at all. Most releases have one fixed regulatory date and a movable feature set, so I'd use both: Kano to classify, MoSCoW to cut.

Assumptions I'd state out loud: two-week sprints, team capacity 30 points a sprint, release in four weeks, so 60 points of room against 40 candidate items totalling roughly 95 points. One item carries a regulatory deadline. WCAG 2.2 AA conformance is a constraint, not a candidate: it doesn't enter the ranking, it bounds every item that ships.

Kano classWhat it meansMoSCoWAction under date pressure
Must-beAbsence causes dissatisfaction; presence doesn't delightMust if dated or legal, else ShouldNever cut if legal or safety; otherwise first Should
PerformanceSatisfaction rises with how much you deliverShould / CouldCut by cost per unit of measured improvement
AttractiveDelight when present, no penalty when absentCouldFirst to cut
IndifferentUsers don't noticeWon'tDrop; don't build
ReverseSome users actively dislike itWon'tDrop, and check whether to remove the existing version

The arithmetic then does the arguing. Musts come to 22 points, Shoulds 30, Coulds 43. Against 60 points of room I take all 22 Musts, 24 of the 30 Shoulds, and 14 of the 43 Coulds. The 35 points left over are Won't, and each one needs a written reason rather than silence.

Stakeholder input is evidence, not a vote. "Customer X will churn" gets converted to a number: contract value, renewal date, what they'd accept instead. The Scrum Guide makes one person, the Product Owner, accountable for ordering the backlog; the group supplies evidence, the PO decides and records why. When two stakeholders disagree, I ask which outcome metric moves and by how much. If neither can say, both drop to Should.

Communication is the ordered backlog itself. Each item carries its MoSCoW class, Kano class, the evidence behind it, and the trigger that would pull it back in: "revisit if churn risk confirmed by 30 June". I'd publish a short not-now list next to the release scope, because the people whose items were cut need the reason and the re-entry condition, not just absence. Stories stay outcome-shaped per the GOV.UK guidance ("As a…, I need…, so that…" with acceptance criteria) so a cut item is still describable when it returns.

Failure modes I'd watch for:

  • MoSCoW inflation: everything is Must. Detect by counting, if Musts exceed capacity, the classification failed and you're back to negotiating the date.
  • Kano by committee: the questionnaire needs functional and dysfunctional pairs and enough respondents to be stable; five stakeholders in a room gives you opinion, not a class. Detect by segmenting, if the class flips between user groups, it isn't a class.
  • Dependency blindness: item A is worthless without B, so ranking them independently is wrong. Detect by walking the dependency graph before cutting.
  • Silent Won't: items vanish with no reason and reappear mid-sprint. Detect by whether any Won't item shipped; if it did, the prioritization wasn't real.

When not to use this: if the release is exploratory and you don't yet know what users value, Kano is premature. Run discovery first. And MoSCoW on a fixed-scope contract just relabels the argument.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-18

Define outcome metrics for a new self-service feature.

Answer

Clarify first. I'll assume "self-service" means the customer completes the task in the web/app flow with no agent (here, disputing a card charge) and that we already have a ticketing system, an event pipeline, and a pre-launch baseline from the assisted path. The real question is which numbers decide whether we keep the feature.

Core answer: one benefit metric, one adoption metric, four guardrails, each with a pre-registered threshold.

Benefit is not completion rate. Completion rate can hit 90% while nothing improves, because people who would have succeeded anyway now succeed in a new place. The benefit metric is assisted contact rate per 100 eligible tasks: baseline 14, target ≤ 9 within 90 days. Completion rate is the adoption metric that explains why contact rate moved.

metricdefinitionbaselinetarget / thresholdgates
Self-service completiondisputes resolved in-flow ÷ eligible disputes started, deduped per user per task per 24hn/a (new)≥ 65% at day 90rollout
Assisted contact rateinbound contacts tagged task=dispute ÷ eligible disputes, per 10014≤ 9rollout
Contact within 24h of an attemptattempts followed by an agent contact ≤ 24h ÷ attemptsn/a≤ 20%rollback if > 30%
Reversal ratedisputes reversed after resolution ÷ disputes resolved2.1%≤ 2.5%rollback if > 3%
Decision API p95server-side latency of the resolution calln/a≤ 800 msrollback if > 1.5 s
Cost per resolutioninfra + agent time ÷ resolutions$4.10≤ $2.50review

Figures are hypothetical, but the shape is the point: every metric has a denominator, a window, and a number that triggers an action.

Mechanism: why denominators drift. The denominator is the fragile part. Add a link on the app home and eligible starts jump 3x with low-intent users; completion rate falls 20 points with no product change. So freeze the denominator definition, version the event schema, and report both "all starts" and "starts from the canonical entry point". Cheap detector: starts ÷ unique users > 1.5 means you're counting refreshes, not users.

Displacement. Contact rate for the task drops while total contact rate stays flat: users moved to phone or chat. Detect it by segmenting contact rate by channel and by task, and by the "contact within 24h" metric above. If 30% of self-service attempts end in an agent contact, the flow isn't working; users are routing around it.

Failure modes with signals. Auto-approving disputes to lift completion shows up as reversal rate climbing week over week in the self-service cohort. CSAT survivorship, only completers get surveyed, shows up as a response rate under 5%; compare against assisted CSAT. Fraud abuse shows up as chargeback rate by cohort.

Trade-offs, and when this set is wrong. Completion rate alone rewards auto-approval; contact rate alone rewards hiding the support number. That's why they're paired with reversal rate and the 24h contact metric. If the task runs under ~200 eligible events a week, these rates are too noisy: use a longer window and qualitative research. If the task is regulated (account closure, credit dispute), completion rate is the wrong primary; compliance completion is.

Decision rule. Ship to 100% when completion ≥ 65%, contact rate ≤ 9, reversal ≤ 2.5%. Roll back on reversal > 3% or p95 > 1.5 s. Pre-register these before launch; a threshold set after you see the data isn't a threshold.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-11

Turn a prototype into implementation-ready requirements.

Answer

A prototype shows the happy path with seeded data. Requirements have to describe what the system does when reality intervenes, so I don't transcribe the prototype: I treat it as a hypothesis and derive the behavior around it.

Assumptions I'd state up front: the prototype is a design artifact (Figma or a clickable build), not a production codebase; there's a named product owner who can decide scope; and the team building it is separate from the team that made the prototype. If any of those is false, the method changes.

The core move is a state matrix per screen. The prototype shows one cell: populated, loaded, permitted. The spec has to cover the rest, and each cell needs a trigger, a rendering, and a recovery action:

StateTriggerRendersRecovery
Emptyquery returns 0 rowsillustration + primary CTA, no table headerCTA creates first item
Loadingrequest in flight > 300 msskeleton rows, no overlay spinnerauto-resolves
Error5xx or timeoutinline error + retry, keeps last good dataretry re-issues request
Offlinenavigator.onLine false or fetch failsbanner, read-only cached viewqueue or block writes
Denied403 from the APIhide the action, don't disable itrequest-access link

Contradictions are the other half. When two screens disagree (a delete button on the list, a confirm dialog on detail) the prototype is not the tiebreaker. Write the disagreement as one question ("Can a project be deleted from the list, or only from detail?"), assign a decision owner and a date, and record the answer in a decision log so it's traceable. Don't average the two designs into something neither team intended.

Acceptance criteria are observable, one behavior each, Given/When/Then. "Given a user with zero projects, when the dashboard loads, then the empty state shows a Create project button and no table header." If you can't write the Then as something a test asserts, it isn't a criterion: "should feel fast" fails, "p95 dashboard load under 800 ms on a throttled 4G profile" passes.

The trade-off is how much to specify. Specify observable behavior and interface contracts (request/response shape, error codes, emitted events) and leave internal design open. Over-specifying component names and state management locks the team and goes stale within a sprint; under-specifying leaves two engineers building different error handling. The line: anything a user or another service can observe is in the spec; anything only the implementer sees is not.

When not to do this at all: if the prototype is a spike answering one question ("can we render 10k rows?"), the requirement is the answer plus a decision, not a full spec. A 40-page spec for a throwaway is waste.

Failure modes worth naming. Placeholder data promoted to real: "John Doe" becomes a required name field, lorem ipsum becomes a column; detect by grepping the spec for prototype strings. State gaps: ships with no empty state, white-screens on error; detect by walking every matrix cell with design and QA. Unresolved contradictions: two teams build different behavior; detect via the decision log, where any question past its date blocks the story. Untestable criteria: detect by asking QA to write the test from the criterion alone, with no other context.

Last step: click through the real states with representative users before locking. The prototype tested the look; the spec has to survive the states it never showed.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-12

Refine a story with major technical uncertainty.

Answer

What I'd say in the room

You refine it by splitting it into two tickets: a time-boxed spike that answers one falsifiable question, and the user-facing slice that stays behind a flag until the answer lands. Refining means writing down the question, the evidence that would settle it, the owner, the time box, and the fallback if the answer is no. If you can't name the question, you don't have a spike: you have an estimate with a research problem hidden inside it.

Worked example (numbers hypothetical, from a 5-person team shipping 40k orders/day)

Story: "Show carrier ETA on the order confirmation page."

The uncertainty: we've only ever consumed the carrier's tracking webhook. We don't know whether their ETA endpoint returns per-package estimates, what its p99 is, or what the rate limit is.

Spike ticket, 3 days, one engineer:

  • Question: can we call GET /shipments/{id}/eta for every order and keep our p99 under 150 ms?
  • Evidence: a k6 run at 2× peak against the sandbox, plus a written rate-limit number from the carrier's account manager.
  • Owner: named engineer. Decision meeting: day 3, 30 minutes.

Arithmetic that decides it: 40k orders/day is 0.46 rps average, ~1.4 rps at 3× peak. Trivial. But if we also poll open shipments every 30 s, 2,000 open orders is 66 rps, which blows past a 10 rps limit. That's the finding the spike exists to produce, and it's invisible in a story estimate.

Three outcomes, decided in advance:

Spike resultDecision
p99 < 150 ms, limit ≥ 10 rpsBuild behind flag, 1% → 100%
p99 fine, limit < 10 rpsCache ETA in Redis, 5-min TTL, accept staleness
p99 > 150 ms or no per-package ETAShip static "3–5 business days" copy, drop the API

The trade-off I'd name out loud: spike first vs. ship behind a flag and measure in production. Spike when the unknown is your own system: you can reproduce it locally, and a flag just delays the answer. Ship-and-measure when the unknown is someone else's system, because a carrier sandbox is not production. Here it's both, so it's a hybrid: spike to learn the API's shape, flag to learn its real latency.

Failure modes

  • The spike becomes the feature. The engineer starts building the integration on day 1. Detected by: no written answer at the day-3 meeting, spike branch growing. Cost: the sprint slips and you've shipped untested code.
  • Research hidden in the estimate. Story pointed at 8, no spike ticket. Detected by: no spike exists in the backlog. Cost: the rate limit surfaces in week 2, and someone has already promised the feature to a customer.
  • Sandbox lies. Sandbox returns 40 ms, production 900 ms. Detected by: Datadog p99 on the flagged path. Cost: rollback, and the flag stays at 1%.
  • Flag never removed. ETA flag still at 1% six months later. Detected by: LaunchDarkly's stale-flag report. Cost: two code paths forever.

Keep the user value and the investigation as separate tickets so the spike can fail without killing the feature.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Specify accessibility requirements for a complex form.

Answer

What I'd say first

Clarify two things before writing a requirement: which conformance target binds you (WCAG 2.2 AA is the usual bar; EN 301 549 and Section 508 pull it into public-sector contracts), and which states the form has. Default, focus, error, success, and 400% zoom. Then specify per criterion with a number a tester can fail you on. "Accessible" is not a requirement; "body text ≥ 4.5:1 against its background" is.

Assumption: server-rendered form, no custom widget library, English, tested on NVDA + Firefox and VoiceOver + Safari.

Why the mechanics matter

Focus order is a requirement because DOM order is what the keyboard and screen reader follow, and CSS can silently disagree with it. flex-direction: row-reverse or a grid order value moves a field visually while leaving it later in the tab sequence: the user reaches Submit before the field it validates.

Grouping is a requirement because a radio button carries no question of its own. Without <fieldset>/<legend>, a screen reader announces "Yes, radio button, 1 of 2" and the user has no idea what they are answering.

Error announcement is a requirement because a red border is invisible to a screen reader. The error must be text, programmatically tied to the field, and surfaced where focus already is.

HTML
<form novalidate>
  <div id="error-summary" role="alert" tabindex="-1" hidden>
    <h2>3 problems stopped this submission</h2>
    <ul><li><a href="#dob">Date of birth: enter a date in the past</a></li></ul>
  </div>

  <fieldset>
    <legend>Do you have a current passport?</legend>
    <label><input type="radio" name="passport" value="yes"> Yes</label>
    <label><input type="radio" name="passport" value="no"> No</label>
  </fieldset>

  <label for="dob">Date of birth</label>
  <input id="dob" name="dob" type="text" inputmode="numeric"
         autocomplete="bday" aria-describedby="dob-hint dob-error"
         aria-invalid="true">
  <p id="dob-hint">For example, 31 3 1980</p>
  <p id="dob-error">Enter a date in the past, like 31 3 1980.</p>
</form>

Trace on a failed submit: JS sets aria-invalid="true", unhides the summary, and moves focus to #error-summary (tabindex="-1" makes it focusable without adding it to the tab order). The role="alert" region is announced on unhide. The link jumps to #dob; because aria-describedby lists dob-hint then dob-error, the input's accessible description is the hint followed by the error, in that order. Delete the fieldset and the radio group loses its question.

The numbers to write into the spec

RequirementCriterionTestable value
Body text contrast1.4.3 (AA)≥ 4.5:1; ≥ 3:1 for ≥ 24 px or ≥ 18.66 px bold
Input borders, focus ring1.4.11 (AA)≥ 3:1 against adjacent colours
Reflow1.4.10 (AA)usable at 320 CSS px (400% zoom on a 1280 px viewport), no two-dimensional scroll
Resize text1.4.4 (AA)200% with no loss of content or function
Focus visible / not obscured2.4.7, 2.4.11 (AA)visible indicator; sticky header must not cover the focused field
Target size2.5.8 (AA)≥ 24 × 24 CSS px
Labels and instructions3.3.2 (A)every control has a programmatic label
Error identification / suggestion3.3.1 (A), 3.3.3 (AA)error in text, tied to the field, with a correction
Redundant entry3.3.7 (A)don't re-ask data already supplied in the session
Status messages4.1.3 (AA)announced without moving focus
Timing2.2.1 (A)extendable or disableable, unless > 20 hours
Input purpose1.3.5 (AA)autocomplete tokens on personal-data fields

Failure modes and how you catch them

  • Focus order diverges from visual order after a CSS refactor. Detect with a keyboard-only pass: tab the whole form, no mouse. Cost: keyboard users submit before filling.
  • Errors shown only by colour. Detect with NVDA or VoiceOver: trigger a validation failure and listen. Cost: silent failure, repeated submissions, support tickets.
  • Sticky header covers the focused field at 400% zoom. Detect by zooming to 400% at 1280 px and tabbing. Cost: the user cannot see what they are typing.
  • Session timeout discards a half-finished form. Detect by idling past the timeout. Cost: full re-entry, and the abandonment that follows.

Trade-offs

Automated scanning (axe-core, Lighthouse) is cheap and catches a minority of issues: Deque's own guidance puts it around 30–40%. It cannot judge whether an error message makes sense or whether focus lands somewhere useful. Expert manual review with assistive tech covers the rest of the criteria but costs days per form. Moderated testing with disabled participants is the most expensive and the only thing that finds "technically conformant, unusable": spend it on the form with the highest abandonment, not on every form. A design-system component passing its own tests proves nothing about the assembled journey: the header, the validation summary and the timeout are where it breaks.

Acceptance evidence

Per criterion, a recorded pass naming the AT and browser (NVDA 2024.x + Firefox, VoiceOver + Safari on iOS 17), plus a keyboard-only pass and a 400% zoom pass. Re-run the keyboard and screen-reader passes whenever the form's DOM order, validation logic or layout changes.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Specify privacy requirements for product analytics.

Answer

Core answer (say this first)

Before writing a single requirement, ask two things: which decisions does this analytics drive, and which jurisdictions and data subjects are in scope. The spec then has four parts (purpose binding, minimisation, lifecycle, and control) and each part needs a named control and a detection signal. Without those, it's a wish, not a requirement.

Assumptions I'd state out loud: B2C web/mobile product, EU and California users, events landing in a warehouse (BigQuery or Snowflake) via an SDK (Segment, Snowplow, or a first-party collector), and the analytics tool is Amplitude or an in-house dashboard.

1. Purpose binding. Every event names the decision it supports and a lawful basis under GDPR Art. 6: consent, contract, or legitimate interest. Legitimate interest needs a documented balancing test; consent needs a recorded timestamp and a working withdrawal path. Under CPRA, "sale" or "share" of analytics data triggers opt-out and honouring Global Privacy Control signals.

2. Minimisation. Collect the fields the decision needs, nothing else. IP address is personal data (CJEU, Breyer, 2016): truncate to /24 or drop it unless geo is the decision. Never put free text, email, or card data in event properties: a "notes" field on checkout drags the whole pipeline into PCI scope.

3. Lifecycle. Raw events 90 days, pseudonymised aggregates 25 months: pick numbers and write them down; GDPR Art. 5(1)(e) requires a stated period. Deletion must propagate: a DSAR erasure has to reach the warehouse, the CDP, and any downstream export, within one month (GDPR Art. 12) or 45 days (CCPA).

4. Control. Role-based access; processors named in a DPA; cross-border transfer needs SCCs or the EU-US Data Privacy Framework (adequacy decision, 10 July 2023).

Artefact: requirement → control → detection

RequirementControlDetection signal
No PII in propertiesJSON-schema allowlist in CIdbt test / schema validator fails the build
Retention enforcedPartition expiry on event_dateAudit query finds a row older than policy
Consent respectedSDK drops events without consent flagEvent volume drop in the opt-out cohort
Erasure propagatesuser_id → deletion job across storesDSAR reconciliation report

Worked example. An event checkout_completed ships with {user_id, email, ip, cart_value, notes}. Fix: drop email and notes, truncate ip to /24, keep user_id as a pseudonymous key. Retention: 90 days raw. At 5M events/day and ~1 KB each, that's ~5 GB/day, ~450 GB per 90-day window: cheap to keep, expensive to leak, so the retention number is a risk decision, not a storage one.

Trade-offs. Aggregation protects users but kills funnel debugging: you can't chase a drop-off if events are bucketed. Hashing an email is pseudonymisation, not anonymisation (GDPR Recital 26): still personal data, still in scope for erasure. Stricter is wrong when it makes the metric unusable: if k-anonymity thresholding at k=20 hides every small-segment report, the team stops using analytics and starts guessing.

Failure modes. Session-replay SDKs capturing form fields → PII in recordings; detect with a DLP scan (Cloud DLP, Macie) over the storage bucket. A third-party pixel firing before consent → regulator complaint; detect by replaying the consent banner in a headless browser and checking network calls. A schema change adding a field without review → silent PII leak; detect by diffing the event schema in CI.

What changes the decision: health or children's data raises the bar. HIPAA or COPPA make consent-only collection the default.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Design requirements for a feature flag rollout.

Answer

I'd clarify two things before designing: what's the blast radius if this flag misbehaves, and who owns it after launch. Assume we're using a hosted flag service (LaunchDarkly, Split, or an OpenFeature-compatible provider), the flag gates a user-facing feature, and we have a canary pipeline.

The requirements fall into four groups: definition, targeting, rollout, and lifecycle.

Definition. Every flag needs a key, an owner (team plus on-call rotation), a type (boolean or multivariate), a default value, and a fail behavior. For a new feature, default is false. Fail behavior is the critical one: on provider outage or evaluation error, the SDK must return the default. LaunchDarkly and OpenFeature both take a default value at evaluation time and return it if the provider is unreachable. Never fail open to true for a risky feature.

Targeting. Define eligible cohorts (internal employees, beta users, tenant IDs) and excluded cohorts (regulated regions, specific plans). Stable assignment: hash a stable identifier (user ID, device ID) with a salt to a bucket 0–99999, then compare to the rollout percentage. Don't use per-request randomness. Privacy: no PII in targeting rules; hash or use opaque IDs. Authorization: RBAC with change approval for production. Audit: every change logged with actor, timestamp, before/after. Expiry: set a removal date, e.g., 30 days after 100% rollout.

Rollout. Progressive delivery with observation windows. Example:

StageExposureMin. observationGuardrail
11%30 minerror rate < 0.5%, p99 < 200 ms
25%2 hsame
325%24 hsame + conversion within 2%
450%24 hsame
5100%24 hsame

Minimum evidence: error rate within 0.1% of baseline, p99 latency within 10% of baseline, no spike in support tickets. Guardrails: automated rollback if SLO burn rate exceeds threshold. Pause: manual pause on anomaly. Kill: turn flag off, which should be instant. Recovery: if flag off causes issues, have a fallback.

Failure modes. Provider outage: serve default. Stale cache: SDK caches rules; TTL typically 30 s–5 min; if stale, you might serve old targeting. Cross-service inconsistency: different services evaluate at different times; use consistent hashing and the same salt, or centralize evaluation. Detect by monitoring evaluation errors, cache age, and comparing flag state across services.

Trade-offs. Not every flag should be removed. Permanent kill switches (disable a non-critical feature under load) are legitimate and should be documented as such. Progressive-delivery flags are temporary. The rule 'remove after rollout' applies to temporary release flags, not to operational kill switches or entitlement flags. Decide the flag type upfront: release, experiment, ops, permission. Only release flags get the expiry.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-21

Specify requirements for deleting a customer account.

Answer

Core answer

"Delete the account" is three different requests wearing one phrase: the customer exercising a privacy right, an internal admin cleaning up, or a legal hold. I'd ask which one before writing anything, because it decides who can authorise it and what must survive.

My spec has four parts: authority, scope, mechanism, evidence.

Authority. Self-service deletion requires an authenticated session plus re-authentication (password or MFA) within the last five minutes and a typed confirmation: a stolen session alone must not be enough. Support-initiated deletion is the confused-deputy risk: support must not be able to delete an account on its own authority. The request has to be tied to a verified ticket and the customer's own confirmation, and admin-initiated deletion of another user's account needs a second approver. Statutory clocks: a GDPR Art 17 erasure request gets one month, extendable by two further months for complex cases (Art 12(3)); a CCPA/CPRA deletion request gets 45 days, extendable to 90 with notice.

Scope. Enumerate by data class, not by table name: derived tables keyed by email are the ones that survive.

Data classDispositionBasis
Credentials, profile PIIHard deleteNo basis to keep
Invoices, order recordsRetain, pseudonymiseTax: 6 yrs (UK HMRC), 7 yrs (US IRS guidance)
Card PANNever stored post-auth (PCI DSS v4.0, 3.3.1); tokens deleted—
Analytics events keyed to user idDelete or re-key to a random id—
BackupsNot purged in place; suppressed on restore—
Deletion audit recordRetain, minimal fieldsArt 5(1)(c) minimisation

Pseudonymising is not deleting: under GDPR Recital 26 pseudonymised data is still personal data, so swapping the id for a token does not discharge Art 17. Anonymisation does, but only if re-identification is genuinely irreversible.

Mechanism. States: active → pending_deletion (grace, default 30 days, cancellable) → soft_deleted (login blocked, data intact) → purged. The purge job is the irreversible boundary.

DELETE /v1/customers/{id}
Idempotency-Key: <uuid>
→ 202 {"deletion_id":"del_9f2","state":"pending_deletion","purge_after":"2025-07-01T00:00:00Z"}

Same key again → same deletion_id, no new work. Different key while pending → 409. The key is scoped per customer, or a retry from one customer's client can cancel another's.

Evidence and partial failure. Deletion fans out to billing, CRM, email, warehouse and search. Each gets a ledger row with status pending/done/failed; retries use exponential backoff; a reconciliation job flags rows pending more than 24 hours and alerts on ledger depth. The completion artefact is a deletion certificate: per-system status, timestamp, and the legal basis for anything retained. Readable by support, containing nothing but the customer id.

Failure modes. Backup resurrection: a restore re-creates the deleted user, so the restore pipeline must replay the tombstone table. Orphaned derived data: enumerate by data class. Grace-period race: a login during pending_deletion must not silently cancel the request.

Trade-off. Anonymise when the row is needed for aggregates or referential integrity and identifiers can be removed irreversibly; delete when nothing downstream needs it. Retain under legal hold only with a named basis and an expiry.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

Define the business rules and data requirements for an eligibility calculation so developers and testers can implement and verify it without asking you again.

Answer

Clarify the decision, the policy source, and the output contract before writing any rule. For a childcare subsidy: the output is a weekly award in GBP plus a reason code, effective from a policy date. Assumptions: income is gross annualised from the tax authority feed, household is defined by the policy, and the award is means-tested with a taper. If those are wrong, the rules are wrong.

I produce three artefacts: a decision table, a data dictionary, and test vectors.

Decision table: conditions map to outcome and reason code:

residencyagehousehold incomechildrenoutcomereason
UK resident 3+ yrs18+≤ £25,0001+eligibleE1
UK resident 3+ yrs18+£25,001–£40,0001+eligible, taperedE2
UK resident 3+ yrs18+> £40,0001+ineligibleI1
not UK residentanyanyanyineligibleI2

Data dictionary: every field the calculation reads or writes:

fieldtypesourcerequiredvalidationexample
household_income_gbpinteger penceHMRC feedyes≥0, ≤ 10^73400000
residency_start_datedateapplicantyes≤ effective date2021-04-01
children_countintegerapplicantyes0–102
effective_datedatepolicyyesISO 86012025-04-06

Worked trace: income £34,000, threshold £25,000, taper 55p per £1 over threshold, base award £4,000/year. Reduction = 0.55 × 9,000 = £4,950. Award = max(0, 4,000 − 4,950) = £0. Reason code E2, not I1: the household is eligible but the taper zeroes the award. That distinction matters for appeals.

Edge cases: partial year, mid-year income change, multiple jobs, negative income, zero hours, rounding to the nearest penny, currency, backdating, missing data. Validation: input range, cross-field (residency start ≤ effective date), output reason code always present, and test vectors for each boundary. Threshold ±1p, taper start, cap.

Failure modes: ambiguous rule → developers guess; data source drift → wrong income; rounding mismatch → penny disputes; effective date not versioned → retroactive changes break; missing reason codes → appeals can't be explained. Detect with test vectors in CI, reconciliation against legacy, reason code coverage, audit logs.

Trade-offs: a decision table is readable but can explode with combinations; a configurable rules engine handles frequent policy change but adds a deployment surface. For a small stable rule set, hard-code it and keep the table as the spec. Use RFC 2119 MUST/SHOULD for the spec and OpenAPI for the data contract so testers can generate cases.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Design requirements traceability for a regulated workflow.

Answer

Assumptions I'd state first. This is a software-as-a-medical-device feature under IEC 62304 safety class B, sold in the US and EU, so 21 CFR 820.30 design controls, ISO 13485:2016 §7.3 and an ISO 14971 risk file all apply. Roughly 400 software requirements, 12 engineers, quarterly releases.

The answer. Traceability is a graph, not a document. Every obligation (a regulation clause, a user need, a risk control) gets a stable typed ID and a record carrying source, owner, version, rationale, applicability (which SKUs and markets), status, and superseded-by. Links run both ways: from a clause down to the test that verifies it, and from any test or design element back up to the obligation that justifies it. The matrix is generated from the requirement tool, never hand-maintained; a hand-maintained matrix is stale within one sprint.

ID scheme: SYR- system requirement, SRS- software requirement, RSK- risk control, DES- design element, VER- verification, VAL- validation, REL- release. The source field names the primary document, e.g. 21 CFR 820.30(c) or ISO 14971 hazard H-07.

IDSourceRiskDesignVerificationValidationRelease
SRS-INF-014SYR-003, clinician need: rate accuracyRSK-007 under-infusionDES-PUMP-02VER-031 boundary, VER-044 HILVAL-004, 15 nurses / 3 sitesREL-2.3.0
SRS-ALM-00921 CFR 820.30(c) alarm inputRSK-012 missed occlusionDES-ALM-01VER-052VAL-006REL-2.3.0
SRS-LOG-021ISO 13485:2016 §4.2.5 record controlRSK-019DES-LOG-03VER-061n/a, no clinical claimunreleased

Change impact, worked. A clinician reports under-infusion at low rates, so SRS-INF-014's threshold moves 5 → 3 mL/h. Query the graph by ID and the blast radius comes back in one shot: RSK-007's FMEA severity and occurrence scores need re-scoring; DES-PUMP-02's firmware constant changes; VER-031's boundary case and VER-044's HIL scenario are invalidated; VAL-004's protocol must be re-run; REL-2.3.0 is already in the field, so this is a 21 CFR 820.30(i) design change and may trigger a field correction; the IFU rate table is labeling and changes too. The design history file (820.30(j)) records the change, the re-verification and the approval.

Failure modes and how you catch them. Orphaned requirement: no VER- link; a nightly query for SRS rows with no verification edge fails the release gate. Dangling link: points at a superseded ID; referential-integrity check against the ID registry. Stale approval: the requirement text was edited after sign-off; store a SHA-256 of the text at approval and recompute in CI, a mismatch reopens the approval. Expired exception: an exception carrying an expiry date; alert at T-30 days, block release at T-0. Last run over our 412 requirements and ~1,650 links: 3 orphans, 2 dangling, 1 expired exception. Reviewing 1,650 links by hand at 30 s each is ~14 h per release; the CI job runs in ~90 s.

Trade-offs. A dedicated RM tool (Polarion, Jama, Codebeamer, DOORS Next) buys impact queries, audit-ready reports and e-signatures, at per-seat cost and admin overhead. Git + Markdown + a CI script that parses IDs and fails on orphans costs a few days to build and no licences, but you lose impact queries and the auditor-facing report. Deciding criteria: safety class C, more than one regulator, or >500 requirements → tool. Class A, single market, <100 requirements → the script is enough. Don't link every line of code; link at the design-element level or the graph becomes noise.

Why production sampling. A verification test ran against a frozen build on a synthetic bench. The field has different tubing, ambient temperature and firmware configuration, so a passing test proves the build met the requirement on that bench, not that the requirement still holds. Pick the requirement's measurable acceptance criterion, occlusion alarm within 5 s at 3 mL/h, log it from the fleet, sample ~200 events a month, and plot them on a p-chart. Any point outside spec, or a shift beyond 3σ, opens a CAPA and re-enters the graph as a new risk control.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Resolve sales and support teams asking for incompatible workflow behavior.

Answer

What I'd say first (60–120 seconds)

Before treating this as a conflict, I'd check whether it's one conflict or two teams using the same word for different things. My assumption going in: both teams act on the same record in the same system, and I own the workflow service that decides what's allowed.

The answer is almost never "pick a side" or "make it configurable." It's to separate the record's lifecycle from each team's policy about it. One canonical state machine, with the teams' rules layered on top as policy, not two competing definitions of the same state.

Why the conflict exists

Conflicts like this usually come from one field carrying two meanings. Sales says "closed" and means "stop selling." Support says "closed" and means "stop changing, it's invoiced." Both are reasonable; they're just not the same invariant. When one boolean serves both, every sales edit looks like a support violation and every support lock looks like sales losing a deal.

Worked example (hypothetical figures)

A B2B SaaS with a shared opportunity object. One boolean, closed. Sales closes 340 records a week; support reopens 90 of them, 26%, because the amount was wrong before invoicing. Each reopen costs about 12 minutes of support time, so roughly 18 hours a week, and p95 time-to-invoice slips 1.4 days.

The fix: replace closed with stage (open / won / lost) plus a separate locked_at timestamp that support sets when the invoice posts. Sales can edit until locked_at; after that, edits create an amendment record instead of mutating the original. Sales keeps its "stop selling" signal, support keeps its immutability, and neither has to know about the other's rule.

Options and when each is wrong

OptionCostWrong when
Per-team configurable policyFast to ship, two code pathsThe two behaviors are mutually exclusive on the same record: both can't be true at once
Segment into separate objectsClean ownershipBoth teams must report on the same funnel; you've just split the numbers
One state machine + policy layerUpfront modeling, one source of truthRarely: only if the teams genuinely never share a record

Failure modes and how to catch them

  • Silent divergence: two flags drift and reports disagree. Detect with a nightly reconciliation counting records where stage = won and locked_at is null for more than 7 days.
  • Reopen storm: reopen rate jumps after a comp-plan change. Alert when the weekly reopen rate moves more than 15% week over week.
  • Config swamp: the policy layer grows past ~20 per-team flags and nobody can predict behavior. Track flag count per object and cap it.

Deciding and recording

Bring options, consequences and a recommendation to the named owner: VP Product for the object model, RevOps for the policy. Record the decision, the rationale, who dissented, the scope, a review date, and the criteria you'll re-check. What you don't do is encode both incompatible behaviors as mandatory on the same field.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Handle a requirement change midway through delivery.

Answer

Say this first (60–120 seconds)

Assume the change lands mid-sprint, the outcome is still worth delivering, and the person asking is not the person who owns the outcome. Then this is not a scheduling question: it is a scope trade. You decide with the outcome owner, and you pay for the change by removing work of equal size or moving the date. Absorbing it silently is the failure, not the compromise.

Clarify three things before estimating anything: does the change alter the outcome or only the implementation; is there a hard date (compliance, contract, customer launch); and who owns the outcome. If the outcome did not change, it is a backlog item, not a mid-delivery change, and it goes to the next planning session.

Why mid-delivery is expensive

Partially built work is worth less than its remaining estimate suggests. It cannot ship, and it still consumes review, test and merge attention. Little's law does the rest: raise WIP and cycle time rises with it. Adding six engineer-days to a sprint that is already full does not add six days of output: it delays everything queued behind it.

Worked example (hypothetical figures)

Six engineers, ten-day sprint, ~20% overhead for meetings and on-call, so 48 engineer-days of real capacity, fully committed. On day 4 a compliance change lands: redact account numbers in the payments export. Estimate is 5 engineer-days to build plus 1 to verify.

  • Remaining capacity: 6 engineers × 6 days × 0.8 = 28.8 engineer-days.
  • Remaining committed work: 48 − (4 × 6 × 0.8) = 28.8 engineer-days.
  • The change is 6 / 28.8 ≈ 21% over capacity.

So you remove ~6 engineer-days of committed scope, or extend by 6 / (6 × 0.8) = 1.25 days. There is no third option where the team simply works harder.

Choosing between now, later, not

OptionRight whenCostSignal you chose wrong
Absorb now, drop equal scopeCompliance, security, or it blocks a committed outcome6 engineer-days of other scope slipsSprint goal missed and nothing shipped
Swap: defer an equal-size itemHigh value, not urgentSame 6 days; deferred item re-enters backlogDeferred item was a dependency for something else
Defer to next sprintReal but not time-boxedCost of delay, rework if interfaces moveCompliance deadline missed
RefuseOutcome unchanged, or requester is not the outcome ownerRelationship cost, possible escalationYou refused something the customer needed

Failure modes and how you detect them

  • Sunk-cost defence: the argument cites past spend ("we've spent three weeks") rather than remaining outcome value. Detection: the finish estimate has not changed but the justification has.
  • Silent absorption: the sprint goal quietly drops. Detection: committed-versus-completed at review; throughput flat while cycle time climbs.
  • Half-merged work: a long-lived branch, or a flag left off for more than two sprints. Detection: WIP limit breaches and a flag inventory.
  • Interface drift: the change touches a shared contract. Detection: downstream consumers' tests fail after your merge.

Ship dark while you decide

Python
# Python 3.12 — flag default off, enabled per tenant
REDACT_TENANTS = {"acme", "globex"}  # replaced by the flag service in prod

def export_row(row: dict, tenant: str) -> dict:
    if tenant in REDACT_TENANTS:
        row = {**row, "account_number": "****" + row["account_number"][-4:]}
    return row

Trace: export_row({"account_number": "4111111111111234"}, "acme"). row["account_number"][-4:] is "1234", so the returned dict has "account_number": "****1234". For tenant "initech" the row is returned unchanged. That lets the redaction merge behind a flag, be verified by the compliance owner, and be enabled per tenant without holding the branch open.

Close by telling the requester in one message: what changed, what it costs, what you are removing, and when it lands. Revalidate the changed behaviour with the domain owner before you call it done.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Investigate why delivered requirements still produced the wrong product.

Answer

First 90 seconds. "Wrong product" needs a referent before you investigate: wrong for the user, wrong for the business, or wrong against the requirement as written. Assume the requirement was delivered as specified and the outcome still missed: that rules out build defects and puts the requirement itself on trial.

There are two classes of cause, and telling them apart is the whole job:

  • The decision was wrong. The team solved the right problem on bad evidence.
  • The decision was right but the artifact lost it. The requirement dropped a constraint the team already knew.

One question separates them: did anyone, at the time, state the constraint that later broke? If yes and it never reached the requirement, it's a translation failure. If nobody ever knew, it's an evidence failure.

Worked trace: a bulk CSV export.

StageWhat it saidWhat it omitted
needanalysts reconcile monthly invoicesvolume: ~180k rows/month
evidence5 analyst interviewsall 5 used test accounts with <2k rows
decisionsynchronous CSV downloadno row bound, no async path
criteriaAC-3: "user can export selected records"no volume in the criterion
testfixture of 50 rowsnever exercised the tail
releaseshipped, 62 tests green—

The break is at evidence, not at criteria. Sample median 1,200 rows; production p50 40k, p95 210k. The sample was two orders of magnitude off at the tail, and nothing downstream could catch it because no criterion mentioned volume. Detection: pull the sample's distribution on the dimension that broke and compare it to production. Divergence at the tail is your answer.

Trade-offs in how you investigate. Artifact archaeology (tickets, criteria, test fixtures) is cheap and free of recall bias, but rationale often lives in Slack threads and refinement comments, not in the artifacts. Re-interviewing participants is slower and recall is reconstructive: people rationalize toward the shipped outcome. The deciding criterion is whether the rationale was ever written down. If a decision record exists, read it. If it doesn't, you must interview, and start with whoever dissented at the time: dissent marks a live assumption, and it's the cheapest signal you have.

Failure modes, with detection.

  • Unrepresentative sample: compare sample and production distributions on the dimension that broke. Cost: one query if you log it, a week of interviews if you don't.
  • Proxy metric: "requirements coverage 100%" while the user-outcome metric is flat. Detect by naming the outcome metric and checking whether it moved.
  • Lost rationale: ask the engineer who built it to state why, without looking. If they can't, it didn't survive handoff.
  • Premature lock: count distinct solutions in the decision record. One means it was locked before alternatives were compared.

Keep the investigation on the process, not the author. The requirement writer is usually encoding a group decision, and blaming them ends the information flow you need to find the real cause.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Retire an obsolete requirement and feature.

Answer

First two minutes. Before I touch anything I want three facts: who still calls this, what obligation it satisfies, and whether that obligation is gone or merely moved. Concrete case: we're retiring SAML login against a legacy IdP, exposed as POST /v1/auth/saml and gated by the flag legacy_sso_enabled.

Assumptions I'd state out loud: I own the auth service, I have per-API-key request telemetry, and legal has confirmed the IdP contract lapsed rather than being renewed. If any of those is false the plan changes: no telemetry means I can't size a window, no legal sign-off means I can't delete the audit rows.

The shape of the answer: disable first, delete second, never in the same change. Disabling is reversible in seconds; deleting is not. Everything between those two points exists to make the delete boring.

PhaseActionSignal to advanceRollback
DisableFlag to 0% for internal callers, then 1% → 10% → 50% → 100% of external traffic across five days410 rate flat, no new auth ticketsflip the flag, seconds
AnnounceSunset response header (RFC 8594) with the date, plus direct mail to every key above 0.1% of trafficeach key acks or migratespush the date out
RemoveDelete the route, the flag, the SAML dependency, the IdP service account, and the idp_legacy tableendpoint returns 410; grepping the flag key returns nothingredeploy the previous release

Sizing the window with numbers, not vibes. The endpoint takes 12,000 requests/day from 40 API keys. Three keys are 99.6% of that; the largest is a partner on a 90-day release train. So the sunset date is 90 days out: one full cycle for the slowest caller I can't force-upgrade. If the top key had been internal, I'd cut over in a day.

Hard cutover vs. deprecation window. The deciding criterion is whether I can enumerate and contact 100% of callers. If yes, cut over: a window is pure carrying cost. If no, the window is sized to the slowest client's release train, not to a round number. There's a second criterion that overrides the first: if the old path is a security liability (the pinned SAML library has an unpatched CVE, or the path skips MFA) you cut over hard and accept the breakage, because every extra day is exposure.

Failure modes, and how each one shows up.

Silent reactivation via flag default. This is the one that bites. In the OpenFeature SDK, get_boolean_value returns the supplied default when the flag no longer exists in the provider:

Python
# Python 3.12, OpenFeature SDK
if flags.get_boolean_value("legacy_sso_enabled", True):   # default True
    return legacy_saml_login(request)

Trace it: flag present and false → returns False → new path. Flag deleted from the provider → key not found → returns the default True → legacy login is live again for every request, with no config change and no deploy. Detection: after deleting the flag, assert the endpoint returns 410 in a synthetic check, and grep the repo for the key. Fix: default False, and delete the code rather than only the flag.

Zombie writer. A nightly job still inserts into idp_legacy.user_map. Drop the table and it dies at 02:00 on a foreign-key error. Detection: revoke INSERT/UPDATE grants a week before the drop and watch for permission-denied in the DB log.

Orphaned entry point. The login page still renders "Sign in with legacy IdP" from CMS config, so users click into a 410. Detection: a daily synthetic check against the button's target URL.

Retention trap. idp_legacy holds four years of login audit rows under a seven-year retention policy. Archive to cold storage; do not drop. Deleting the behavior and deleting the evidence are separate decisions.

What I'd say at the end of the interview: the retirement is done when the code is gone, the flag is gone, the grants are gone, and a test asserts the 410, not when the ticket moves to Done.

Curated: · Written: · Reviewed:

Difficulty: Hard