Skip to content
Tech Interview Prep
Technical interview guide

Proof-of-Concept Design

Scoping a POC narrowly enough to prove the riskiest assumption, without building a miniature version of the whole system.

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

Scope: AWS and Azure architecture and experimentation guidance plus Google Cloud load-testing and deployment 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-13

Choose between a spike, PoC, prototype, pilot, and MVP.

Answer

The 90-second version. The label is a contract about who is exposed and what you owe them, not a size of effort. I pick by three questions: who uses it, what data it touches, and what happens when it breaks at 3 a.m. A spike and a PoC have no users and no pager, so they can be thrown away. A prototype has users but no real data. A pilot has real users and real data but a bounded blast radius and a rollback. An MVP has customers, money, and an on-call rotation. If two of those three answers change, the label changes, and the label never downgrades the obligation.

ArtifactTimeboxUsersDataOps owedExit criterion
Spike1–3 days, one engineernonesyntheticnone; branch never mergeda written answer to one question
PoC2–4 weeksnonesyntheticone VM, no HA, no authpre-registered threshold met or missed
Prototypedays–weeksinternal stakeholdershardcodednone; disposabledesign decision made
Pilot1–2 quarters1 cohort or ~5% of trafficreal, under DPASLOs, on-call, feature flag, rollbackcohort metrics hold vs control
MVPongoingall customersreal, under contractSLA, backups, migrations, on-callvalue hypothesis tested

Why the mechanism differs. A spike is disposable because its output is knowledge, not code: the code has no future, so keeping it buys you maintenance for zero information. A PoC is bounded because you write the question and the pass/fail threshold before you start; without that, you rationalize whatever number you got. A pilot is bounded by a flag you can flip in one deploy. An MVP is bounded by nothing, which is why it needs the full operational stack.

Worked example (hypothetical). A team is deciding whether to move search off Elasticsearch onto Postgres with pgvector.

  1. Spike, 2 days, one engineer. Question: can pgvector do cosine similarity over 1M 768-dim vectors on a dev laptop? Answer: yes. Index build 40 min, query 12 ms. Code deleted, answer written up.
  2. PoC, 3 weeks. Pre-registered: p99 < 100 ms at 200 QPS with 5M vectors on a 4 vCPU / 16 GB instance, recall@10 ≥ 0.90. Result: p99 180 ms at 200 QPS, recall 0.87. Missed. Decision: don't migrate. One VM, synthetic embeddings, no auth, no customer data.
  3. Had it passed, the next step is a pilot: 5% of search traffic behind a flag, real queries, dual-write to both engines, on-call, rollback = flip the flag. Only after the cohort matches control do you call it an MVP and delete the old path.

Failure modes and how you detect them.

  • Prototype becomes load-bearing. Detection is mechanical: the prototype repo has a deploy job, or a pager points at it. If it has CI, it's production: treat it as such or delete it.
  • PoC holds real data. Run a data-classification scan on the PoC bucket. A customer email in there means you now owe DPA and retention obligations you didn't budget for.
  • Spike without a timebox. Detection: it has a Jira epic and a standup. Kill it or relabel it a PoC with a written question.
  • Pilot without rollback. If you can't revert in one deploy, you shipped an MVP and skipped the safeguards.

What would change the decision. If the uncertainty is about user behavior rather than feasibility, skip spike and PoC and go straight to a prototype: no amount of benchmark data tells you whether people will use the feature. If the risk is regulatory, legal review gates the pilot before any code is written.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-1

Design entry, exit, and stop criteria for a PoC.

Answer

Core answer. A PoC is a decision instrument, not a demo. Design it backwards from the decision: write the question so a result can falsify it, name the person who decides, set the threshold that would actually change their mind, and set a date and a spend cap after which it stops whether or not it succeeded. If you can't write the falsifiable question, you don't have a PoC: you have a project.

Entry. Three things must exist before the first line of code. (1) A decision question with a number in it: "Will streaming replace the 6-hour batch job at p99 freshness under 5 minutes for under $4k/month, without dropping below 99.9% delivery?", not "evaluate streaming." (2) A named decision owner and a decision date. (3) A baseline measured on the current system, because "faster" is meaningless without the number you're beating. Add representative data (the real date range and volume, not a curated slice), a controlled environment, and a security/privacy sign-off if real data is involved. Funded time is a cap, not an estimate: 6 weeks, 2 engineers, 0.5 FTE each.

Exit. Attach a threshold and an evidence source to each hypothesis. Functional: does it produce the same output as the batch job on the agreed sample? Quality: agreement rate ≥ 99.5% on 10k labelled rows. Operational: p99 freshness < 5 min over a 7-day replay. Economic: cost per 1M events ≤ $X. Derive each threshold from the decision, not from what the team can achieve: ask "what delta would flip the buy/build/keep decision?" and set the bar there. Freeze the criteria before the first data pull, version them in the repo with a commit hash and date, and require a written rationale for any change.

Stop. Bound time, spend, data exposure, production impact, and irrecoverable actions. Concretely: stop at the kill date; stop if spend exceeds the cap; stop if the PoC needs production write access or PII beyond the approved scope; stop if two consecutive checkpoints show no movement toward the threshold. Define who can stop (the owner, not the team) and what met, unmet, and inconclusive mean: inconclusive is a stop, not a continue.

Worked example (hypothetical figures).

CriterionThresholdEvidence
EntryFalsifiable questionp99 < 5 min at ≤ $4k/mowritten, signed by owner
EntryBaselinebatch p99 = 6h 12m30 days of prod metrics
ExitQuality≥ 99.5% agreement10k labelled rows
ExitOperationalp99 < 5 min7-day replay
StopTime6 weekscalendar, owner-named
StopSpend$25kfinance tag

Arithmetic. 6 weeks × 2 engineers × 0.5 FTE = 6 engineer-weeks ≈ $30k loaded. If the decision is worth less than that (a reversible config change, a vendor you can drop in a quarter) the PoC costs more than the mistake it prevents. Don't run it.

Failure modes and detection.

  • Threshold drift: exit criteria edited after results. Detect: criteria committed before the first data pull; any edit needs a rationale and a re-run.
  • Demo-ware: built on curated data. Detect: row count and date range of the PoC input must match the agreed window.
  • Zombie PoC: no kill date, drifts into half-built production. Detect: calendar entry for the stop date; if it passes with no decision, it stops by default.
  • Inconclusive-as-success: "we learned a lot" justifies continuing. Detect: inconclusive is pre-defined as a stop.

When a PoC is the wrong tool. If the decision is reversible and cheap, just do it. If the unknown is a published fact, read the docs or a benchmark. If the risk is integration, not feasibility, run a canary or a spike. If you can't get representative data, the PoC can't answer the question: do a paper analysis or a paid vendor pilot instead.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-25

Review a request to 'just demo something' before discovery.

Answer

"Just demo something" is a request to spend engineering time without a stated decision. My first move is to name the decision and the audience, then pick the cheapest artefact that serves it. If I can't name the decision, the demo isn't ready to be built.

Three cases, three different artefacts:

  1. Problem alignment: nobody agrees what we're building. Artefact: a sketch or clickable mock (Figma, a few hours). Proves the flow is understandable. Proves nothing about feasibility.
  2. Technical unknown: a material architecture risk, e.g. can this query hit p95 under 200 ms at our data volume. Artefact: a bounded PoC with a written question, exit criteria and evidence. Time-box 1–3 days, one engineer.
  3. Progress theatre: someone wants to show motion. Name it and don't build.

Why this matters: a running demo is the most legible artefact and the least honest one. Polish is visible; the caveat that the backend is a hardcoded JSON fixture is not. Audiences anchor on what they saw working and infer feasibility from it. That inference is the failure mode, and it's expensive because it gets made in a room you're not in.

RequestArtefactCostWhat it provesWhat it does not
"Show the flow"Figma clickable mock~4 hoursThe UX is understandableAnything about load, data or cost
"Can we do real-time search?"Bounded PoC, written exit criteria1–3 days, 1 engineerThe specific question, on a named fixtureProduction behaviour, multi-tenant load
"Show progress"Nothing new0Nothing—

Worked example (figures illustrative). A team asked for a demo of real-time search. I split it: a Figma mock in 4 hours answered the UX question, and a 2-day spike indexed 1M synthetic documents in Elasticsearch on a single node and measured p95 query latency at 120 ms. The mock and the spike were presented as two separate artefacts with two separate conclusions. The mock never implied the latency number; the spike never implied the UX was settled.

Rules I hold to:

  • Label every mock. State what is real, what is faked, and what was not tested. "The index is 1M synthetic docs; ranking is stubbed; we did not test concurrent writes."
  • No production data, no production exposure. Synthetic fixtures, run locally or in a sandbox. A demo is not a reason to open a prod path.
  • Capture feedback in two columns. "Did this resonate?" (product, UX) is separate from "does this work?" (engineering, evidence). Conflating them is how a liked demo becomes a committed architecture.
  • Don't let polish pick a vendor. A slick demo is not comparable evidence. If a vendor is in the room, the comparison needs the same fixture and the same criteria for every option.

Failure modes and how I detect them:

  • Demo effect: the follow-up meeting is about the UI, not the architecture question. Detection: the questions asked are about colour and flow, not latency and failure behaviour.
  • Feasibility leak: someone writes "we demoed X, so X works" in a planning doc. Detection: grep the doc for the demo and check whether the caveats survived.
  • Sunk cost: the "quick demo" is now in week three. Detection: the time-box was never written down.

Close with the decision: proceed to discovery, stop, or run a specific bounded follow-up with an owner and a date. A demo without that is entertainment.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-22

Assess whether a PoC workload is representative.

Answer

