Skip to main content
HS
HiSETSuccess
LeetCode Prep

AI & FDE Interview Room

Role paths, mocks, cost studio, chapters, cases, and staff-level depth.

Case study · FDE · 30 min

AI Feature Rollout Incident Response

Handle a production incident where a new prompt/model rollout spikes hallucinations and customer escalations.

FDEincidentrollback

Interview opener

Pilot leaks a confidential HR document on day 2.

  1. 1.Shut down entirely or contain?
  2. 2.What do you say to legal vs users in the first hour?
  3. 3.Permanent controls to prevent recurrence?

Strong signals

Hit 0/3

Weak signals (avoid)

  • Blame the model only
  • Quietly patch without communication

Requirements

  • Symptom: groundedness down 12 pts; tickets +3× after Tuesday deploy
  • Need: detect, mitigate, communicate, root-cause, prevent
  • Constraints: cannot take entire product offline; pilot still live
  • Roles: FDE on-call, customer champion, internal eng, support lead

Back-of-envelope Estimation

MetricCalculationResult
Affected queries/hour2,0002,000
Bad answer rate18% (up from 6%)+240 bad/hour
Support cost240 × 8 min × $1.5/min~$2.9K/hour
Rollback timefeature flag flip~5 min
Full RCA window48 hoursblameless doc

Control Plane APIs

EndpointMethodDescription
POST /v1/flags/{name}POSTSet rollout % or force previous prompt
POST /v1/kill-switchPOSTDisable generative answers; FAQ-only mode
GET /v1/incidents/{id}GETStatus page payload for customer

Data Model

EntityKey fieldsNotes
configsversion, prompt_hash, model_idImmutable
incidentsid, severity, start, mitigate_atTimeline
eval_snapshotsconfig_version, scoresCompare pre/post

High-level Design

Incident flow
Detect (eval drift / ticket spike / groundedness)
   → Triage sev (customer impact)
   → Mitigate: flag to prior config OR kill-switch FAQ mode
   → Communicate: champion + status page ETA
   → Diagnose: diff prompt/model/index; replay failing cases
   → Fix + eval gate → canary 5% → 50% → 100%
   → RCA + action items (tests, alerts)

Deep Dive: Safe Rollouts

  • Every prompt/model change behind a flag with automatic eval compare
  • Canary on 5% traffic with auto-rollback if groundedness −3 pts
  • Keep last-known-good config hot for one-click revert
  • Customer comms template prepared before go-live

Bottlenecks at Scale

  • Slow detection without online eval sampling
  • No flag → code redeploy for rollback (unacceptable)
  • Finger-pointing delays mitigate — empower FDE to flip flags

Failure Modes & Monitoring

SLOTargetAlert
Detect time< 15 minAutomated eval sample
Mitigate time< 30 minPage if open > 30
Comms cadenceEvery 30 minUntil resolved
Repeat incident0 in 90dTrack action items

Attempt the case aloud first. Then unlock a staff model answer outline.