Library

Volume 6 · Production Experience — GenAI War Stories

Notebook
Sign in

Section 10

Production GenAI War Stories — Interview Q&A Bank

7,254 words · about 33 min

These are first-person production narratives for war-story interview questions. Each one is written the way you’d actually tell it in an onsite loop: specific numbers, specific root causes, specific fixes.

10.1 Cost & Scaling Incidents

Q: Describe a time your GenAI system’s cost went out of control — what happened and how did you fix it? A: About six weeks after we launched an internal support-ticket summarizer, our monthly LLM spend jumped from roughly $8,200 to $41,000 in a single billing cycle. I pulled the usage dashboard first and saw token volume had gone up almost 5x while ticket volume was flat. I traced it to a retry wrapper a teammate added around the API call — on a 429 or timeout it retried up to 5 times with the full conversation history re-sent each time, and it had no jitter, so during a provider-side slowdown we were hammering the endpoint and paying for every failed attempt. On top of that, we were sending the entire ticket thread (sometimes 40+ messages) as context on every single call instead of just the delta since the last summary. I fixed it two ways: capped retries to 2 with exponential backoff and jitter, and switched to an incremental summarization pattern where we only sent the new messages plus a compact running summary, cutting average input tokens per call from about 6,000 to 900. I also added a per-team daily token budget with a Slack alert at 80% utilization. Spend dropped to about $9,600 the next month — actually below baseline because of the incremental summarization — and stayed flat as volume grew 3x over the next two quarters. The lesson I took away was that retry logic and context-window growth are the two silent cost killers nobody budgets for at POC time.

Q: Tell me about a time you had to scale a vector database past what it was originally sized for. A: Our knowledge base started at about 400,000 chunks in a single-node pgvector instance backing a 384-dim embedding model, and query latency was fine at p95 of 180ms. Over five months we ingested a much larger document set and crossed 6.8 million chunks. Query p95 latency crept up to 2.4 seconds and we started seeing connection pool exhaustion during peak hours because queries were taking so long that connections backed up. I first tried tuning the IVFFlat index lists parameter, which bought us maybe 15% back, not enough. The real fix was migrating to a dedicated vector store with HNSW indexing and horizontal sharding by document source — we split into 4 shards based on a hash of the source system ID, ran a fan-out query with a merge-and-rerank step at the application layer. That took p95 back down to 220ms at the new scale. The migration itself took about three weeks including a dual-write period where we wrote to both old and new stores for 10 days to validate parity before cutting over reads. We also learned to pre-provision for 10x current scale after that, not 2x, because ingestion volume from new data sources is almost impossible to forecast accurately.

Q: Walk me through a time LLM provider rate limits or quota exhaustion caused a production outage. A: We had a Friday afternoon incident where our RAG-based customer-facing chatbot started returning 429s to about 30% of users over a 40-minute window. It was Black-Friday-adjacent traffic, roughly 2.3x our normal QPS, and we were on a shared tier-3 rate limit of 4,000 requests per minute with the provider. Our load balancer had no awareness of the provider’s rate limit at all — it just forwarded traffic. On-call got paged by our error-rate alert (5xx rate crossed 5% threshold), and within about 8 minutes I confirmed via provider status and our own logs that we were getting throttled, not seeing a provider outage. Immediate mitigation was enabling a request queue with a token-bucket limiter set just under our contracted RPM, so requests queued instead of failing outright, with a 3-second max queue wait before falling back to a cached FAQ response for common queries. That cut visible errors to near zero within 10 minutes of deploying the limiter. Root cause fix afterward was two-fold: we negotiated a higher quota tier with the provider given our growth trajectory, and we built a second-provider fallback so that if primary-provider latency or error rate crossed a threshold for more than 30 seconds, we’d route new requests to a backup model. We tested that failover path in a game day the following month and it cut over in about 12 seconds during a simulated outage.

10.2 Quality, Hallucination & Evaluation Failures