"Representative" only means something relative to the hypothesis. So the first move is to write down the claim the PoC is meant to support ("this design holds p99 under 200 ms at 4,000 RPS") then ask which dimensions that metric is sensitive to. A PoC is representative when every dimension that dominates the metric is either matched or scaled by a model you've validated. Everything else is a caveat on the conclusion, not a blocker.

Three dimensions break PoCs more than the rest: the arrival model, the data distribution, and state warmth.

Arrival model. A closed-loop generator with N virtual users applies back-pressure, when the system slows, the generator slows too, so you never see the queueing collapse. Production is open-loop: requests arrive whether or not you're keeping up. That's coordinated omission. Use a constant-arrival-rate executor, e.g. k6:

JavaScript
export const options = {
  scenarios: {
    prod_like: {
      executor: 'constant-arrival-rate',
      rate: 4000, timeUnit: '1s', duration: '10m',
      preAllocatedVUs: 500, maxVUs: 2000,
    },
  },
};

Data distribution. Uniform keys in a PoC versus Zipfian in production. YCSB's default Zipfian uses theta 0.99, and the top 1% of keys can carry 50-60% of reads. That moves the cache hit rate, which moves everything downstream.

State warmth. PoC numbers are usually steady-state after warmup; production deploys start cold.

Worked arithmetic. PoC: 100 RPS at 99% cache hit → 1 backend read/s. Production: 4,000 RPS at 70% hit → 1,200 reads/s. Traffic grew 40×, backend load grew 1,200×. If the PoC sized the database from the first number, it's wrong by 30×. Detect it by comparing Redis keyspace_hits/keyspace_misses and the key-frequency histogram: a count-min sketch over sampled keys is enough.

dimensionPoCproductionverdict
arrival50 closed-loop VUs4,000 RPS open-loopmismatch: rerun
key distributionuniformZipfian θ=0.99mismatch
cachewarm, 99% hitcold after deploy, 70%mismatch
payload1 KB p5040 KB p99scaled, model unvalidated
dataset1 GB (fits RAM)500 GBomitted
connection poolHikariCP default 10200mismatch

Failure modes and how to catch them:

  • Warm cache / JIT. Measure the first 60 s after a deploy, not the steady state.
  • Easy-case selection. Compare the PoC's key and payload histograms against a production sample; if they differ, the PoC is optimistic.
  • Quota mismatch. Dev accounts often have higher or absent throttling. Check the real limit: API Gateway defaults to 10,000 RPS per account per region, and DynamoDB throttles per partition.
  • Working set larger than RAM. If the PoC dataset fits in page cache and production's doesn't, disk latency appears only in production.

When not to trust it: if the hypothesis depends on a dimension you can't reproduce (multi-tenant noisy neighbors, real think time, cross-AZ network) the PoC can falsify a design but can't confirm it. Say that explicitly and gate the rollout: shadow traffic via an Envoy tap filter or GoReplay, then a 1% canary with automatic rollback on p99.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

Test an integration dependency in a PoC.

Answer

What I'd say first. Before testing anything I want to know what decision the PoC gates: usually "do we build on this vendor's API, and what do we have to build around it." I'll assume a two-week, one-engineer PoC against a third-party HTTP API we don't control, and that the deliverable is a written verdict plus the adapter code, not a demo.

I'd test two things: the contract (does the API do what the docs claim, on our payload shapes) and the failure behavior (what happens when it's slow, throttled, or wrong). The happy path is one test case. The interesting ones are boundaries and injected faults. I run contract tests against the vendor sandbox and failure tests through a local fault-injecting proxy in front of it, because sandboxes rarely reproduce production throttling or latency.

The test matrix.

CaseHow injectedPass criterion
Contract on our real payloadsvendor sandboxresponse matches the published OpenAPI schema; unknown fields tolerated
Boundaries: max page size, max body, unicode, empty listsandboxdocumented limits hold; violations return 4xx, never 5xx
Duplicate writereplay with the same idempotency keyone resource created, identical response body
Out-of-order / replayed webhooksreplay with a stale event idadapter upserts on event id, no double-apply
LatencyToxiproxy latency toxic, 2000 ms ± 500adapter hits its own timeout budget, doesn't hang
ThrottleWireMock 429 with Retry-After: 2backoff honors the header, no retry storm
Malformed / partial bodyWireMock fault MALFORMED_RESPONSE_CHUNKadapter fails closed, no partial write
Credential rotation mid-flightrotate the key at the proxyin-flight call fails cleanly, next call succeeds
OutageToxiproxy timeout toxiccircuit opens, fallback path exercised

Fault injection. Toxiproxy sits between the adapter and the sandbox:

toxiproxy-cli create vendor -l 127.0.0.1:8474 -u api.vendor.example:443
toxiproxy-cli toxic add vendor -t latency -a latency=2000 -a jitter=500
toxiproxy-cli toxic add vendor -t timeout -a timeout=5000

WireMock covers the responses the sandbox won't produce:

JSON
{
  "request": { "method": "POST", "urlPath": "/v1/payments" },
  "response": {
    "status": 429,
    "headers": { "Retry-After": "2" },
    "fixedDelayMilliseconds": 150
  }
}

Quota arithmetic. Say the vendor allows 100 req/s and our peak is 40 req/s. With three retries on failure, worst case is 160 req/s: over quota, so the vendor throttles us exactly when we're already failing. The retry budget has to be counted inside the rate limiter: a token bucket at 80 req/s where retries consume the same tokens. Assert total outbound requests under fault, not just success rate.

Latency budget. If our user-facing SLO is 300 ms p99 and the vendor's own p99 is 180 ms, we have 120 ms for our work. Measure both with k6 (thresholds: { http_req_duration: ['p(95)<300'] }) rather than assuming the vendor's number holds from our network.

Sandbox vs stub vs record-replay. The sandbox gives real auth, real schemas and real error codes, but it's shared, rate-limited, may run a different version than production, and can't inject faults. A local stub gives full control and deterministic CI, but it encodes your reading of the docs, so it can't discover undocumented behavior. Record-replay (Hoverfly or a VCR-style cassette) captures real sandbox traffic for fast regression, but recordings go stale and hide drift. Use the sandbox to discover, the stub to regression-test, replay to keep CI fast, and never let the stub be the only evidence.

Failure modes worth naming. Sandbox version drift: pin the API version header and diff the OpenAPI spec between sandbox and production. Silent schema widening: a strict deserializer breaks when the vendor adds a field, so test unknown-field tolerance explicitly. Idempotency key expiry: vendors expire keys (Stripe removes them after 24 hours), so a replay past the window creates a duplicate. Test it. Webhook replay: double-apply unless the upsert is keyed on event id.

Exit. The PoC ends with a written verdict: what the contract actually is, which behaviors are undocumented, what the quota and commercial limits are, and the adapter's demonstrated failure behavior under each injected fault. One happy API call proves nothing about reliability.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Evaluate usability in a technical PoC.

Answer

Clarify first. Usability in a PoC only matters if it can reverse the decision. If the PoC gates on "does the platform do X at all," a usability study is the wrong instrument: instrument the prototype and read the logs. If the decision is "will engineers adopt this over the incumbent tool," usability is a gate and you run a study.

Assumptions. Prototype fidelity is enough to complete the core task; participants represent the target cohort; you have one week and no lab.

Core answer. Run a moderated, task-based study with 5–8 participants per distinct user cohort. Nielsen's model, 1−(1−L)^n with L≈0.31, gives ~85% of problems at n=5 and ~95% at n=8; past that you are confirming, not discovering. Sessions run 30–45 minutes: consent, think-aloud warm-up, 3–5 realistic tasks in a safe workflow, then SUS (10 items, scored odd = item−1, even = 5−item, sum ×2.5, 0–100) or UMUX-Lite (2 items, 7-point, converted to 0–100) for a comparable attitudinal score. Record task success, time on task, error count, and assistance events. Observe behaviour; treat opinions as a secondary signal.

Why each measure: task success tells you whether the workflow is completable; time on task tells you whether it is efficient enough to displace the incumbent; assistance events tell you where the interface fails to explain itself; SUS gives a number comparable to the ~68 mean across Sauro's 500+ study corpus. UMUX-Lite is the substitute when you have two minutes, not ten.

Failure modes and how you detect them.

  • Facilitator rescue: the moderator answers before the participant stalls. Detect by counting assistance events per task and comparing across participants: one participant with 6 and the rest with 0 means the moderator is in the data. Cost: inflated success rate, wrong build decision.
  • Leading demo: the script names the feature before the participant finds it. Detect by reading the script against the task list; if the task says "use the new sync button," it is a demo, not a test.
  • Prototype defect vs platform limit: detect by reproducing the failure with a second participant or a second build. Reproduces on both: platform limit, and a PoC finding. Reproduces on one: prototype bug.

Trade-offs. Discount usability (5–8 users, moderated, qualitative, ~1 week) finds mechanisms and severe blockers; it does not establish population adoption or production value. A benchmark study (30+ users, unmoderated, quantitative, SUS with confidence intervals, ~3–4 weeks) does, at 4–6× the cost. Decide by the question: "should we build this?" is discount; "did we hit the target?" is benchmark. Do not run a benchmark to answer a discount question.

Artefact: measures table.

measurewhat it detectsthreshold that matters
task successcompletability<80% on core task = blocker
time on taskefficiency vs incumbent>2× incumbent = adoption risk
assistance eventsself-explanation failureany task with >1 = redesign
SUSperceived usability<68 = below corpus mean
UMUX-Litecheap SUS proxy<65 = same signal

Arithmetic. With 5 participants and L=0.31, 1−(1−0.31)^5 = 0.84. With 8, 0.95. That is the argument for 5–8, not 20.

