Production interviews test whether you can reduce uncertainty without making an incident worse. The correct first action is often to contain impact and inspect evidence—not restart everything or retrain blindly.
Each scenario follows one observable sequence: symptom → likely causes → evidence → first safe action → confirmed fix → prevention, including modern LLM, vector-index, GPU-serving, and feedback-loop failures.
This is the expanded interview-preparation version
Current, research-driven questions are shown first so you can immediately see what changed. Each question keeps the detailed answer, example, likely follow-up, and weak-answer warning.
What you will be able to do
- Diagnose model and data failures
- Choose safe first actions
- Use lineage, traces, and metrics
- Separate repair from retraining
- Prevent recurrence with explicit controls
Debug production safely from symptom to prevention
Observe before retraining or restarting
A production answer should preserve evidence
State the blast radius and timeline, compare recent changes, identify the affected version and slice, and keep a known-good rollback path. Retraining is justified only when trustworthy recent labels show the learned relationship needs updating and a new candidate passes normal gates.
17 production debugging scenarios
Modern LLM, embedding, GPU-serving, recommendation-feedback and agent failures are shown first.
2026 signal · Modern LLMOps interviews increasingly include embedding/index migration failures.
12. Embedding model changed but retrieval quality collapsed
RAG recall drops immediately after an embedding-model upgrade while documents and queries still appear healthy.
New and old vectors mixed in one index, normalization changed, dimension mismatch, query encoder differs from document encoder, or ANN index parameters no longer fit.
Embedding/index version, vector dimensions/norms, shadow recall@k on a fixed eval set, corpus re-embedding coverage, query/document encoder IDs.
Route retrieval back to the previous complete index and freeze writes that mix vector versions.
Build a fully versioned new index, re-embed corpus/query consistently, validate recall/latency, then switch an alias atomically.
Immutable embedding/index versions, migration runbook, shadow evaluation, and rollbackable aliases.
2026 signal · AI production interviews now expect quality observability, not only infrastructure health.
13. Prompt or model upgrade caused silent quality regression
Latency and error rates look normal, but users report worse answers after a prompt/model change.
Prompt instruction conflict, changed model behavior, longer context, decoding defaults, tool schema change, or evaluator blind spot.
Prompt/model/version diff, replay set, task-success and slice metrics, traces, token counts, and human-rated examples.
Stop rollout or return traffic to the known-good prompt/model bundle while preserving failed examples.
Repair the verified regression and rerun offline plus shadow/canary evaluation before promotion.
Versioned prompts/models/tools, regression evals, representative slices, and quality gates independent of uptime.
2026 signal · Concurrent LLM serving and GPU batching are prominent in current ML/AI system-design questions.
14. GPU out-of-memory only during traffic spikes
Inference pods are stable at normal load but OOM when concurrency or context length spikes.
KV-cache growth, oversized batches, long sequences, fragmentation, model replica mismatch, or scheduler admitting too much work.
GPU memory by component, active sequences, token lengths, batch size, queue depth, cache occupancy, OOM timestamps.
Apply admission control, lower concurrency/batch limits, or route overflow to a safe fallback before restarting workers.
Tune scheduler and memory limits, cap context/output, add replicas or quantization only after measuring the bottleneck.
Load tests across token distributions, memory headroom SLO, per-request budgets, and overload policy.
2026 signal · Senior MLE interviews often probe backfills, lineage, and leakage because these failures are costly and subtle.
15. Historical feature backfill changes training labels unexpectedly
A backfill intended to repair features changes model performance and even some labels in old training windows.
Non-point-in-time join, mutable source, changed business logic, timezone cutoff shift, or backfill using current state for historical rows.
Data lineage, as-of timestamps, source snapshots, feature-definition version, label-generation version, and row-level diff.
Quarantine the new dataset and keep the previously reproducible training snapshot.
Rebuild from versioned historical sources with explicit event-time/as-of semantics and separately version labels.
Immutable snapshots, point-in-time join tests, dataset manifests, and backfill review gates.
2026 signal · Recommendation-system interviews increasingly expect candidates to discuss feedback loops and online metrics.
16. Recommendation feedback loop amplifies one content type
Engagement is initially strong, then diversity collapses and users see increasingly similar content.
Training only on exposed items, popularity bias, position bias, insufficient exploration, or an objective that rewards short-term clicks.
Exposure distribution, creator/topic concentration, counterfactual or randomized buckets, long-term retention, diversity and complaint metrics.
Protect user experience with diversity/frequency controls and maintain an exploration bucket while investigating.
Correct the objective/data with debiasing, exploration, multi-objective ranking, or better long-term labels.
Diversity guardrails, randomized logging, long-horizon metrics, and feedback-loop monitoring.
2026 signal · Agentic production interviews now test execution safety and retries, not only model reasoning.
17. Tool-using agent succeeds but performs duplicate side effects
The final task looks correct, but traces show repeated purchases, emails, or database writes after retries.
Non-idempotent tools, lost acknowledgements, retry policy without receipts, or workflow replay from an old checkpoint.
Tool-call IDs, idempotency keys, receipts, retry logs, checkpoint version, external-system audit trail.
Disable or gate the affected side-effect tool and prevent further duplicates while preserving traces.
Add stable action IDs, idempotent execution or deduplication, committed receipts, and checkpoint-aware retry logic.
Side-effect contracts, replay tests, bounded retries, and human approval for high-impact actions.
1. Good offline, poor online
Validation AUC is 0.88; live decisions fail.
Leakage, split mismatch, feature skew, stale inputs, threshold or cohort mismatch.
Replay live requests with recorded raw data, feature/model/threshold versions, and delayed labels.
Limit harm or route to the prior safe policy while preserving traces.
Repair the confirmed mismatch or choose a valid operating threshold; retrain only if data supports it.
Point-in-time validation, parity tests, shadow/canary evidence, and slice monitoring.
2. Training-serving skew
The same customer scores differently offline and online.
Different code, time window, sources, defaults, or feature freshness.
Compare feature vectors and lineage for the identical entity and cutoff.
Stop promotion and use the known-good feature/model bundle.
Unify the versioned feature definition and backfill affected outputs.
Shared transformations, parity fixtures, and feature-version logging.
3. Stale feature
Scores are technically valid but reflect old behaviour.
Failed upstream job, lagging stream, cache TTL error, or missing freshness contract.
Feature timestamps, pipeline status, stream lag, and stale-rate by source.
Apply the reviewed stale-data fallback or manual-review path.
Restore ingestion/compute and invalidate unsafe cache entries.
Freshness SLOs, dependency alerts, bounded stale limits, and runbooks.
4. Schema change
Inference errors or silent null/default growth follow an upstream release.
Renamed field, type/unit/category change, or incompatible evolution.
Contract validation, payload samples, null/range trends, and producer deployment timeline.
Block incompatible data instead of silently coercing it.
Deploy compatible producer/consumer versions and run a controlled backfill.
Versioned schemas, compatibility tests, and producer-consumer release coordination.
5. Leakage discovered
Historical score is implausibly high and collapses after deployment.
Future feature, target-derived field, duplicated entity across splits, or global preprocessing.
Feature availability timeline, split keys, lineage, and ablation results.
Stop using the misleading model and disclose the affected evaluation.
Rebuild point-in-time data and repeat evaluation from a clean boundary.
Leakage reviews, temporal/group splits, and pipeline-enforced fitting boundaries.
6. Registry or artifact mismatch
Deployment reports v13 but predictions resemble v12 or preprocessing fails.
Mutable tag, wrong digest, independent component promotion, or dependency mismatch.
Loaded artifact checksum, bundle manifest, runtime packages, and release record.
Route traffic to a verified immutable known-good bundle.
Promote the matching model, preprocessing, schema, threshold, and runtime together.
Immutable artifacts, signed manifests, and startup contract checks.
7. Quality gate blocks release
Data validation passes but candidate recall is below requirement.
Real regression, changed slice, metric bug, or small/noisy evaluation set.
Gate report, baseline comparison, slices, sample size, confidence interval, and code version.
Keep current production; do not override the gate because another check passed.
Correct the defect or improve and reevaluate the candidate.
Independent versioned gates with explicit owners and override audit.
8. Batch deadline missed
Scores are not ready for the morning workflow.
Late input, skewed partition, retry storm, reduced capacity, or model slowdown.
DAG critical path, task durations, retries, queue/worker utilization, and input arrival.
Notify consumers and use the approved prior-score or no-action fallback.
Repair the bottleneck and backfill only the affected range.
Deadline SLO, capacity headroom, partition tests, and bounded retries.
9. Online p95 latency spike
Median remains healthy while tail latency breaches the SLO.
Queueing, one slow dependency, cold starts, cache misses, payload growth, or saturation.
Trace waterfall by percentile, queue depth, dependency p95, payload/token size, and resource saturation.
Shed or degrade low-priority work and protect critical traffic.
Remove the measured bottleneck by scaling, caching, bounding input, or repairing the dependency.
Tail alerts, admission control, load tests, timeouts, and capacity models.
10. Drift alert with delayed labels
PSI rises but outcome quality is not yet known.
Seasonality, source change, population shift, or defect; concept drift is not yet proven.
Feature distributions, schema/source versions, score/slice changes, and eventual labels.
Investigate and increase observation; do not automatically deploy a retrain.
Repair data defects or train a candidate when trustworthy outcomes justify it.
Contextual thresholds, label joins, champion/challenger evaluation, and governed CT.
11. Canary failure and cost increase
Candidate traffic shows errors, worse KPI, or sharply higher compute cost.
Artifact defect, dependency regression, larger inputs, inefficient model, or bad autoscaling.
Canary/control comparison, per-stage traces, tokens/requests, cost units, errors, and quality slices.
Stop promotion and shift canary traffic back to the known-good release.
Correct the confirmed release or capacity defect before a fresh canary.
Quality, reliability, and cost gates with automated rollback thresholds.
Review the deeper lessons
Use these links when an interview question exposes a gap. The interview guide focuses on explanation and decision-making; the linked lesson teaches the full concept.
Keep the answer honest: role boundaries, interview processes, and project outcomes vary. Never invent experience, impact, salary, or certainty to make an answer sound stronger.
Summary / Key Takeaways
- Production diagnosis begins with blast radius, timeline, versions, and preserved evidence.
- The first safe action contains harm without destroying the information needed to learn the cause.
- Offline success can fail online through leakage, skew, staleness, thresholds, or service defects.
- Model, preprocessing, feature, schema, policy, and runtime versions must move as a compatible bundle.
- Tail latency and batch deadlines require path-level traces, queue evidence, and capacity reasoning.
- Drift is a signal to investigate; it does not automatically prove model decay or justify deployment.
- A complete fix verifies recovery and adds a control that prevents the same failure from recurring.