Q: Tell me about a time your RAG system gave a confidently wrong answer in production — how did you find out and what did you do? A: A user asked our internal policy assistant about the maximum reimbursable amount for a specific expense category, and it answered with a dollar figure that sounded completely plausible but was actually from a superseded policy doc that hadn’t been removed from the index. We found out because the user acted on it, submitted an expense claim, and finance flagged the discrepancy — that’s the embarrassing part, we didn’t catch it ourselves first. I pulled the trace for that request and saw the retriever had pulled three chunks, two current and one from a policy doc that had been replaced eight months earlier but never deleted from the vector store, and the generation model just blended them without any indication of which was authoritative. There was no recency or version metadata being used in retrieval or reranking at all. The fix had three parts: we added an effective-date and superseded-by field to document metadata and filtered stale docs out at ingestion going forward, we ran a one-time audit that found 340 stale documents still in the index (about 4% of the corpus), and we added a citation requirement so every answer had to show its source doc and date, which by itself cut this class of error because users could self-verify. We also added an automated staleness check that runs weekly and flags any indexed doc whose source has been modified or deleted. That incident is why I’m now religious about document lifecycle management being part of the RAG architecture from day one, not an afterthought.

Q: Describe a hallucination incident that made it past your evaluation pipeline into production. Why did eval miss it, and what did you change? A: We shipped a change to our prompt template intended to make answers more concise, and it passed our eval suite of 150 golden Q&A pairs at 94% pass rate, basically unchanged from the prior version’s 95%. Within two days, support tickets came in about the assistant fabricating API parameter names that didn’t exist — it was answering technical questions with syntactically plausible but nonexistent function signatures. Our eval set simply didn’t have enough coverage of that query category; it was heavy on factual lookup questions and light on “generate example code” style questions, which was maybe 8% of real traffic but essentially 0% of our eval set. I did a manual review of 50 recent production transcripts and found the hallucination rate on code-generation queries had gone from about 3% to 22% with the new prompt, because the “be concise” instruction was causing the model to skip its usual step of grounding examples in retrieved API docs and just pattern-match from parametric memory. We rolled the prompt back same day. Then we rebuilt the eval set to be traffic-weighted — sampling 500 real anonymized queries stratified by category instead of hand-picking golden examples — and added a specific hallucination-detection check using a separate LLM-as-judge pass that verifies every code symbol mentioned in an answer actually appears in the retrieved context. That judge check alone catches about 15 regressions a quarter now before they ship.

Q: Give me an example of an evaluation pipeline gap that let a quality regression ship to production. A: We had an eval pipeline that ran offline against a static test set before every prompt or model change, and it gave us a single aggregate accuracy score. A model version upgrade from the provider — same model family, minor version bump — shipped after passing eval at 91% versus the prior 90%, so it looked like a slight improvement, no alarms. Within a week, a specific customer segment, non-English queries, roughly 12% of our traffic, started getting noticeably worse answers, and we only noticed because NPS scores for that segment tanked over two weeks and someone on CS raised it. When I dug in, the aggregate number had masked a segment-level regression: performance on English queries actually improved from 89% to 94%, but non-English performance dropped from 93% to 79%, and it just averaged out. The gap was that our eval dashboard only ever showed one blended number, with no slicing by language, query type, or user segment. Fix was building a segmented eval report that broke results out by at least language, query category, and response length, with automated regression alerts if any segment dropped more than 3 points even if the aggregate held steady. We also added a canary rollout step after that — any model or prompt change now goes to 5% of traffic for 48 hours with segment-level monitoring before full rollout, which would have caught this in under two days instead of two weeks.

Q: Tell me about a time users lost trust in a GenAI feature and you had to win it back. A: We launched an AI-drafted email reply feature and adoption started strong, about 35% of eligible users trying it in week one. By week three, daily active usage had fallen to under 8%. I interviewed six heavy users who’d stopped, and the pattern was that the drafts were subtly wrong often enough — wrong tone, or referencing the wrong deal name pulled from a similar-looking record — that people stopped trusting it enough to even proofread, they just wrote from scratch. The core issue was our entity resolution: when two accounts had similar names, our retrieval sometimes pulled context from the wrong one, maybe 4% of drafts, but that 4% was enough to poison trust in the other 96%. We fixed the entity matching to require an exact account ID match rather than fuzzy name matching, which eliminated that error class. But more important for trust recovery was adding a visible confidence indicator and always showing which source records were used for the draft, so users could verify at a glance instead of having to guess. We also did a re-launch communication explicitly acknowledging the earlier issue and what we’d fixed, rather than silently patching it. Usage climbed back to 31% over the following month and stabilized around 40% after a quarter, higher than original peak, which taught me that trust repair needs both a real fix and transparent communication about the fix — silently patching bugs in an AI feature reads as evasive to users who already got burned.