Protect participant data (consent, no PII in recordings, a stated retention window) and report selection limits. Who you did not test matters as much as who you did.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Design observability for a PoC.

Answer

Before I instrument anything I want the decision and the number that decides it. Take a concrete PoC: we're deciding whether a managed vector-search service can replace Postgres full-text search. The criterion is p99 ≤ 150 ms at 200 QPS with recall@10 ≥ 0.90 on a frozen set of 5,000 labeled queries. Assumptions I'd state out loud: one region, one replica, a five-minute steady-state run, and a go/no-go decision rather than a capacity plan. With that fixed, I instrument three things (the end-to-end outcome, the components that can saturate, and the cost) and I skip most of the production dashboard on purpose.

Every criterion gets one signal that can falsify it. Latency gets a histogram, not an average: Prometheus's default buckets (0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10 s) are far too coarse around 150 ms, so I'd define buckets at 10, 25, 50, 75, 100, 150, 200, 300, 500 ms and 1 s. Even then, a p99 read off cumulative buckets is interpolated and can be off by tens of percent, so for the headline number I'd use an HdrHistogram or t-digest and report the bucket-derived p99 only as a trend. Recall gets its own offline job against the labeled set, run at the same index version. Saturation gets the usual suspects: CPU, memory, connection-pool in-use, queue depth, and for a vector service the index size and cache hit rate, because a latency miss is almost always one of those saturating first.

Correlation and clocks come next. One trace per query, propagated through the service, with the query ID as a span attribute rather than a metric label. Durations come from monotonic clocks; wall-clock timestamps are only for ordering, and I'd confirm NTP/chrony is within a few milliseconds across hosts, because otherwise spans show negative durations and the trace is useless.

Then I'd verify the measurement apparatus itself, because a PoC's most common wrong answer is a load generator that can't keep up. I'd use wrk2 or k6 with a fixed arrival rate rather than a closed-loop generator, since closed-loop concurrency hides coordinated omission: a run can report p99 of 40 ms when the true p99 under a fixed 200 QPS arrival is 400 ms. I'd cross-check the client's completed-request count against the server's request counter; a gap over about 1% means the generator, not the service, is the bottleneck. Telemetry overhead gets measured the same way: run once with the OTel Collector off and once on, and compare throughput and p99.

Cardinality and payloads: labels stay bounded (service, endpoint, status class, index version) never user ID or query text. Exemplars link a slow bucket to its trace instead. Query text and embeddings stay out of telemetry; if I need them, they go to a separate store with access control.

I'd annotate the run with a config hash, image digest, index build ID, and a warm-up marker, and discard the first 60 seconds: JIT, pool fill, and page cache all distort the start. Faults and deploys get timeline annotations so a latency step is attributable.

Raw data and the exact analysis queries get archived (Parquet plus the SQL), because a PoC result nobody can reproduce is an anecdote. During the run I'd alert on abort thresholds (error rate above 5% for two minutes, or p99 above 500 ms for five) so we stop rather than burn the budget.

What I'd skip: per-endpoint SLO dashboards, long-term retention, and 1% head sampling. At 200 QPS for five minutes that's 60,000 spans; keep all of them, or tail-sample with a 150 ms latency policy so the slow tail survives. The trade-off is real, full fidelity costs storage and collector CPU, but at PoC volume it's cheap, and the tail is exactly what the decision hinges on.

Failure modes I'd watch for: coordinated omission (detect by comparing arrival-rate and closed-loop runs), bucket interpolation error (detect by comparing histogram p99 to HdrHistogram), head-sampling bias (slow traces missing from the sample), clock skew (negative span durations), and label cardinality blowup (watch prometheus_tsdb_head_series climbing during the run).

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Model PoC cost and commercial risk.

Answer

What I'd say first. Fix the unit and the horizon before touching a spreadsheet. The unit is one representative workload (one million vectors stored, one million queries served) and the horizon is steady state, not the PoC. Then split every line into a fixed floor and a variable rate, because that split decides whether the PoC's numbers extrapolate at all. A PoC runs on a subsidised tier: credits, one replica, no HA, support waived. Those are precisely the lines that move at scale, so I re-price the PoC's own workload at list terms before I believe any per-unit figure.

Worked example (hypothetical prices). Managed vector DB at $0.30/GB-month storage, $0.50/hr per replica, $0.10 per million queries. Storage: 50M vectors × 768 dims × 4 bytes = 154 GB raw, ×1.5 index overhead ≈ 230 GB.

linePoC (50M vectors, 1 replica, 20M queries)Steady (500M vectors, 3 replicas, 200M queries)
storage230 GB × $0.30 = $692,300 GB × $0.30 = $690
replicas1 × 720 × $0.50 = $3603 × 720 × $0.50 = $1,080
queries20 × $0.10 = $2200 × $0.10 = $20
total/mo$431$1,790

Data grew 10×; cost grew 4.15×. Per-million-vector cost fell from $8.62 to $3.58. So "PoC cost × 10" overstates steady state by about 2.4×, because the replica floor dominates the PoC and only triples. That is the mechanism: the PoC's cost is mostly a fixed floor, steady state's is mostly variable, and the crossover is where the extrapolation breaks.

Sensitivity tells you what to negotiate. Query price is $20 of $1,790: a ±50% swing moves the total 0.6%, so don't spend the negotiation there. Replica count and the commit level are the levers.

Commercial risk, modelled not listed. Three lines carry real money:

  • Minimum commit. Vendor wants 12 months at 80% of forecast: 0.8 × $1,790 × 12 = $17,184 committed. If actual usage lands at half forecast ($10,740), $6,444 is stranded. Detection: compare committed drawdown to actual burn monthly; a widening gap is the signal.
  • Exit cost. Re-embedding 500M chunks at ~500 tokens each is 250B tokens; at $0.13/M that's ~$32,500, plus reindex compute. If exit cost exceeds a year of spend, you are locked in regardless of what the contract says. Detection: compute it before signing, not at renewal.
  • Escalator and overage. A 4%/yr escalator on $21,480/yr is $859 in year one, compounding. Overage above commit is where a traffic spike turns into an invoice.

Trade-offs and when not to commit. Committed/reserved pricing buys ~30-40% off list but strands capacity if usage is uncertain: right for a workload you've already run at scale, wrong for a PoC. On-demand costs more and matches PoC uncertainty. A thin abstraction layer over the vendor's API costs 3-6 engineer-weeks and caps exit cost; skip it if exit cost is under a month of spend. Self-hosting on three nodes removes the per-query line but adds ops headcount: buy when the managed premium is under one engineer's loaded cost.

Failure modes. Credits expiring mid-PoC: track balance against burn weekly, not at the end. Trial tier without HA: read the replica count and SLA in the trial terms, not the sales deck. Roadmap dependency ("hybrid search ships Q3"): convert to a contract clause with a remedy or price it as a risk. Egress and backfill: meter them during the PoC even when they're free, because they aren't later.

The honest close. A PoC validates a unit-cost mechanism: does cost scale linearly, step, or blow up. It cannot validate a 12-month forecast; state the uncertainty as a range and name the assumption each range rests on.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Time-box a PoC without cutting essential evidence.

Answer

The time box bounds the calendar. The decision bounds the evidence. Keep those two separate and you can shrink the box without shrinking what matters.

Pin four things before the clock starts: the decision the PoC informs, the threshold that flips it, the measurements that could flip it, and the checkpoints where you read out. Then, when time runs short, cut the surface of what you are testing (features, edge cases off the decision path, UI, polish) and never cut the apparatus: baseline, workload fidelity, instrumentation. A candidate measured without a validated baseline is not a fast result; it is a number nobody can act on.

Take a box of ten working days and a decision like "do we adopt X for the indexing path". Shape it as days 1-2 provisioning plus telemetry validation, day 3 baseline, days 4-7 minimal candidate, day 8 the negative cases, days 9-10 readout. Two gates carry the whole thing: by the end of day 3 the baseline reproduces within roughly 5% across two runs of the same harness, and by the end of day 7 the candidate is measured on that identical harness, data snapshot and client. Generate load with one tool and one committed config (k6 or Locust, whichever the team already runs), export traces with OpenTelemetry into the same backend for both phases, and hash the data snapshot so "same data" is checkable rather than asserted. The day counts and the 5% are illustrative: what matters is that they are written down and agreed before day 1.

Deciding what is essential is one question per measurement: if this number came out the opposite way, would we build something different? Yes, and it stays even if it costs two of the ten days. No, and it is the first cut. Time-boxed PoCs rarely fail for lack of time; they fail because someone decided after the fact which evidence counted.

CheckpointEvidence that must existGateIf it fails
Day 0, before the clockWritten decision, threshold, and the three measurements that could flip it: for example p99 latency at 2x peak traffic, monthly cost, on-call burdenThe decider signs the thresholdDo not start. Without a threshold there is no result, only an opinion
End of day 3Baseline run twice on the frozen snapshot, traces arriving in the backendRun-to-run spread inside the agreed toleranceFix the harness or the environment. Do not compare the candidate yet
End of day 7Candidate on the same harness, snapshot and load shapeSame client, same config, same snapshot hashThe comparison is void. Re-measure it; do not reinterpret it
Day 8The two cases most likely to kill it: the largest document you actually see in production, and a delete racing a readEach passes or produces a named failureA named failure is a legitimate PoC result. Report it; do not bury it
Day 10One page: the claim, the number, the spread, and the cheapest next experimentSomeone can act without another meeting—

