Bite-sized, standalone interview questions and answers for MLOps. Read 5-10 per sitting. Each answer is 2-4 sentences max and stands on its own.

91 questions shown. Filter by keyword or difficulty below.

Topic: ML pipeline fundamentals (Order 1)

A: A notebook’s correctness depends on leftover kernel state, ad-hoc pip installs, and click-order execution — none of which a scheduler reproduces. A real pipeline compiles cells into a DAG of independently containerized steps where each step gets its own image and dependencies, eliminating shared kernel state entirely.

A: Kubeflow’s driver computes a SHA-256 fingerprint over each step’s inputs, outputs, container image, and command args. If a prior run produced the same fingerprint, the cached outputs are reused and the container is never launched. A notebook has no fingerprint concept — there’s no way to detect that a cell’s inputs haven’t changed.

A: The image hash is part of the cache key (opts.Container.Image goes into the CacheKey struct), so the fingerprint changes even though the data is identical. The step re-runs from scratch. This is correct behavior — the new image may produce different outputs.

A: A mounted volume can carry side effects from a prior run, so a step reusing a differently-named PVC is treated as a genuinely different execution even if every other input matches. Ignoring PVC names would risk serving stale outputs from a volume that has been mutated since the cache was written.

A: Each step gets full dependency isolation — bumping pandas in the training step can’t break the data-loading step. The tradeoff is cold-start overhead: every step that isn’t cached pays the cost of pulling and starting its own container image, which adds latency compared to reusing a warm kernel.

A: Assuming that the order of function calls in the Python file defines execution order. DAG edges are defined by data dependencies — passing load_task.outputs['out_data'] into train_model as an argument — not by the physical position of calls in the Python file. A developer who places train_model above load_data in the file but correctly passes the output still gets a valid DAG.

Topic: Feature stores (Order 2)

A: Point-in-time correctness means a training example only sees feature values that were actually known at the moment the label was recorded. A naive “join the latest feature value” query lets the model see features updated after the label happened — this is data leakage, not a feature. Only a query that filters feature rows by timestamp <= event_timestamp enforces this guarantee.

A: get_historical_features performs a point-in-time join with a TTL window (timestamp >= event_time - ttl AND timestamp <= event_time), while get_online_features takes entity keys with no timestamp at all and returns whatever the latest materialized value is. The online API structurally cannot express a point-in-time query — no timestamp argument exists in the call.

A: The point-in-time join finds no feature rows within the narrow TTL window for many training examples, producing NaN values instead of the correct (slightly older) feature value. The TTL lower bound is a staleness guard that can be too aggressive if it doesn’t match the feature’s real update cadence.

A: The feature store enforces leakage guards mechanically (via _filter_ttl’s filter condition), but adds infrastructure complexity — a materialization pipeline to keep the online store fresh, and a separate offline store for historical joins. Computing features inline is simpler but leaves point-in-time correctness as a discipline engineers must remember to uphold by hand.

A: Production serving only ever has one meaningful timestamp — “now.” There’s no future value to accidentally leak, so a time-window filter is unnecessary. Staleness is a materialization concern (how often the online store is refreshed), not a retrieval concern.

A: Querying the raw source table or the online store for “current” feature values and joining them onto historical training examples. This reintroduces exactly the leakage the feature store exists to prevent — the pipeline looks correct (the join succeeds, the model trains) while silently training on information the model could never have at real prediction time.

Topic: Experiment tracking & reproducibility (Order 3)

A: Every start_run() call triggers resolve_tags(), which iterates a registry of RunContextProviders. GitRunContext.in_context() checks if the code runs inside a git repo; if so, tags() reads the current commit hash, branch, and repo URL via _resolve_git_info() and attaches them as run tags automatically.