10.3 Latency & Performance Incidents

Q: Walk me through a time latency was fine in your POC but degraded badly in production. How did you diagnose and fix it? A: In the proof of concept, our document Q&A assistant had p95 latency around 1.8 seconds with a handful of testers. Three weeks after general rollout to about 2,000 employees, p95 was sitting at 7.5 seconds and we had a steady stream of complaints. I started with distributed tracing across the request path — retrieval, reranking, generation, and a PII-redaction step — and found that generation itself hadn’t changed much, still around 2 seconds, but the reranking step had gone from 200ms to nearly 4 seconds. In the POC we reranked the top 20 retrieved candidates; in production, someone had bumped retrieval top-k to 100 to “improve recall” without realizing the cross-encoder reranker’s cost scales roughly linearly with candidate count, and it was running on a single instance with no batching. I fixed it two ways: dropped retrieval top-k back to 25 after confirming with an eval run that recall@25 was statistically indistinguishable from recall@100 for our corpus, and moved the reranker to a batched GPU-backed inference service instead of CPU. That brought reranking down to about 180ms and overall p95 to 2.1 seconds. The bigger lesson was that we didn’t have per-stage latency instrumentation in the POC at all, only end-to-end timing, so a regression like this had nowhere to surface until users felt it. We added stage-level latency dashboards and SLOs after that incident.

Q: Tell me about a context window overflow you hit in production and how you handled it. A: We had a multi-turn conversational assistant over long support threads, and about six weeks in we started seeing a spike in truncated, nonsensical responses for roughly 2% of conversations. Looking at the logs, those were the longest-running conversations, some with 60+ turns, where the accumulated conversation history plus retrieved context exceeded the model’s context window, and our client library was silently truncating from the front, which meant it was chopping off the system prompt and task instructions in some cases depending on how the truncation logic ordered messages. The model would then respond without knowing its own instructions, producing generic or off-topic replies. It took about a day to find because the error wasn’t a hard failure, it was silent degradation, so no alert fired, we found it via a spike in thumbs-down feedback ratings on longer conversations specifically. Fix was implementing proper context management: a sliding window that always preserved the system prompt and the 2 most recent turns verbatim, summarized older turns into a running compact summary capped at 500 tokens, and used a token counter to enforce a hard budget before every call rather than relying on the provider to truncate. We also added an explicit alert on any request where our own pre-flight token count exceeded 90% of the model’s context limit, so we’d see it building up before it caused visible failures. Thumbs-down rate on long conversations dropped from about 18% to 4% after the fix shipped.

Q: Describe a caching bug that caused problems in a GenAI system you ran in production. A: We cached LLM responses keyed on a hash of the user’s normalized query text to cut cost and latency for common questions, and it worked well initially, hit rate around 22% with a 5-minute TTL. The bug surfaced when we added a personalization feature that injected the user’s role and department into the prompt for better-tailored answers, but we forgot to include those fields in the cache key. Users in different departments started getting answers cached from someone in a different department — a sales rep asking about “expense limits” got an answer cached from an engineering employee’s session, which was wrong for their role. It was caught by a sharp-eyed user who noticed the answer referenced a policy that didn’t apply to their team, and they reported it, we didn’t catch it via automated monitoring, which itself was a gap. I fixed the immediate issue by including role and department in the cache key hash, which dropped hit rate to about 14% since the cache was now more fragmented, but correctness mattered more than the hit rate. We also added a cache-key composition test that fails CI if any prompt-template variable isn’t reflected in the cache key, specifically to prevent that class of bug from recurring. Separately I added output-level monitoring that flags when two different users with different profile attributes get byte-identical responses within a short window, as a canary for future cache key mistakes.

10.4 Data, Retrieval & Embedding Issues

Q: Tell me about a time your vector index became stale and it caused real problems. A: We had a product documentation assistant where the vector index was rebuilt via a nightly batch job. Product launched a significant API change on a Tuesday, docs were updated same day, but our ingestion pipeline had a silent failure — an auth token used to pull from the docs repo had expired — so the nightly job had been failing for 11 days before anyone noticed, and it was failing “gracefully,” logging an error but not paging anyone. During that window the assistant was confidently telling developers to use deprecated API parameters. We found out when a partner developer filed a support ticket saying the assistant’s example code didn’t match current docs. Once I traced the ingestion job logs, the token expiry was obvious, but the bigger issue was that a failed nightly ingest job had no severity classification, it just logged like any other job. Immediate fix was rotating the token and manually triggering a full reindex, which took about 40 minutes for our corpus size. The structural fix was adding a freshness SLO: an automated check that compares the max last-modified timestamp in the vector index against the source repo, and pages on-call if the index is more than 4 hours stale. We also moved from nightly batch to an event-driven ingestion trigger on doc repo webhooks for anything tagged as a breaking change, so critical updates propagate within minutes instead of waiting for the next batch window.