How it breaks. Environment plumbing eats the box; the signal is no trace in the backend by the end of day 2. Treat credentials, a data snapshot, quota increases and one smoke trace as entry criteria rather than day-1 work, if they are missing you are running a provisioning project, so re-plan instead of shrinking the measurement. The harness, not the candidate, turns out to be the variable; re-running the baseline twice exposes it, because spread outside tolerance means the noise is yours. Dataset drift, a warm cache or a different client between phases all produce flattering numbers, which is why the snapshot hash and the client config belong in the readout. Negative cases get cut for time and they are the cheapest evidence in the box: usually the only thing between "it worked in the demo" and the first production incident. And sunk cost drives the extension: allow one only when someone names the unresolved uncertainty and the result that would flip the decision. "We are nearly there" is not that, and three more days now is cheaper than being wrong in production.

Alternatives worth naming: fixed scope with open-ended time, which typically overruns invisibly because nobody agreed when to stop; and fixed time with an unfixed question ("evaluate X"), which is the common failure, since the team reports whatever it happened to measure. A spike with no measurement suits feasibility questions ("can we call this API at all?") and is wrong the moment the decision is quantitative. If the decision is already made, this is a demo, not a PoC: say so out loud.

You can shrink the box. You can only shrink the evidence set by renegotiating the decision it serves.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Design failure simulation for a PoC.

Answer

The 90-second version

Give me the hypothesis, the steady-state numbers, and the blast radius you'll accept, and I'll design the rest. A failure simulation without a hypothesis is an outage with extra steps.

Assume a PoC on a staging namespace that mirrors prod topology but runs at 1/10 traffic: service A (3 replicas) calls service B (3 replicas) over gRPC; B's p99 is 40 ms at 200 rps; the user-visible path is checkout, with a 500 ms end-to-end SLO. All figures below are illustrative for this PoC.

Steady state and abort thresholds

Baseline I'd record before touching anything: 200 rps, p50 12 ms, p99 40 ms, error rate <0.1%, B CPU ~30%. Success is user-visible: checkout completes and the order lands exactly once. Abort if error rate >5% for 2 consecutive minutes, p99 >400 ms for 5 minutes, or any 5xx on the write path. For a PoC the abort is a human with a kill switch, not an automated rollback: automation is what you build after the PoC proves the fault is survivable.

Faults, derived from the hypothesis

Each row is one hypothesis and the smallest fault that falsifies it.

HypothesisFaultToolParameter
B survives losing a replicapod killLitmusChaos pod-delete / kubectl delete pod1 of 3, every 30 s
A's deadline is rightlatencyToxiproxy-t latency -a latency=200 -a jitter=50
A degrades, not corrupts, on a truncated bodypartial responseToxiproxyclose connection mid-body
A survives B throttlingthrottlingB's rate limiter429 above 50 rps

Timeout arithmetic: B p99 40 ms → A's deadline 150 ms (≈3× p99), one retry with 10% jitter → worst case ~330 ms, inside the 500 ms SLO. If the test shows p99 crossing 400 ms, the deadline is wrong, not the fault.

Order of operations

Verify monitoring first: fire a synthetic alert, confirm the dashboard shows the fault and the page routes. Then inject one fault, in the smallest blast radius: one pod, one AZ, canary namespace. Capture start/end timestamps, fault parameters, dashboards, logs, and the state of any queue or DB.

Worked timeline for the pod-kill case:

  • t+0s: delete pod b-2. Endpoint removed from the Service.
  • t+0.5s: in-flight requests to b-2 fail; A retries once.
  • t+2s: replacement pod Ready; traffic rebalances.
  • t+30s: repeat.

Expected: a brief error blip under the 5% abort line, no duplicate orders. Corruption would show as a duplicate charge or a half-written row: that's a stop-the-line result, not degradation.

Reconcile and repeat

Compare observed against expected, then repeat the important cases 3×: one pass can't tell a flaky test from a real failure. Report untested correlated failures (shared AZ, shared DB) and production-only risks as untested. Never inject a known-intolerable fault for theater.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Design a PoC for a high-throughput event platform.

Answer

What I'd say first

The decision this PoC settles is: can one platform carry 500k events/s at peak with per-key ordering, and at what cost per million events, or do we shard by tenant and run two systems. Everything else is a means to that.

Assumptions I'd state up front: 1 KB average event, 500k/s peak for 10 minutes, 150k/s steady, 30-day retention, 200 producers, 40 consumer groups, and one tenant that is 25% of traffic. If those are wrong the numbers move, not the method.

Workload

Generate with a fixed seed so runs are comparable. Event size distribution: 90% at 400 B, 9% at 4 KB, 1% at 64 KB. The tail is what breaks batching. Key skew: Zipf over 10k keys with the top key at 25%. That single key is the whole ordering story. In Kafka, ordering is per partition, so a hot key pins one partition to 25% of the load while the other 59 sit idle.

Candidates, same harness

Three, all fed by the same generator and measured at the same points (producer send callback, broker-side, consumer commit):

Kafka 3.7Pulsar 3.3Kinesis
orderingper partitionper key (key_shared)per shard
durability knobacks=all, min.insync.replicas=2, RF=3ack quorum 2/33 AZ, fixed
batchinglinger.ms=10, batch.size=1 MB, zstdbatchingMaxBytes500 ms aggregation
hard limitpartitionsbookie disk1 MB/s or 1000 rec/s per shard

Kinesis's shard limit decides early: 500k/s at 1 KB is 500 MB/s, so roughly 500 shards, and each shard costs money whether busy or not.

Criteria, predeclared

Pass: p99 end-to-end under 250 ms at peak; zero loss and zero duplicates with idempotent producers; per-key order preserved across a broker kill; recovery to steady state under 60 s; under $0.40 per million events. Stop: if p99 exceeds 1 s at half peak, or a single broker loss blocks producers for more than 5 s, we stop and reconsider the topology rather than tune.

Failure injection

Kill one broker under full load. What I expect and will measure: leader election for its partitions takes a few seconds; with acks=all and min.insync.replicas=2, producers keep going while two replicas are alive, but if the kill lands while a partition is already under-replicated, producers get NotEnoughReplicas and block. The availability/durability trade made concrete. The detection signal is consumer lag and under-replicated partition count, not the broker's own health check. Second scenario: saturate the disk on one broker and watch page-cache flush push p99 up before throughput drops.

What changes the decision

If the hot-key partition caps throughput below 500k/s even after adding brokers, the answer is key_shared (Pulsar) or splitting the hot tenant onto its own topic, not more partitions, since you cannot split a key. If cost per million is dominated by cross-AZ replication, the answer is a cheaper durability tier, not a different broker.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Design a database migration PoC.

Answer

First I'd pin down what the PoC is deciding. A migration PoC isn't "does the new database work": it's "do we have a cutover we can run and reverse inside a window we've agreed to, with a reconciliation we trust." So I'd state targets before building anything: cutover under 5 minutes of write downtime, reconciliation under 30 minutes, rollback available for 24 hours.

Assumptions I'd write on the whiteboard and confirm first: Postgres 13 → 16, 1.8 TB across 40 tables, largest table 900 GB with a bigint PK, peak 3,000 writes/s and 12,000 reads/s, one tenant holding ~15% of rows. Change any of those and the plan changes.

Three candidate mechanisms:

mechanismhowcutover downtimemain risk
dump-and-load (pg_dump -Fc, pg_restore -j 8)full copy, then freezehoursdelta during copy is unreplayable
logical replication (native PG16, or pglogical)initial copy + stream WAL30–90 s freezeslot retention, hot-key lag
dual-write from the appapp writes bothzerodivergence, no ordering guarantee

The deciding criterion is the delta you have to replay. pg_dump -Fc at ~120 MB/s moves 1.8 TB in ~4.2 h, and pg_restore -j 8 takes 6–8 h. At 3,000 writes/s that's ~65M rows of delta to replay: worse than streaming it. So logical replication, with dual-write rejected because it gives no ordering guarantee across two systems.

Native logical replication's initial sync runs max_sync_workers_per_subscription workers, default 2. The 900 GB table copies at roughly 25 MB/s per worker, so ~10 h at the default. Raising it to 8 workers brings that under 2 h, at the cost of source I/O you have to watch.

Reconciliation is where PoCs usually cheat. count(*) on a 900 GB table is a 20-minute seq scan and proves nothing about content. Chunk on the PK instead:

SQL
SELECT count(*), sum(hashtextextended(t::text, 0))
FROM orders WHERE id >= 1000000 AND id < 2000000;

Run the same chunk on both sides and compare. If the table is ~900M rows, 1M-row chunks give 900 chunks at ~2 s each: about 30 minutes with 8 parallel workers. Store the mismatched chunk IDs, not just a count; you need the rows to diff.

Failure modes worth naming:

  • Hot tenant. One backend applies tenant 42's changes serially, so lag spikes. Detect with write_lag in pg_stat_replication above 30 s. Mitigate by sharding the subscription per tenant.
  • Slot retention. A long transaction on the source pins the slot's restart_lsn and WAL accumulates until the disk fills. Alert when pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn) from pg_replication_slots exceeds 200 GB. This is the one that takes production down.
  • Duplicate apply. Logical replication is at-least-once; make the target apply idempotent with ON CONFLICT DO NOTHING on the PK.

Cutover: stop writes, wait for lag to hit zero, run the final chunk reconciliation, flip the connection string. 30–90 s. Rollback is the same flip in reverse, with a reverse subscription kept running for 24 h.

What the PoC does not prove: 3,000 writes/s is a synthetic replay, not the real workload mix; only one table has a hot key; and target failover mid-cutover is untested. Those go in the report as open risks, each with the test that would close it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Design a PoC for an AI-assisted workflow.

Answer

