InterviewStack.io LogoInterviewStack.io

Debugging and Testing ML Systems Questions

Finding, diagnosing, and fixing problems in ML code, data, and models, and building tests that catch these problems before they reach users. Covers common ML pitfalls (data leakage, shape mismatches, silent training bugs, mis-specified loss or metrics), root-cause analysis of model regressions and production incidents (accuracy drops, calibration drift, intermittent or hard-to-reproduce failures), distributed-training-specific failures (multi-GPU divergence, intermittent OOM, precision-related instability), and the diagnostic tooling that supports it (reproducibility artifacts, structured logging, instrumentation). Also covers testing ML systems directly: unit tests for data and feature pipelines, validation checks for datasets and features, test oracles and acceptance criteria for probabilistic or non-deterministic model outputs, and integration and regression tests that catch model or pipeline regressions before deployment. Emphasizes the engineering rigor that keeps ML systems correct and maintainable.

HardTechnical
40 practiced

Production predictions for identical inputs sometimes differ between requests. List the plausible root causes at the model, runtime, and infrastructure levels. For each, describe a concrete test or configuration change that would make inference deterministic, and explain the performance trade-off you would be accepting.

HardTechnical
53 practiced

You receive an intentionally vague request: 'make our churn model better,' with no further specifics. Provide a structured, step-by-step investigation plan to identify potential failure modes, how you would prioritize which to investigate first given limited time, and how you would work around a limited labeling budget while still making progress.

EasyTechnical
53 practiced

Create a prioritized checklist of automated tests and validations you would include in ML continuous-integration for a production model, ordered from the earliest pipeline stage to the latest. For each item, explain briefly why it matters and which common production failure it prevents.

HardSystem Design
48 practiced

An inference anomaly occurs intermittently under heavy production load and cannot be reproduced locally, or a deployed model shows hard-to-reproduce failures that seem to correlate with upstream feature-store changes. Describe a plan to reliably reproduce the issue: what trace-id and payload logging you would add (while preserving privacy), how you would capture the full environment and dependency versions, deterministic seeding, a traffic-replay strategy, and controlled load or chaos testing. Explain how you would use the reproduced artifact to confirm a fix actually resolves the root cause.

MediumSystem Design
46 practiced

You suspect a recently-shipped model bug affects a small slice of production traffic (roughly 0.5%). Design a canary deployment to isolate and confirm the suspected bug: how you would route traffic, which observability signals you would monitor specifically during the canary window, your automated rollback criteria, and how you would minimize user impact while still gathering enough diagnostic data to confirm the root cause.

Unlock Full Question Bank

Get access to all Debugging and Testing ML Systems interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.