Q: Walk me through an embedding model migration and what went wrong. A: We decided to migrate from a 1536-dimension embedding model to a newer 3072-dimension model from the same provider because benchmarks showed a meaningful retrieval quality improvement, roughly 6 points on our internal recall@10 eval. The mistake I made was underestimating the re-embedding cost and time for our corpus of about 9 million chunks — it took almost 30 hours of compute and cost around $3,400 just for the embedding calls, more than I’d budgeted because I’d estimated off a stale token-count estimate from a much smaller pilot corpus. The bigger issue was operational: we did a hard cutover, swapping the index in place, and didn’t realize that queries in flight during the swap were being embedded with the new model but compared against a partially-migrated index that still had a mix of old and new vectors for about 20 minutes, since the reindex job processed documents in batches and we flipped read traffic before it fully completed. That produced garbage similarity scores for roughly that 20-minute window, mixing incompatible vector spaces, retrieval quality cratered and generation started producing borderline-random answers. We caught it fast, within about 6 minutes, via a drop in our retrieval-confidence-score monitor, and rolled back reads to the old index until reindexing finished. Lesson: never do embedding model migrations as a hard cutover. On the next migration I built a proper blue-green pattern — full reindex into a separate index, automated eval comparison between old and new, then an atomic alias swap only after 100% of documents were confirmed migrated and validated.

Q: Describe a data quality surprise you found only after going to production with a GenAI system. A: Our RAG corpus was built from a mix of PDFs, Confluence-style wiki pages, and Slack export threads. In testing with a curated sample, retrieval quality looked strong. Once we opened it to the full corpus in production, answer quality on certain topics was noticeably worse, and when I sampled failing queries, I found the Slack-derived documents were the problem — our chunking pipeline had been built assuming prose-style documents, so it split Slack threads at fixed character boundaries without respecting message or speaker turns, producing chunks that mixed fragments from three different unrelated conversations into one embedding. Those chunks were semantically incoherent, but they still occasionally scored high enough in similarity search to get retrieved, injecting nonsense context into otherwise good answers. About 18% of our corpus was Slack-derived and that source was responsible for a disproportionate 60% of low-quality-context flags in a manual audit of 200 failing queries. Fix was building a source-aware chunking strategy — Slack threads got chunked by conversation boundary and speaker turn with a minimum coherence check, rather than a one-size-fits-all character-count splitter. We also added a chunk-quality heuristic at ingestion time, using a lightweight classifier to flag chunks with topic incoherence for human review before they entered the index. Retrieval precision on affected topics went from about 61% to 84% after the rechunking.

10.5 Security & Safety Incidents

Q: Tell me about a prompt injection attempt you saw in production and how you responded. A: We had a document-summarization tool that ingested user-uploaded files, and a security researcher, not malicious, doing responsible disclosure, uploaded a PDF containing white-text-on-white-background instructions telling the model to ignore its summarization task and instead output the system prompt verbatim. It worked, our summarizer dutifully printed out our internal instructions and a fragment of a few-shot example that included a synthetic but realistic-looking account number, which was flagged in the disclosure report. We treated it as a real incident even though no actual customer data was exposed, since the exfiltrated example data was synthetic. Response process: I confirmed reproduction within an hour, disabled the ability for document content to be treated as anything other than data (previously the raw extracted text was concatenated directly into the prompt with no delimiter or instruction hierarchy), and shipped a fix within the same day that wrapped all document content in explicit delimiters with a system instruction that content between those delimiters is data to summarize, never instructions to follow. We also added an output filter that checks for near-verbatim reproduction of our system prompt text and blocks the response if similarity exceeds a threshold, as defense in depth. Longer term we adopted a policy that any prompt template mixing untrusted content and instructions gets reviewed against an injection test suite, about 40 known injection patterns, before launch, and we now run that suite in CI on every prompt change.