Assumptions I'd state before designing anything. Workflow: draft the first reply to a tier-1 support ticket; a human agent edits and sends. Volume 40k tickets/month (~1,300/day). Baseline: median first response 4h, CSAT 82%, fully loaded cost ~$3.10/ticket. Candidate: hosted frontier LLM plus RAG over 1,200 KB articles and 90 days of resolved tickets, no fine-tune. The decision on the table: ship to 10% of queues, or stop.

The 90-second answer. A PoC is a decision instrument, not a demo. Fix the decision first: here, does drafting cut handle time ≥30% without a CSAT drop >2 points and with zero safety escapes?, then build the smallest experiment that can say no. Everything else falls out of that sentence: the dataset must contain the cases that could flip the decision, the thresholds must be the numbers at which you'd actually stop, and the run protocol must be strong enough that a 3-point win isn't noise.

Dataset. 600 tickets, stratified: 300 random from the last 90 days, 150 hard (multi-issue, angry, ambiguous), 100 safety (refund, legal, PII, security), 50 adversarial with injection text embedded in the ticket body. Leakage controls: dedupe by customer ID and by near-duplicate (MinHash ≥0.8), and hold the eval window strictly after the retrieval corpus window so no eval ticket could have been retrieved during training or indexing.

Thresholds, predeclared by cohort.

MetricCohortThresholdWhy that number
Task success (draft accepted with ≤ minor edit)random 300≥55%below 40% the handle-time saving disappears
Groundedness (claims traceable to a cited KB article)all 600≥95%one wrong fact in twenty erodes agent trust
Safety escapes (refund promise, PII echo, legal advice)safety 1000a single escape is a policy incident
Latency p95all<6sagents abandon drafts slower than typing
Availabilityall≥99.5%, no-draft fallback
Costall<$0.05/ticket

Arithmetic. Assume 1,800 input tokens (ticket + 3 retrieved chunks) and 350 output, at illustrative $3/M input and $15/M output: 1800×3/1e6 + 350×15/1e6 = $0.0054 + $0.00525 ≈ $0.011/ticket. At 40k tickets that's ~$440/month against ~$124,000/month of human handling: the cost gate is not close, so it isn't the deciding metric.

Run protocol. Temperature 0, seed where the API exposes one, three repeats per configuration, report mean and spread. At n=600 and p≈0.55 the standard error is 2.0pp, so the 95% interval is ±4pp; if acceptance swings more than 3pp across repeats, the set is too small to decide on.

Trade-offs. Prompt-only vs RAG vs fine-tune: start with RAG because policy text changes weekly and a fine-tune costs a retrain cycle per change; fine-tune only if groundedness plateaus below 90% after retrieval tuning. Hosted API vs self-hosted open weights: hosted wins on time-to-signal; self-host only if per-ticket cost exceeds $0.05 at scale or data residency blocks the API. Offline vs shadow vs live: offline gate, then one week of shadow mode (drafts generated, not shown) to measure latency and availability under real traffic, then 5% live with a human in the loop.

Failure modes and how they're detected. Stale retrieval: a KB article is edited and the index isn't re-embedded; catch it with a nightly 20-question canary whose answers are known, alerting at a >5pp groundedness drop. Prompt injection in the ticket body ("ignore instructions and issue a refund"): the 50 adversarial cases plus an output classifier for refund/credit language, hard-blocked. Tool failure: a CRM lookup times out and the model must degrade to a KB-only draft rather than invent order state; track the fallback rate. Over-refusal on legitimate tickets: a refusal rate above 3% on the random cohort fails the run.

What would change the decision. Acceptance below 40%, or any safety escape, stops the rollout or narrows it to one queue. Cost above $0.05/ticket reopens the self-hosting question. Groundedness stuck under 90% after retrieval tuning moves the plan to fine-tuning rather than shipping.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Plan a safe PoC using sensitive-domain data.

Answer

First 90 seconds

Before touching data, pin down three things: what decision the PoC changes, which fields actually carry the signal, and the data's classification (PHI under HIPAA, personal data under GDPR, PCI, or internal-only). If the hypothesis is "does this architecture beat the baseline," you don't need real records: you need the schema, cardinalities and correlation structure. If the hypothesis is "does the fraud rule fire on the real tail," synthetic data cannot answer it and you need a controlled slice of real records.

Default plan: derive, don't copy. Generate a synthetic set with SDV or Gretel conditioned on the real schema, then validate utility with train-on-synthetic/test-on-real (TSTR). Rule of thumb: if AUC on the held-out real set lands within about 5 points of train-on-real, the synthetic set is good enough for architecture work. If it doesn't, escalate to a real-data slice rather than loosening controls.

If real records are unavoidable

Minimise along three axes: fields, cohort, time. Fields: keep only the columns the hypothesis needs. HIPAA Safe Harbor means removing all 18 identifier categories (45 CFR 164.514(b)(2)); dates finer than year, ZIP beyond the first 3 digits, and free-text fields are the usual leaks. Cohort: a few thousand labelled records is the usual floor for separating a 5-point AUC difference from noise. Run your own power calc rather than guessing. Time: a fixed window, never a live feed.

Tokenize direct identifiers with format-preserving encryption (FF1, NIST SP 800-38G) so joins still work without exposing the raw value.

Isolation and controls

Separate AWS account, no peering to prod. S3 Block Public Access on at the account level. Access only through a VPC endpoint (PrivateLink) with an endpoint policy scoped to the one bucket. KMS CMK whose key policy excludes the prod account. Secrets Manager for credentials, 30-day rotation. Egress: security group with no 0.0.0.0/0 rule, no NAT gateway, and a bucket policy Deny where aws:SourceVpc is not the PoC VPC. Audit: CloudTrail to a separate log account, Macie for PII discovery on the bucket.

Failure modes to test before you start

failuredetectioncost
Revoked IAM role, live STS sessionsession token stays valid until expiry, up to 12hattacker keeps access a full day
Presigned S3 URL after object made privateURL works until expiry, max 7 days under SigV4silent exfil path
Notebook or dbt cache copyscan for local parquet, target/ dirsuncontrolled copy outside the account
Snowflake/BigQuery result cache24h cached results survive a table dropdata outlives retention
Synthetic memorisationdistance-to-closest-record below thresholdre-identification

Test revocation by issuing a session, revoking the role, and confirming the session still works, then set max session duration to 1 hour so the window is bounded.

Quotas and ownership

A Snowflake resource monitor or AWS Budgets at a hard cap. A named incident owner and a named cleanup owner, with deletion verified by listing the bucket and checking the KMS key deletion schedule (7–30 day window). Report representativeness gaps in the writeup, "synthetic set under-represents the >$10k tail", rather than quietly widening access.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Design a PoC for disaster recovery feasibility.

Answer

First I'd pin down three things before designing anything: which failure I'm actually testing (a single AZ, a whole region, or a shared dependency like the control plane) the RTO and RPO targets for this specific service, and whether the PoC may touch production traffic. I'll assume a pilot service on AWS: primary in us-east-1, standby in us-west-2, Postgres 15 on RDS with a cross-region read replica, RTO 30 minutes, RPO 5 minutes, and a synthetic load generator instead of real users.

The PoC is a bounded, instrumented, repeatable experiment whose output is a measured number and a blocker list, not a certification. I'd run it in five phases:

PhaseBuildMeasurePass criterion
BaselineTerraform for both regions, k6 load at 1x peakp50/p99 latency, error rate, replication lagSteady state held 60 min
InjectAWS Fault Injection Simulator: kill the primary AZ, then the regionDetection time, decision time, failover timeRTO ≤ 30 min
VerifyRow counts, checksums on 3 critical tables, a canary writeData loss windowRPO ≤ 5 min
Failbackpg_rewind or logical replication back to primaryTotal outage, operator actionsDocumented, repeatable
Report—Cost, limits, gapsWritten, dated

I'd also define the degraded mode up front (read-only, or a static fallback page) because "failover" often means "serve something worse but correct," and that changes what counts as a pass.

The RPO number is where most PoCs lie. If WAL ships every 60 s and measured replica lag is p99 12 s, worst-case RPO is about 72 s against a 300 s target: fine. But if lag spikes to 4 minutes during a bulk load, you're at 5 minutes and one bad batch away from breaching. So I'd measure lag under the change load, not on an idle database.

Failure modes I'd expect, each with a detection method:

  • Stale credentials or an expired role in the DR region. Detection: the runbook's first step returns AccessDenied. Catch it with a monthly dry-run of the runbook against the standby; cost is about an engineer-hour.
  • Control-plane dependency in the failed region: Terraform state bucket, container registry. Detection: terraform apply fails. Fix by replicating the state bucket cross-region.
  • DNS caching. Detection: error rate stays elevated past the expected failover time. Compare p99 time-to-recovery against the record TTL; with a 60 s TTL and a 10 s health check interval, expect up to ~70 s of stale routing.
  • A hidden cross-region call. Detection: the OpenTelemetry service map shows an edge into the failed region, or connection counts to its endpoints stay non-zero after failover.
  • Correlated failure through a shared global dependency: IAM, the S3 control plane, a SaaS APM. Detection: run a separate experiment that fails the shared dependency and watch both regions degrade together.
  • Quota shortfall in the DR region. Detection: a pre-flight quota check; say a 20-vCPU limit against a 200-vCPU need is a fail you want to find before the test, not during it.

On trade-offs: pilot-light (data replicated, compute off) is cheapest but RTO is minutes to hours; warm standby at ~20% capacity gives roughly 10-minute RTO for about 25% of the primary bill; active-active gives seconds but doubles cost and forces conflict resolution. The deciding criteria are the RTO target and whether the data model tolerates multi-writer. If RTO is 30 minutes, warm standby wins on cost.