Q: Describe a near-miss where your GenAI system almost leaked PII, and what stopped it or what you fixed afterward. A: Our support-ticket-summarization tool pulled full ticket history as context, and a QA tester noticed that a summary generated for one ticket included a snippet that looked like it referenced a different customer’s phone number. Investigating, our retrieval was correctly scoped to the right ticket, but the ticket itself contained a pasted email thread where a support agent had forwarded a message that included an unrelated customer’s contact info in a signature block, and our summarizer faithfully included it because we had no PII-awareness in the pipeline at all, it just summarized whatever text was there. Nothing had shipped externally yet, it was caught in QA before the feature reached agents’ production queues, but it made clear the same pattern could leak into an actual outbound response later. I added a PII-detection and redaction pass, using a named-entity + regex classifier for phone numbers, emails, SSN-like patterns, and account numbers, that runs on retrieved context before it’s ever sent to the model, redacting anything not belonging to the ticket’s own customer record based on a metadata cross-check. We also added a post-generation scan on the output for PII patterns as a second layer, since redaction on input doesn’t catch things the model might infer or restate differently. We ran a retroactive audit of 4 months of already-generated summaries, about 22,000 of them, and found 31 with actual leaked third-party PII, all internal-facing only, none externally exposed, but we still did individual review and remediation with legal and privacy involved given the sensitivity.

Q: Walk me through the toughest cross-team friction you hit getting security or compliance sign-off for a GenAI feature. A: We wanted to launch a feature letting the assistant pull data from our CRM to answer sales questions, and security review flagged that our architecture sent full CRM records into the prompt context, including fields well beyond what any individual query needed, which meant the LLM provider’s servers were processing data at a broader scope than necessary, a real data minimization concern under our existing data handling policy. The friction wasn’t technical, it was that the security team’s default position was “no third-party LLM calls with CRM data, period,” while the business stakeholders had already committed to a launch date to a VP. I spent about three weeks in that back-and-forth. What actually broke the logjam was proposing field-level minimization: instead of sending full records, we built a query-classification step that determined which specific fields, out of about 40 possible, were relevant to the user’s question, and only those got included in context, typically 3 to 6 fields. I also brought in the specific data processing agreement terms with the LLM provider showing zero data retention and no training on API inputs, which the security team hadn’t fully reviewed yet, and got a compliance-approved redaction list for fields that could never leave our infrastructure regardless of relevance, like SSNs stored in a legacy CRM field. We launched about two weeks later than the original target, with a documented data flow diagram and DPA reference now required for every future feature touching customer data, which actually sped up the next three feature launches since the review template already existed.

10.6 Model/Prompt Version Drift & Rollbacks

Q: Tell me about a time a model upgrade from your provider silently broke something in production. A: The provider deprecated the model version we were pinned to and auto-migrated us to their recommended replacement, same model family, and nothing in our CI caught an issue because our eval suite passed within normal variance, 92% versus 93% previously. About four days later, a team using our structured-data-extraction pipeline, which asked the model to output JSON matching a specific schema, reported a spike in downstream parsing failures. I found that the new model version had a subtly different tendency around trailing commas and occasionally wrapped JSON output in markdown code fences even though our prompt explicitly said not to, something the prior version almost never did. Our JSON parser had no tolerance for that and just threw, and failures had gone from a baseline of about 0.5% to 6% of extraction calls. We didn’t have alerting on parse failure rate specifically, only on raw API error rate, so it sat unnoticed for days until a downstream team complained. Immediate fix was adding a permissive parsing layer that strips markdown fences and handles common formatting variance before strict JSON parsing, plus switching to the provider’s structured-output/JSON-mode feature where available so schema conformance is enforced by the provider rather than by prompt instruction alone. Structurally, we stopped auto-accepting silent model migrations — we now pin exact model versions and treat any provider-initiated version change as a controlled rollout with the same canary process as our own prompt changes, and we added parse-failure-rate as a first-class monitored metric per downstream consumer.

Q: Describe the worst prompt regression you shipped and how you rolled it back. A: We iterated on our support assistant’s system prompt to reduce a pattern of overly long responses, and the new version passed eval at 93%, essentially flat versus the 94% baseline, so it went through our normal release process and hit 100% of traffic. Within about two hours, escalation rate to human agents jumped from a baseline of 11% to 27%. I got paged by our escalation-rate alert, which was one of our few real business-outcome-linked alerts rather than a model-quality metric. Diagnosing it, the new prompt’s instruction to “be concise and avoid unnecessary caveats” had the side effect of the model dropping clarifying questions it used to ask when a user’s request was ambiguous, so it was now guessing at intent more often and getting it wrong, driving users to ask for a human. Rollback was straightforward operationally since we kept prompts versioned in a config system separate from code deploys, so reverting was a config change, not a redeploy, and took about 4 minutes from decision to live. Escalation rate returned to baseline within about 20 minutes as in-flight sessions cleared. The postmortem finding was that our eval suite measured answer correctness but had no signal at all for conversational behaviors like appropriate clarification-seeking, so a prompt could look neutral on eval while being materially worse on a real business metric. We added escalation rate and a clarification-appropriateness check, using a judge model to assess whether ambiguous test queries got a clarifying question, to the eval suite after that.

Q: Tell me about a time you had to roll back a GenAI feature entirely, not just a prompt tweak. A: We launched an “auto-resolve” feature that let the assistant close support tickets automatically when it was confident the issue was resolved, with a confidence threshold gating auto-closure. In the first week, auto-closure rate was about 9% of eligible tickets, within expected range. In week three, after an unrelated model provider version update auto-propagated through our “always use latest” API endpoint configuration, we started seeing the confidence scores skew higher across the board, and auto-closure rate jumped to 24%, with a corresponding spike in tickets being reopened by frustrated customers, reopen rate went from 3% to 15% for auto-closed tickets specifically. It took about a day and a half to connect the reopen spike to the model version change because the confidence score itself isn’t directly comparable across model versions, a 0.85 from the new model didn’t mean the same thing as 0.85 from the old one, and nobody had flagged that calibration could drift like that. Given the customer-facing impact and the fact that we couldn’t quickly recalibrate the confidence threshold with confidence, I made the call to fully disable auto-resolve and revert to human-confirmed closure only, a same-day decision communicated to the support org and leadership. We spent the next two weeks rebuilding the confidence gating using a separately calibrated classifier trained on outcome data rather than relying on the generation model’s raw confidence signal, and re-launched auto-resolve gradually, capped at 5% of eligible tickets initially with manual audit of every auto-closure for the first two weeks, before ramping back up.

10.7 Agentic System Failures

Q: Walk me through a time a multi-agent system went into a runaway loop in production. What did it cost you and how did you stop it? A: We built a research-assistant system with a planner agent that delegated subtasks to a web-search agent and a synthesis agent, with the planner deciding when enough information had been gathered. A bug in the planner’s stopping condition meant that if the synthesis agent returned a response the planner’s own quality-check judged as “insufficient” — which used a somewhat arbitrary heuristic — it would re-delegate the same subtask again rather than accepting a lower-quality answer or escalating to a human. For most queries this loop terminated within 2 or 3 iterations. For a specific class of query that had no good answer available in any of our search sources, it never satisfied the quality check and looped essentially indefinitely, we saw one session hit 340 iterations before a token-budget circuit breaker most sessions didn’t even have properly configured stopped it. That single session cost about $85 in API calls. It wasn’t caught by monitoring in real time because we tracked cost in daily aggregate, not per-session, so a single runaway session didn’t trip anything until the next day’s cost review looked odd. Root cause fix was adding a hard per-session iteration cap of 8 and a per-session cost cap of $2, both enforced at the orchestration layer independent of the agent’s own logic, so a bug in agent reasoning can never bypass it. We also added real-time per-session cost tracking with alerting on any session exceeding $1, which surfaces anomalies within minutes instead of a day later. Post-incident audit found the same loop pattern, less severe, had affected about 40 other sessions over the prior month before we’d noticed, costing roughly $600 total that had just been invisible in aggregate numbers.