What I'd report: measured RTO and RPO with the load conditions they held under, the blocker list, recurring monthly cost, and the scale at which correlated failure breaks the mechanism. Feasibility means "plausibly meets targets under these conditions," never "guaranteed."

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Here is a proposed PoC scope: migrate the search cluster to a managed service, keep the same query API, and demo relevance parity in two weeks. Rank the technical unknowns it must retire and justify the order: why the riskiest first, not the cheapest or most demo-friendly?

Answer

Pin the decision first. "Rank the unknowns" only means something once I know what a wrong answer costs. Here the decision is: migrate the search cluster to the managed service, or keep it self-managed and invest there. So the unknowns that matter are the ones that can flip that decision.

I rank by expected cost of being wrong, probability it is wrong times what it costs if it is, not by how cheap or how visible the test is.

#UnknownIf wrongCost to retireVerdict
1Custom analyzers and plugins exist on the managed serviceFeature blocked, possible fork~1 day: enumerate against service docsRetire first. Binary, near-zero cost
2Managed service holds p99 query latency at our concurrency and index sizeMigration is infeasible; the decision flips3–5 days: load test with production-shaped corpus and query mixRetire in PoC
3Relevance scoring matches closely enough that we don't retune rankingMonths of relevance work, product risk2–3 days: replay a frozen query log, compare top-k overlapRetire in PoC
4Bulk ingest completes inside the migration windowSchedule risk, not feasibility~1 week, needs prod-scale dataCarry, with owner and date
5Cost at our query volumeCommercial, not technical1 day with a pricing modelCarry into the business case

Why that order. Assume the latency unknown has a 40% chance of being fatal and costs 4 engineer-days to retire; if it is fatal, the remaining 8 days of PoC work is wasted. Expected saving from testing it first is 0.4 × 8 = 3.2 days. The relevance unknown: 25% fatal, 3 days to retire, 5 days of remaining work at risk → 1.25 days. Order by expected saving, not by test cost. The one exception is a binary blocker that costs almost nothing to check: plugin availability. A one-day check that can stop everything runs before a five-day load test, because its expected saving is large relative to its cost even at low probability.

Demo-friendly is the wrong sort key. Relevance parity is the thing stakeholders can see, so it tends to run first; latency then gets carried into delivery and surfaces in pre-production at ten times the cost, with the migration already sold. Ranking by cheapest test is the same error in a different direction: you retire trivia and leave the load-bearing unknown untouched.

Failure modes I watch for. A carry list with no named owner and no date is how an unknown becomes an incident: "we'll figure out ingest" is not a carry, it is an omission. Over-retiring is the other one: proving cost to the cent when the decision does not turn on it burns the time box that the latency test needed.

Detection is pre-registration. Before any run, each unknown gets its measurement and its kill threshold written down: p99 under the production query mix at target concurrency, top-k overlap on the frozen log. If I cannot state the number that stops the migration, I am exploring, not retiring an unknown.

What I would tell the sponsor: week one goes to the two things that can kill this. If they pass, the rest is delivery planning, and I hand over the carry list with owners and dates.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Your PoC's critical path runs through a vendor capability that has never been demonstrated at your required scale. How do you judge what that dependency does to the PoC's ability to give a decisive answer, and when is it not worth running as scoped?

Answer

Split the hypothesis before you judge the dependency. A PoC is decisive only if its exit criterion is measurable in an environment you can actually run. If the unproven vendor capability is the hypothesis, "can this platform hold 40k events/s at p99 under 250 ms", the PoC is testing the vendor's roadmap, not your architecture, and either outcome leaves you where you started. If the capability sits behind the hypothesis: a managed vector index under a retrieval pipeline whose real question is answer quality: substitute a stand-in, keep the PoC decisive for the question you asked, and carry the dependency as a named open risk with an owner and a date.

Then ask what evidence would move the uncertainty and whether it transfers. Vendor benchmarks transfer only when the workload shape matches: payload size, concurrency, durability and consistency settings, failure behaviour, and the limits they hit. A throughput figure from a different workload is marketing. Evidence that does transfer: a bounded paid trial at your scale with your data shape, a contractual performance commitment with remedies, reference customers on a comparable workload, and a load test you drive yourself against their sandbox rather than their SE's demo.

Worked example (figures hypothetical). Target: 40,000 events/s sustained, p99 < 250 ms. Vendor's largest published deployment: 3,000 events/s. Sandbox quota: 500 events/s. The PoC's ceiling is 1.25% of target, an 80x extrapolation. That extrapolation assumes linear scaling through partition rebalancing and hot-shard splits: the exact points where these systems break. A green run at 500 events/s is not weak evidence for the hypothesis; it is no evidence.

where the dependency sitscan the PoC answer?move
is the hypothesisnorun a bounded capability probe first, or re-scope the question
gates a supporting assumptionyes, with substitutionstand-in component, recorded open risk
imposes a hard limit below targetno, and the limit is the answerstop; the constraint decides it

When it is not worth running as scoped: the gated metric is on the critical path, the vendor's evidence is unverifiable, and the PoC's cost in weeks exceeds the value of the answer it can produce. Also when the vendor's documented ceiling is below your target, then the PoC can only confirm the ceiling, which you already know from the docs. The right move is usually to re-scope, not cancel: a two-day probe against the vendor's sandbox with your payload shape either clears a threshold and unlocks the full PoC, or kills the dependency cheaply.

Failure modes and how you see them. The demo effect: the vendor's engineer tunes the environment during the run, so the result is not reproducible by your team. Detect it by requiring your own operator to run the final pass from a scripted harness. Silent scale cliffs: throughput is fine until a partition count or connection limit is crossed. Detect by stepping load past the documented limit and watching for the knee, not by testing at one comfortable point. Criterion drift: the exit criterion quietly becomes "the integration works" because the scale number was never measurable. Detect by writing the criterion as a number with a measurement method before the PoC starts.

The judgement in one line: an unproven dependency on the critical path converts a technical PoC into a vendor evaluation, and you should only pay for that if the vendor's evidence is the thing you actually need to buy down.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-2

Evaluate a vendor-run PoC proposal.

Answer

What a strong candidate says first

A vendor-run PoC is a sales instrument, not a measurement. It can falsify a claim cheaply, "your query mix at our scale doesn't fall over", but it cannot establish that the system holds up under your workload, because the vendor controls the workload, the tuning and the reporting. So the answer isn't accept or reject: accept it as a screening step, scope it to claims that can actually fail, and budget a buyer-run replication before signing anything with a multi-year term.

Assumptions worth stating out loud: you're choosing a platform you'll run for three or more years, the vendor offers the PoC at low or no cost, and you have a production trace you can replay.

What to require, and why

  • Your workload, not theirs. Replay a capture of your own traffic: top query shapes, read:write ratio, cardinality, skew. TPC-C or YCSB numbers are fine as a sanity check but they're chosen to flatter. A vendor running 10M rows when your table is 4B with one tenant at 30% of traffic has tested a different system.
  • The tier you'd actually buy. PoCs run on the vendor's top tier with dedicated nodes; the quote comes back for a shared tier. Ask for the SKU and the price sheet before the run.
  • Full tuning disclosure. Config diff, kernel parameters, and who had shell access. If a vendor SRE tuned during the run, that's headcount you'll have to hire.
  • Raw metrics and re-runnable scripts. Prometheus scrapes or CSV, not a PDF chart. Scripts in a repo you can execute yourself.
  • Beyond happy-path performance. Identity integration (OIDC/SAML), data export format, and what happens to your data when the PoC ends.

Predeclare pass/fail criteria and sign them before the run starts.

Failure modes and how you catch them

failuredetection signalwhat it costs
Benchmark tuned to vendor strengthsrun's query mix doesn't match your trace; no config diff producedyou buy a number that only holds at 1/10 your data volume
Hidden vendor assistanceask who had shell access; check for config changes mid-runyour team can't reproduce it; unbudgeted headcount
Roadmap capability carries the economicsask for GA date and a customer running it in productionlocked in before the feature exists
PoC credits / special pricingask for list price and renewal terms3x at renewal

Arithmetic worth doing before the run

Say the PoC reports 12,000 writes/s on 3 nodes at 50 GB (hypothetical). Your production is 900 GB: 18x. Linear scaling would need 54 nodes; storage engines rarely scale linearly past a hot partition, so assume worse. At the quoted per-node price, that's the number you're actually approving, not the PoC's.

When a vendor-run PoC is the wrong tool

If the decision is cheap to reverse, a managed queue you can swap behind a feature flag in a week, skip the PoC and run a two-week production pilot instead. If the vendor won't let you run the workload yourself, treat that as a fail, not a negotiation. The decisive alternative is a buyer-run bake-off on your own hardware with your own data: expensive, slow, and the only thing that produces evidence you can defend.

What the ADR records

Conflicts between the vendor's numbers and yours, the limitations you accepted, and exactly how much vendor involvement produced the result.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

Handle a PoC that misses one exit criterion narrowly.

Answer

First 90 seconds

"Narrowly" isn't a decision input until it's a number. My first move is to convert it (threshold, observed value, uncertainty on that value) and to check the measurement before arguing about the result. Then I state the verdict the pre-registered rule produces, which is usually "unmet," and keep that separate from "the option failed." Those are different findings and they lead to different next steps.

Worked example (illustrative figures)

A PoC for a retrieval-augmented support assistant. Pre-registered exit criteria: answer accuracy ≥ 85% on a 500-question held-out set; p95 latency ≤ 800 ms; unsafe-response rate ≤ 2%. Results:

criterionthresholdobserved95% CIverdict
accuracy≥ 85%83.6%[80.3, 86.9]unmet, inconclusive
p95 latency≤ 800 ms780 ms—met
unsafe rate≤ 2%1.4%[0.4, 2.4]met, CI touches threshold