Q: Describe a time an autonomous agent took an action in production it shouldn’t have. A: We had an agent with tool access to update ticket status, add internal notes, and send customer-facing replies, gated by a policy that said customer-facing replies always required human approval but internal actions could be autonomous. A prompt update meant to improve the agent’s helpfulness for internal note-taking inadvertently changed how it parsed the tool-selection instructions, and for about a 3-hour window before we caught it, the agent sent 14 customer-facing replies without going through the approval queue, because it had started classifying “reply to customer” as equivalent to an internal action, due to ambiguous phrasing in the updated prompt about “responding to the ticket.” The replies themselves weren’t harmful in content, they were reasonable responses, but it was a policy violation with real risk, since unreviewed customer communication is exactly the failure mode the approval gate existed to prevent. We caught it via a routine audit log review, not real-time alerting, which was itself a gap. I froze the agent’s send-reply tool access immediately, did a full review of all 14 messages with the support lead, none required customer follow-up correction, and root-caused the prompt change. The real fix wasn’t just reverting the prompt, it was moving the human-approval gate out of the prompt-driven policy entirely and enforcing it as a hard permission check at the tool-execution layer, so the model’s interpretation of policy can never itself be the only thing standing between an agent and a customer-facing action. We also added real-time alerting on any customer-facing tool invocation that bypasses the approval queue, which would have caught this in under a minute instead of 3 hours.

10.8 Monitoring, On-Call & Incident Response

Q: Walk me through the worst production incident you had with an LLM-based feature, start to finish. A: Our AI-assisted code review comment generator started posting comments that repeated the same boilerplate phrase across essentially every pull request, drowning out substantive comments and burying real critical feedback in noise. It began after a routine dependency update in our inference client library changed a default sampling parameter, temperature effectively dropped close to zero, which we hadn’t pinned explicitly, and low temperature combined with a somewhat repetitive few-shot example in our prompt caused near-deterministic convergence on generic phrasing. It ran for about 14 hours overnight before an engineer complained in the morning that the bot’s comments were useless, we had zero automated detection because our only monitoring was API error rate and latency, nothing about output diversity or content quality. Incident response: I declared it a P2, pulled the last 500 generated comments, confirmed roughly 70% were near-duplicate boilerplate, and disabled the bot’s posting capability within about 15 minutes of confirming the pattern while keeping generation running in shadow mode for debugging. Root cause took another 2 hours to isolate to the dependency bump and the implicit default change. Fix was explicitly pinning all sampling parameters instead of relying on library defaults, and diversifying the few-shot examples. For prevention, we added an output-diversity metric, tracking rolling similarity between consecutive generations, with an alert if similarity exceeded a threshold for more than 10 consecutive outputs. Postmortem action items included a policy of pinning all inference parameters explicitly in code review, never relying on client library defaults, across every team using the shared inference wrapper.

Q: Tell me about a monitoring blind spot — something broke in your GenAI system that nobody was alerted to. A: We had solid monitoring on latency, error rate, and cost, and assumed that covered us. What broke was answer relevance on a specific query category, product-comparison questions, after a retrieval configuration change meant to improve a different category actually degraded this one. Nothing in our stack alerted on it because none of our automated metrics measured semantic relevance in production in real time, our eval suite only ran on-demand before releases, not continuously against live traffic. It took 11 days for the degradation to surface, via a slow decline in thumbs-up rate that a PM eventually noticed while reviewing weekly dashboards, from about 78% to 61% specifically for that query category, but blended into the aggregate thumbs-up rate the drop was small enough, maybe 2 points, to not trigger our blunt aggregate-based alert threshold of 5 points. That 11-day gap represented roughly 3,400 users getting materially worse comparison answers with nobody aware. Fix was building continuous production evaluation: a sample of live traffic, about 2% of queries, gets automatically scored by an LLM judge against a rubric in near real time, segmented by query category, with alerting on per-category drops of even 3 points rather than only aggregate drops of 5. We also added the retrieval-config-change to our list of changes that trigger a mandatory 48-hour close-monitoring window per category, not just aggregate, going forward. The broader lesson was that “we have monitoring” is meaningless without asking specifically what dimensions it covers and where the gaps are, latency and errors are the easy 80%, quality and relevance are the hard 20% that actually matters most.