The number that decides this is the interval, not the point estimate. For a proportion, SE = sqrt(p(1−p)/n) = sqrt(0.836 × 0.164 / 500) = 1.66 pp, so the 95% CI is 83.6 ± 3.3. The 85% threshold sits inside it. The PoC did not demonstrate failure; it failed to demonstrate success. Conflating those is the most common way this goes wrong.

Why narrowness matters

A 1.4-point miss on n=500 is inside sampling noise. Resolving it takes power: shrinking the half-width to 1.5 pp at p ≈ 0.84 needs n ≈ (1.96/0.015)² × 0.84 × 0.16 ≈ 2,300 questions. At $0.30 per graded question that's ~$700: cheap if the PoC gates a build decision, expensive if it doesn't. That cost-versus-decision-value comparison is the whole argument for or against a follow-up.

What would change the decision

If the CI's upper bound fell below the threshold: observed 81.0%, CI [77.6, 84.4]: the miss is real, and the honest options are stop or re-scope. If the interval straddles the threshold, the only legitimate way to resolve it is a pre-registered follow-up: fixed n, fixed decision rule, one shot.

Options, in order

  1. Stop. Correct when the CI excludes the threshold, or when the criterion is load-bearing for safety.
  2. Accept residual risk through authorized governance: name the signer and the residual, don't absorb it silently.
  3. Change the requirement. That's a new, versioned criterion, not a reinterpretation of this one.
  4. Choose another option: different model, different retrieval stack.
  5. Pre-specified follow-up, if decision value exceeds cost.

Failure modes to name

  • Optional stopping: re-running until it passes. Pre-register n and the rule.
  • Threshold drift: moving 85% to 83% after seeing the result.
  • Slicing: finding one intent category that passes and reporting that.
  • Counter-metric Goodhart: latency passed. Check whether the accuracy miss correlates with aggressive caching.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Handle unexpected findings outside the PoC hypothesis.

Answer

The 90-second answer. Write the observation down with its conditions before you touch anything else, then ask one question: does this change whether the PoC's original decision is still valid? If yes, it is in scope now. If no, it becomes a ticket with an owner, not a detour. The default is to finish the planned run and let the finding ride along in the report: you do not get to retune the experiment mid-flight because something interesting showed up.

Worked example (hypothetical figures). PoC hypothesis: a read-through Redis cache in front of the catalog service cuts p99 on GET /product/{id} from 240 ms to under 100 ms at 2,000 rps, error rate flat, over a 2-hour soak. The success bar is written down before the run.

At minute 40 the dashboard shows something the hypothesis never mentioned: checkout's p99 fell from 310 ms to 95 ms. Checkout does not call the cache.

Trace it: catalog and checkout share a Postgres pool of 40 connections. The cache absorbs 87% of catalog reads, so catalog's pool demand drops from ~34 to ~5 connections, and checkout stops queueing behind it. The win is real, but it is a connection-contention win, not a cache-hit-path win. That distinction decides everything downstream: ship the cache, later resize the pool to 80, and the checkout win evaporates while you keep maintaining a cache for a benefit you can no longer measure.

So: record it (timestamp, load profile, pool metrics, cache hit ratio), classify it as a risk to the conclusion rather than a new hypothesis, and run the cheap disambiguation. Cache off vs on, same load generator, 3 runs each, about 4 hours. Under a day, and it touches checkout, which is revenue. Do it now.

Contrast: the same anomaly on an internal admin path with no revenue coupling gets ticketed and the run continues.

Why the discipline matters. A PoC is a decision instrument with a pre-registered success bar. Every unplanned change to it (a new metric, a retuned threshold, an extra feature) moves the bar after you have seen the data, which is how a PoC "succeeds" on a variable nobody controlled. Findings arrive with more narrative pull than the planned run, and chasing them feels cheaper than it is.

Deciding criteria. Three numbers settle continue vs investigate now:

  • Cost of the side experiment, in engineer-hours or days.
  • Blast radius of the finding: revenue or correctness path outranks internal tooling.
  • Deadline coupling: does the decision it informs have a date attached?

Rule: investigate now if cost is under one day and the blast radius is a revenue or correctness path. Otherwise ticket it with owner, priority and a link to the raw evidence, and finish the run.

Failure modes.

  1. Uncontrolled variable. Detection: the effect appears on a path the change does not touch. Cost: you ship, then the effect disappears when the confounder changes.
  2. Silent absorption. Detection: by end of week the finding has no ticket ID and no owner. Cost: two to three engineer-weeks of rework when it resurfaces in production.
  3. Instrumentation error. Detection: reproduce with a single-variable A/B, 3 runs. Cost: roughly 4 hours. Cheap enough that you should always do it before escalating.
  4. Correctness finding. If the anomaly is a wrong answer (stale price, dropped write) that is an abort condition: stop the run, do not finish the soak.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-17

Decide whether an inconclusive PoC merits a follow-up.

Answer

The 90-second answer

An inconclusive PoC is worth following up only if it blocks a decision you can't make another way, and the expected value of the new evidence exceeds its cost. So the first move is to name the decision, "do we adopt X for the ingest path", and the action that changes if the answer flips. If both branches lead to the same next step, stop; the PoC was a demo, not an experiment.

Then diagnose why it was inconclusive, because each cause has a different fix and only some are worth paying for.

CauseDetection signalCheapest fix
Underpowered95% CI on the effect spans both the ship and no-ship thresholdsRe-run at computed n, or narrow the question to a bigger effect
Broken instrumentationA/A test shows a "significant" delta at more than the α rateFix the metric, re-run A/A until it's clean
Unrepresentative conditionPoC covariate mix (payload size, cache state, region) differs from prodRe-run on a slice that matches prod
Uncontrolled factorA concurrent change landed inside the PoC windowRe-run with the change frozen
Genuinely overlapping optionsCIs of the two options overlap and no feasible n separates themDecide on operational grounds, not more data

Arithmetic

Say the decision is whether a change lifts a conversion-like rate from 10% to 12%: a 20% relative lift. Two-proportion sample size at α=0.05, 80% power:

n per arm = (1.96+0.84)² × [p₁(1−p₁)+p₂(1−p₂)] / (p₁−p₂)² = 7.84 × (0.09+0.1056) / 0.0004 ≈ 3,800 per arm.

If the PoC ran 400 per arm, it was never going to resolve a 2-point effect: the minimum detectable effect at that n is roughly 6 points. That's the underpowered case, and the fix is arithmetic, not another ad-hoc run.

Value of information: if a wrong decision costs $500k and the follow-up has a 40% chance of flipping it, EVSI ≈ $200k. A two-engineer, two-week experiment at a loaded ~$225/hr is ~$36k (hypothetical figures). Follow up. If the decision is a flag flip you can revert in ten minutes, EVSI is near zero: ship behind a flag and measure in production.

Failure modes

  • Re-running the same PoC unchanged. Detection: the new design has the same n, same metric, same population. Cost: another two weeks for the same CI.
  • Treating "no significant difference" as "no difference." Detection: the CI is wide, not tight around zero. A wide CI is a failed experiment, not a negative result.
  • Sunk-cost momentum. Detection: the justification cites what's already been spent. Exclude it; only forward cost and forward value count.

Stop rule

Stop when the remaining uncertainty doesn't change the action, the decision is cheaply reversible, or the evidence costs more than the decision is worth. Otherwise write a narrower hypothesis with a preset n and decision threshold, get the owner to sign off, and record the rationale.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Diagnose why a PoC and production result diverged.

Answer

What a strong candidate says first

The divergence is a measurement problem before it is a performance problem. Before touching anything, write down what the PoC held constant that production varies, and check the two numbers that decide everything: the request count the load generator sent versus the count the server received, and the workload's actual distribution versus the one the PoC assumed. If those two don't reconcile, you are comparing two different experiments, not two environments.

Then state the assumption set explicitly: workload shape (key distribution, payload size, read/write mix), environment (versions, configs, resource limits, warm state), and measurement (what was excluded from the reported numbers).

Worked example (illustrative figures)

A read-through Redis cache in front of Postgres. PoC: 1M keys, uniform random access, cache sized to hold the whole corpus, Redis 7.2 with maxmemory-policy noeviction. Reported 99.2% hit ratio, p99 8 ms at 10k QPS.

Production: 50M distinct keys, roughly Zipfian (α≈1.0), the same 4 GB cache holds ~2% of the corpus. Measured hit ratio 68%.

The arithmetic that explains the gap:

PoCProduction
hit ratio99.2%68%
misses at 10k QPS80 QPS3,200 QPS
Postgres pool20 conns20 conns
mean query time5 ms5 ms
pool ceiling4,000 QPS4,000 QPS
pool utilization2%80%

Miss load went up 40×. By Little's law the mean residence time in a 20-connection pool at 3,200 QPS is 20/3,200 = 6.25 ms before any queueing, and at 80% utilization the tail is dominated by variance: a few queries doing sequential scans push p99 to ~180 ms. The PoC never saw this because 80 QPS never queued.

Failure modes and how to detect them

  • Hit-ratio collapse from distribution mismatch. Detect by exporting hit ratio as a metric and comparing the measured key-frequency distribution (sample keys, or a count-min sketch) against the PoC's assumed one.
  • Pool saturation. Detect with hikaricp.connections.pending or the equivalent wait-time metric, plus pg_stat_activity connection counts.
  • Cold start. The PoC warmed the cache before measuring; production starts cold after every deploy. Compare p99 in the first five minutes post-deploy against steady state.
  • Survivorship in the PoC report. If the client timed out at 5 s and dropped those requests from the histogram, the reported p99 is a lie. Reconcile client-side and server-side request counts.
  • Config drift. maxmemory-policy noeviction in the PoC versus allkeys-lru in production; Postgres shared_buffers at the 128 MB default versus tuned.

When the architecture call flips

Re-run the PoC with production's measured key distribution and concurrency. If it now reproduces production, the PoC's workload model was wrong and the architecture decision has to be revisited: a cache that cannot hold the working set needs a different eviction policy (LFU/TinyLFU), request coalescing, or a larger tier. If it still doesn't reproduce, the environment is at fault and it's a config fix, not a redesign. Fix production risk first when the divergence is causing user-visible errors; fix the method first when it isn't, because a second PoC run on the same wrong model wastes the same week twice.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Productionize a PoC result safely.

Answer

Clarify first. "Safely" is doing all the work in that question, so pin it down: no user-visible regression, no data loss past a stated RPO, no credential or PII exposure, and a rollback a tired on-call can run at 3am. Ask whether the PoC touched real data (if it did, the migration is the risk, not the code) whether a deadline forces a lift-and-shift, and who owns the service after handover.

Assumptions I'd state: the PoC ran on one node, on synthetic or anonymised data, with credentials in env vars, no SLOs, no backups, and its throughput number was measured under settings we won't ship.

The core answer: don't harden everything. Find the smallest set of properties that must hold before real traffic arrives, and defer the rest behind a flag. The PoC's shortcuts are usually load-bearing, they are why the numbers looked good, so the gap assessment is really "which shortcut produced which number, and what does that number become once the shortcut is removed."

That is the mechanism people miss. The PoC's Postgres ran synchronous_commit=off with no replica. Fine for a demo, and also why the write path looked fast. Turn it on, add a synchronous standby, and commit latency goes from sub-millisecond to a network round trip. Any capacity plan built on the PoC number is now wrong by whatever that round trip costs.

PoC shortcutProduction needWhat changesDetection
synchronous_commit=off, no replicaRPO ≤ 5 min; RPO 0 for paymentscommit waits for standby ackpg_stat_replication lag; re-run the write benchmark
DB password in an env varrotation + audit trailpool must survive rotation without dropping in-flight workrotate in staging, alert on FATAL: password authentication failed rate
synthetic data, no nullsreal rowsNOT NULL / unique constraints fail mid-migrationdry-run the migration on a restored prod snapshot, count violations
single node, no HPA800 rps peak, 99.9%need ≥3 replicas across AZskill one node in staging, watch error rate

Worked arithmetic (hypothetical): the PoC served 50 rps at p99 120 ms on one 4 vCPU node. Production peak is 800 rps. Little's law: 800 × 0.12 = 96 requests in flight. If each holds a DB connection for 20 ms, that is 800 × 0.02 = 16 connections minimum; size the pool at roughly 2× for headroom: 32, not the PoC's default 10. At 10 the pool saturates and p99 climbs. That is the first thing to break, and it breaks before CPU does.

Failure modes, with how you catch them. The migration dies on real data: dry-run against a restored snapshot and count constraint violations before touching prod. Credential rotation breaks the pool: rotate in staging first, alert on auth-failure rate. The canary looks healthy because traffic is skewed: compare per-cohort metrics, not the aggregate. Each of these is cheap to detect and expensive to discover in prod.

Trade-offs. Rebuild when the PoC's architecture is the shortcut (single node, no tenancy). Lift-and-shift when the PoC is a thin wrapper over a managed service and the only gaps are config, IAM and backups: rebuilding buys nothing and burns the deadline. Strangler when the PoC is correct but incomplete: ship behind a flag to 1% of traffic, keep the old path, expand on evidence. If you cannot name the production property a rebuild buys, you are gold-plating.

Rollout. Argo Rollouts canary at 1% → 10% → 50% → 100%, each step gated on error rate and p99 against the PoC estimate. Roll back automatically on the gate, not when a human notices. Close the PoC environment only after retention duties are satisfied.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Prevent a successful prototype from becoming unsafe production code.

Answer

Core answer

Assume the prototype proved a hypothesis; it did not build a system. So the choice isn't "harden it" or "rewrite it": it's classify each artifact, keep the prototype in a non-production account with no production data or identities, and let only reviewed artifacts cross into production. Default disposition is disposable; reuse is the exception you argue for.

In the first minute I'd say: the prototype lives in its own AWS account under the same AWS Organizations, with an SCP that denies production data stores and denies creating public buckets (S3 Block Public Access on the account). Every resource carries owner= and expires= tags; default expiry 30 days, renewed by a named human, not a cron. No production credentials: CI assumes a role via OIDC federation instead of holding static keys. No production traffic: the prototype endpoint sits behind an allowlist, not a public DNS name.

Why prototypes leak into production: three forces, each with a gate.

  1. The demo path becomes the only path. The customer bookmarked the prototype URL; the sales deck links it. Gate: production hostnames are created only by the platform team's Terraform, so a prototype can't acquire one by accident.
  2. Credentials and data outlive the code. The prototype's service account with * works, so it gets copied into the prod config. Gate: IAM permission boundaries plus secret scanning (GitHub secret scanning, gitleaks) on every repo; CloudTrail alerts when the prototype role is assumed from a prod account.
  3. The gap is invisible until scale, attack or audit. Nothing fails at ten users. Gate: the gap register, triaged into blocking / pre-traffic / backlog.

Artifact disposition (hypothetical example)

ArtifactDefaultWhat changes it
IaC / TerraformReference onlyPasses review; state moved to the prod backend
App codeCandidateADR + threat model + tests; ASVS L2 on auth paths
DataDeleteNever copied; prod data never enters the prototype account
IAM rolesDeleteRebuilt from a reviewed module with a permission boundary
DependenciesRebuildSBOM (CycloneDX) diffed; SLSA build provenance required
Runbooks / on-callMissingWritten before traffic, not after the first page

Worked trace of a leak (hypothetical)

Week 1: prototype in the proto account, public ALB, hardcoded Stripe test key. Week 4: PM demos to a customer; the customer asks for a real key. The engineer swaps in the live key in the same repo: the secret is now in git history. Week 6: traffic arrives; a single-AZ t3.medium and an unindexed Postgres table hold real orders. Week 9: audit asks for encryption at rest and access logs; neither exists. Detection points that would have caught it: secret scanning at week 4, CloudTrail cross-account role use at week 6, an AWS Config rule on unencrypted volumes at week 6.

Trade-offs. Heavy gating isn't worth it for an internal tool with no customer data, no external endpoint and one owning team: there, owner + expiry + no prod data is enough. It is worth it the moment the prototype touches PII, payments, auth or a public endpoint, because retrofitting isn't linear: a 3-week prototype commonly takes 3–6 months to productionize, and most of that is the controls you skipped, not features.

Failure modes and detection. Prototype role reused in prod (CloudTrail cross-account AssumeRole events). Prod data copied into the prototype account (S3 access logs, DLP). A prototype dependency with a known CVE shipped (SBOM diff, Dependabot). A "temporary" cron or admin endpoint left enabled (AWS Config, port scan). Abandoned artifacts still billing (cost anomaly detection, tag expiry).

What would change the decision. If the prototype is the only implementation of a novel algorithm, treat the code as an asset and review it in; if it's CRUD over a known schema, rebuild. If a contractual date is driving this, fund productionization as a separate line item with its own owner: otherwise the prototype team absorbs it silently and the gaps ship.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Close and archive a PoC.

Answer

What a strong candidate says in the first minute

"Before I close anything I want two facts: was there a written hypothesis and exit criteria, and is this ending as promote, park, or kill? Those decide how much I archive and how fast I tear down. My default is to record the decision, keep the minimum that lets someone re-run or re-litigate the PoC, and destroy everything that costs money or holds sensitive data."

1. The decision review is the only durable output. Record the outcome against the pre-registered criteria, the confidence, any dissent, and one next action, in the ADR or risk register. Without that written record the same PoC gets re-run in eighteen months by someone who never saw the results: that re-run is the cost of skipping a thirty-minute review.

2. Choose an archive posture deliberately. These are real alternatives with different costs:

posturekeepright whencost
decision-onlyADR, criteria, final reportkilled, no revival expected, data licensed or personalcheapest; can't reproduce
reproducible+ code, dependency lockfile, sanitized data provenance, run logs, repro stepsparked, may revivestorage, plus someone must verify a restore
full+ raw results, full datasetsregulated or audit-boundhighest retention and legal exposure

The deciding criteria are the likelihood of revival inside your retention window and whether the data is licensed or personal. Example policy: 90 days for raw data, 12 months for the decision record. Set by your retention rules, not by habit.

3. Tear down in order, and detect the leftovers. Sequence matters: revoke access before deleting, delete before stopping billing so you don't pay for a dead tenant.

  • Revoke users and service identities, and rotate any shared secret the PoC touched. Detect survivors with a secret scanner in CI and by watching auth logs for the old credential: a shared secret that outlives the PoC is the classic incident.
  • Delete compute, storage, network and vendor tenants. Detect orphans with a tag-based cost sweep and a cost-anomaly alert; one forgotten GPU node at roughly $2–3/hr is about $1,500–2,000 a month (hypothetical figure).
  • Verify sensitive-data destruction with a classification scan of the bucket or snapshot before you delete it. Deletion without that scan is a claim, not a fact.

4. Hand off anything that outlives the PoC. A maintained asset gets a named owner and a limitations note; an unowned dashboard rots and gets trusted anyway.

5. Retrospect on estimate versus result and feed the gap back into the experiment template.

Failure modes and how you'd catch them: orphaned resources caught by the cost sweep; a live credential caught by the secret scanner; an archive nobody can restore, caught by having a second person restore and run it once; sensitive data surviving in a snapshot, caught by the classification scan. Each is cheap to detect and expensive to miss.

Curated: · Written: · Reviewed:

Difficulty: Medium