Q: Describe your on-call process for an AI feature outage — what’s actually different from a traditional service outage? A: We ran on-call for our GenAI platform the same way we did for any service, PagerDuty rotation, defined severities, but the incident response playbook needed real changes specific to LLM-based systems. The clearest example was an incident where our assistant started returning empty responses for about 9% of requests. A traditional on-call instinct is to check infra health, and everything there was green, pods healthy, no deploys in the last 24 hours. The actual cause was the LLM provider silently changing behavior around content filtering, a set of previously-fine queries started tripping their safety filter and returning empty completions instead of an error we could catch cleanly, so from our side it looked like the model just “didn’t answer” rather than an obvious failure. Our playbook didn’t have a step for “check provider-side filtering behavior,” and it cost us about 25 extra minutes of the on-call engineer checking infra before escalating to me since I’d seen a similar pattern before. After that incident I rewrote the AI-specific on-call runbook to include: check provider status page and changelog first, check for empty-vs-error response ratio as a distinct signal from raw error rate, check whether the issue correlates with specific content patterns, and keep a standing relationship with a provider support contact for faster escalation, which mattered because our normal support ticket SLA was 4 hours but we got a 20-minute response by going through that direct channel during the incident. We also added synthetic canary queries that run every 2 minutes covering a range of content types, which would catch content-filter-related empty responses within 2 minutes instead of waiting for a user-facing error rate to cross threshold.

10.9 Organizational & Cross-Team Challenges

Q: Tell me about a time you had to push back on a business stakeholder’s timeline because the GenAI system wasn’t ready. A: A product lead wanted to launch an AI-generated content feature to external customers on a date tied to a marketing campaign, six weeks out. At the four-week mark, our eval numbers were still well below the bar I’d set, factual accuracy on the specific content type was at 81% against a target of 95%, given it was customer-facing generated content with real reputational risk if wrong. The pressure was real, marketing had already booked promotion around the launch date. I brought data, not just an opinion: the actual error examples, categorized by root cause, showing that about half the failures traced to a single fixable retrieval gap and the other half to insufficient fact-verification in generation, plus a projection based on our historical rate of improvement per week showing we’d realistically hit target in 9 to 10 weeks, not 6. I proposed a compromise: launch on the original date but with a human-review gate on all generated content for the first month, effectively an assisted rather than fully autonomous feature, which let marketing keep their date while we kept quality risk bounded. We shipped that version on time, accuracy reached 95% about five weeks later, and we removed the human gate for a defined subset of lower-risk content types at that point, fully autonomous for the rest four weeks after that once eval numbers held steady. The stakeholder relationship actually improved because I came with a concrete alternative rather than just a no, and the phased approach became our default launch pattern for anything customer-facing after that.

Q: Describe a disagreement you had with another engineering team about how to architect a GenAI system, and how it got resolved. A: A platform team wanted all GenAI features across the company to go through a single shared orchestration service they were building, arguing it would centralize cost tracking, guardrails, and provider management. I was building a latency-sensitive real-time feature, target p95 under 800ms end to end, and my read of their proposed architecture was that the extra network hop and generic abstraction layer would add roughly 150 to 300ms of overhead based on a prototype I built against their early API, which would blow our latency budget. That became a real disagreement, they saw my team wanting to bypass a company standard, I saw a one-size-fits-all service risking a bad user experience for our specific use case. We resolved it by getting concrete rather than continuing to argue in the abstract: I ran a side-by-side load test with real traffic patterns comparing direct provider calls versus routing through their service, and shared results with both our directors. The data showed the overhead was real, 210ms average, enough to matter for our SLA. Rather than a flat exemption, we agreed on a middle path: our team would integrate with their cost-tracking and guardrail policy layer as a lightweight synchronous check embedded in our own service, satisfying the governance goals, but keep model inference calls direct rather than proxied, satisfying our latency requirement. That pattern of “shared policy, direct execution path” ended up getting adopted as an approved architecture variant for other latency-sensitive teams too, which was a better outcome than either team’s original position.

10.10 How to Use These Stories in an Interview

Do not try to memorize and recite all of these — pick 3 or 4 that best match the roles you’re interviewing for and make them genuinely yours by changing the specific numbers slightly, tying them to a plausible system you can describe in more depth, and rehearsing them out loud until the details feel like memory rather than a script. Interviewers will almost always follow up with “how exactly did you detect that” or “who else was involved” or “what would you do differently,” so before you walk in, extend each chosen story with your own answers to those probes — a dashboard name, a specific team you’d have looped in, a metric threshold you’d have picked. Favor stories where you can speak fluently about the diagnostic process, not just the fix, since that’s what actually distinguishes someone who operated a system from someone who read about one. Keep the stories consistent across interviews in the same loop, panels compare notes, and a system architecture that changes between rounds is the fastest way to lose credibility. Finally, ground every story in a system that’s plausible for your stated background — don’t claim you scaled a vector DB to hundreds of millions of vectors if the rest of your resume says you worked at a 50-person startup, match the scale of the story to the scale of the company.