Top 30 Advanced MLOps & Infrastructure Interview Questions and Answers
30 advanced multiple-choice MLOps & Infrastructure interview questions, the deep end: internals, failure modes, and the design calls a senior engineer is expected to defend. They come from 30 bites in the MLOps & Infrastructure library, the hardest slice of the 131 MLOps & Infrastructure interview questions in the library. Answer them here or read straight down. Every question carries the correct option, why it is correct, and a link to the bite it came from.
Model deployment, training infra, experiment tracking
30 questions. Pick an answer, or open “Show the answer” to read it.
Answers are graded in your browser. Nothing is saved, and no XP or streak is earned here. The app keeps score.
Question 1 of 30
When scoping an MLOps platform for a mid-sized company with 5-15 engineers, which approach best demonstrates mature build-vs-buy reasoning?
Show the answer
Answer: a · Prioritize data governance, feature store, model registry, CI/CD/CT, and monitoring before the serving layer; buy commodity tools like orchestration and monitoring while investing engineering effort only in proprietary feature engineering and model architectures.
This option correctly sequences foundational components before serving and applies the buy-commodity, build-differentiator rule. Option C is tempting because avoiding vendor lock-in feels engineering-savvy, but maintaining a custom feature store and registry would consume two to three full-time engineers and ignores total cost of ownership.
Question 2 of 30
Which promotion flow best reflects a robust automated testing strategy for a weekly retrained production model?
Show the answer
Answer: a · Offline per-slice thresholds and bias checks, data validation for training-serving skew and drift, shadow deployment comparing latency and prediction distributions, then canary gated on business metrics with automatic rollback
This option captures the four-layer strategy from the card: offline statistical validation, data validation, shadow deployment, and canary gated on business metrics with automatic rollback. Option D is the most tempting distractor because it uses correct terminology but reverses the order and incorrectly uses offline accuracy as the final promotion gate rather than live business metrics.
Read the full bite: Design a robust automated testing strategy for ML models before production
Question 3 of 30
A model is trained on batch aggregates computed in Spark and served via a Python microservice using real-time streams. What is the most robust way to prevent training-serving skew?
Show the answer
Answer: b · Use a shared transformation library for both paths, serve from a versioned feature store, and log features at training time for replay validation
A shared transformation library and versioned feature store guarantee both paths execute identical logic from a single source of truth. Relying on manual code reviews is insufficient because separate implementations inevitably diverge under operational pressure.
Question 4 of 30
Why is it architecturally necessary to keep batch historical features in a KV store while maintaining session-level streaming features in a separate in-memory cache?
Show the answer
Answer: a · The batch path produces terabyte-scale pre-aggregated profiles that are updated infrequently, while the streaming path handles high-velocity session events with natural TTL decay; a single storage system cannot optimize for both access patterns under the 50ms SLA.
The card states that batch and streaming data have fundamentally different latency, volume, and freshness requirements, so one storage system cannot handle both optimally without breaking the sub-50ms SLA. Distractor A sounds plausible because the follow-ups mention exactly-once semantics for billing, but the card never cites billing consistency as the reason for the dual-store split.
Read the full bite: Design a sub-50ms real-time bidding feature pipeline
Question 5 of 30
An ML platform team still spends days debugging accuracy drops because they must manually cross-reference spreadsheets, data catalogs, and model registries across hundreds of models. Which architectural change most directly fixes this?
Show the answer
Answer: d · Building a unified lineage graph with automated hooks connecting raw sources, transformations, training runs, and deployments
A unified lineage graph with automated hooks treats lineage as a connected graph problem, enabling traversal from a deployed model back to raw data and transformations. Options A and B address only fragments of the pipeline, while D merges storage without guaranteeing the relationships or automated capture needed for root-cause analysis.
Read the full bite: How to establish data lineage and reproducibility for hundreds of ML models
Question 6 of 30
Why is deduplication a critical stage when preparing a massive dataset for foundation-model training?
Show the answer
Answer: b · Duplicates waste training compute and can skew the model toward over-represented samples
Duplicate and near-duplicate samples inflate compute and bias the model toward repeated content. Corruption detection and PII filtering are separate stages with their own purposes.
Read the full bite: Scalable multi-modal data quality pipeline
Question 7 of 30
What is the central risk of using one model's embedding as a feature for a downstream model?
Show the answer
Answer: c · Updating the upstream model shifts the feature space, degrading the downstream model unless versions are pinned and coordinated
The downstream model is tied to a specific embedding version's geometry, so an unpinned upstream change causes silent skew and degradation. Dimensionality and feature type are not the core problem.
Question 8 of 30
A transaction event at 08:50 must be joined to a user profile table where the user upgraded to premium at 09:00. Which join behavior preserves point-in-time correctness for the training row?
Show the answer
Answer: a · Match the most recent profile row with a timestamp less than or equal to 08:50.
An AS OF join retrieves the latest dimension record known at or before the event timestamp, so the 08:50 event correctly sees the pre-upgrade standard tier. Option D is the most tempting distractor because joining on user_id alone and taking the latest record silently leaks future state into the training set.
Read the full bite: Design system ensuring point-in-time correctness for training data joins
Question 9 of 30
A platform team advocates for a declarative feature platform to reduce boilerplate. Which risk best illustrates why this choice could fail without the right organizational maturity?
Show the answer
Answer: b · The team must own the opinionated abstractions for checkpointing, schema evolution, and exactly-once semantics, requiring deep infrastructure expertise.
Declarative platforms centralize ownership of checkpoints, schema evolution, and exactly-once semantics within the platform team, so adopting one without that infrastructure maturity fails; option A describes imperative platforms, and D wrongly assumes declarative means no-code.
Read the full bite: Argue for declarative or imperative feature platforms with trade-offs
Question 10 of 30
Which architecture best detects training-serving skew without impacting serving latency?
Show the answer
Answer: b · Versioned per-feature statistics in the model registry, asynchronous inference feature logging, and periodic statistical tests like PSI or KS against baselines
The correct design uses the model registry as a source of truth for immutable training statistics and asynchronously logs production feature vectors to compare distributions via PSI or KS without adding P99 latency. Option A is tempting because circuit breaking is a valid severe response, but performing distribution checks synchronously on every request would directly violate the latency constraint that the logging layer is meant to avoid.
Question 11 of 30
Which strategy best satisfies the requirement that no static credential ever be stored in an image layer, on host disk, or exposed via the container's procfs?
Show the answer
Answer: d · Attaching a cloud IAM role through OIDC-based workload identity integration
Cloud IAM integration such as AWS IRSA or GCP Workload Identity eliminates static credentials entirely by issuing temporary OIDC tokens, whereas runtime environment variables still expose static secrets through procfs and cannot be changed without a restart.
Read the full bite: Describe two secure methods for providing secrets to a running container
Question 12 of 30
Which combination best shrinks a PyTorch serving image while preserving operational rigor and layer hygiene?
Show the answer
Answer: c · Build in a devel stage, copy artifacts to a runtime stage, and collapse cleanup into the install RUN
The correct approach uses multi-stage builds to exclude devel libraries and collapses cleanup into the installation RUN so intermediate files never commit to a layer. The most tempting distractor, docker squash, merely hides bloat rather than fixing build hygiene, and separate RUN cleanups still preserve deleted files in underlying layers.
Read the full bite: Strategies to reduce a 5GB ML Docker image size
Question 13 of 30
In the described notebook platform, what happens after 30 minutes of user inactivity to optimize cost while preserving work?
Show the answer
Answer: c · An idle manager scales the notebook Pod to zero, saving state to the persistent volume claim
The card describes an idle manager that scales the Pod to zero after a timeout while saving state to the PVC, avoiding compute costs without destroying user data. Option D reflects a VM-centric misconception that ignores the Kubernetes-native design, while D incorrectly suggests destroying the namespace rather than suspending the Pod.
Read the full bite: Design on-demand containerized dev environments for data scientists
Question 14 of 30
Which architecture best prevents starvation and noisy-neighbor interference in a multi-tenant GPU cluster?
Show the answer
Answer: b · Namespace ResourceQuotas, Kueue fair-share queues, and MIG profiles for hardware isolation
This pairs namespace governance with fair-share scheduling to prevent starvation and hardware isolation to block memory bandwidth contention. D is tempting because it includes preemption, MIG, and quotas, but the default kube-scheduler lacks fair-share and gang scheduling semantics, so starvation remains likely.
Read the full bite: Design multi-tenant GPU cluster scheduling and preemption policies
Question 15 of 30
How should a CI/CD pipeline enforce a fairness constraint on a candidate model?
Show the answer
Answer: b · Compute sliced subgroup metrics and exit nonzero to block promotion when a threshold is breached
Enforcement requires sliced metrics compared to thresholds that fail the build and block deployment. Aggregate accuracy hides subgroup harm, and warning-only or post-deploy checks do not prevent shipping a violating model.
Question 16 of 30
Which approach best handles a backward-compatible additive enum value in an ML CI pipeline while minimizing manual toil and preventing silent corruption?
Show the answer
Answer: d · Auto-approve the change under a versioned contract, handle the value with a model-side unknown bucket, and alert without blocking.
The correct answer captures the card's core design: versioned contracts auto-approve additive changes, model-side unknown buckets prevent crashes, and non-blocking automation reduces toil. Option B is tempting because hash-based embeddings are a valid resilience tactic, but disabling structural validation invites silent corruption and training-serving skew, which is a major red flag.
Read the full bite: How would you design safe, automatic schema evolution in CI?
Question 17 of 30
Why is contract testing especially important in a microservice-based ML system?
Show the answer
Answer: d · Services evolve independently, so verifying interface and data-schema expectations catches breaking changes before integration
Independent release cadences make interface and schema drift the main risk; consumer-driven contract tests catch breaks in the producer's pipeline early. It complements, not replaces, unit tests and versioning.
Question 18 of 30
When p95 TTFT exceeds SLO while per-token latency remains healthy, which remediation should you prioritize before changing model architecture?
Show the answer
Answer: d · Inspect queuing depth and right-size batching limits based on tracing data
High TTFT with healthy per-token latency signals queuing or batching bottlenecks rather than raw execution speed, so structured debugging targets queue depth and batch limits first. Adding replicas assumes compute saturation without profiling, and increasing batch limits can actually worsen TTFT by delaying first-token delivery.
Read the full bite: How would you systematically debug an inference API latency breach?
Question 19 of 30
A fleet of ten thousand battery-powered edge cameras needs frequent model updates without mass failures. Which strategy best addresses flash wear and the risk of bricking remote units?
Show the answer
Answer: b · Package updates as delta patches, write them to an inactive A-B partition, and promote the partition only after on-device golden-set validation passes
Delta patches minimize flash wear compared to full redeployments, and A-B partitioning with local validation gates prevents a bad update from bricking remote devices. Option D is tempting because INT8 quantization helps fit the model, but synchronous pushes without atomic rollback or battery-aware scheduling still risk mass failures on intermittent networks.
Question 20 of 30
When using SageMaker shadow tests to validate a new GPU model before a blue/green traffic shift, why is it important to keep the shadow test duration short?
Show the answer
Answer: c · Running both fleets in parallel duplicates inference compute costs while the green fleet processes mirrored requests not served to users
Shadow testing mirrors live requests to the green fleet without serving responses, so both fleets consume GPU compute simultaneously; prolonging this needlessly doubles inference costs. Option A is tempting but wrong because during the shadow test the blue fleet is still actively serving production traffic, so it is not yet idle capacity.
Read the full bite: Design cost-effective inference for spiky traffic without idle GPUs
Question 21 of 30
Which design best balances cost efficiency and latency for hundreds of infrequently used models sharing limited GPU memory?
Show the answer
Answer: c · Pin a small hot set in VRAM, cache the working set with LRU eviction, and return 202 while loading uncached models asynchronously
This uses a shared pool with tiered caching to keep costs low while mitigating cold starts via async loading; D is tempting but wrong because synchronous remote loading on every request imposes severe latency penalties the card explicitly warns against.
Read the full bite: Design a multi-model serving architecture for infrequently used models
Question 22 of 30
In an automated root-cause system, what does it mean when a frozen baseline and the production model both degrade equally on new labels?
Show the answer
Answer: c · The underlying concept has drifted, indicating a shift in the real-world environment
The card explains that equal degradation between a frozen baseline and the production model indicates concept drift, meaning the world has shifted. Distractor A describes training-serving skew, which the card identifies as the root cause when only the production model degrades, not both.
Read the full bite: Design an automated system to diagnose model performance drop root causes
Question 23 of 30
Which approach best detects systemic model degradation across a high-cardinality fleet without causing alert fatigue?
Show the answer
Answer: d · Aggregate models into cohorts, baseline against peers, and alert on fleet-wide drift percentages while batching individual outliers into digests
Cohort-based aggregation and hierarchical alerting surface systemic issues sub-linearly while preventing operator fatigue. A is a common trap because per-customer dashboards feel thorough but do not scale past a few dozen instances.
Read the full bite: How do you monitor thousands of per-customer models as a fleet?
Question 24 of 30
Which architecture correctly separates drift detection from retraining while embedding safeguards against runaway costs and unstable deployments?
Show the answer
Answer: c · Model Monitor emits drift metrics to CloudWatch; EventBridge triggers retraining only after sustained alarm breaches and cooldowns expire.
The correct answer reflects the required separation of concerns: detection emits metrics, a decision layer enforces sustained thresholds and cooldowns, and only then executes retraining. The most tempting distractor, direct invocation by Model Monitor, removes the intermediate decision layer and risks unstable retraining loops and skyrocketing compute costs.
Read the full bite: Design concept drift detection with automated retraining safeguards
Question 25 of 30
What is the primary architectural benefit of separating the instance-sizing decision from the actual compute provisioning step in a dynamic training pipeline?
Show the answer
Answer: c · It prevents out-of-memory crashes and over-provisioning by matching hardware to workload characteristics before nodes spin up
Decoupling sizing from provisioning allows a metadata-driven router to match instance families to workload requirements before any hardware is launched, preventing both over-provisioning and out-of-memory crashes. The cold-start distractor is wrong because reusing instances across job types would typically leave workloads on ill-suited hardware, defeating dynamic right-sizing.
Read the full bite: How would you architect dynamic training resource provisioning?
Question 26 of 30
What is the key principle enabling fast automated rollback after a failed model deployment?
Show the answer
Answer: b · Keeping the previous known-good version available so traffic can be rerouted to it instantly
Preserving the last known-good version (via blue-green or canary) lets traffic shift back instantly on failure. Deleting the new model loses lineage, and manual or roll-forward approaches are slower and riskier under an incident.
Read the full bite: Automated rollback for a failed model deploy
Question 27 of 30
When building a soft-multi-tenant Kubernetes ML platform, which combination best prevents noisy neighbors, blocks lateral movement, and enables accurate chargeback without dedicated infrastructure per tenant?
Show the answer
Answer: b · Namespaces with ResourceQuotas and LimitRanges, network policies blocking cross-namespace traffic, and tenant labels feeding a metering pipeline
B correctly combines logical resource boundaries, network segmentation, and labeled metering for cost attribution. A tempts by mentioning RBAC and labels but fails to enforce hard resource limits and conflates user identity with tenant identity; C proposes hard isolation that violates the soft-tenancy constraint; D relies on RBAC-only separation in shared namespaces and permits lateral movement.
Read the full bite: Design a multi-tenant ML platform with isolation, security, and cost attribution
Question 28 of 30
Which combination of strategies best addresses GPU resource contention when a platform team must support both long-running distributed training and low-latency model serving on the same A100 cluster?
Show the answer
Answer: a · Segmenting workloads by checkpointability and criticality, using PriorityClasses with preemption for training tiers, and reserving MIG slices for serving while keeping full GPUs for distributed training
The correct approach segments workloads by checkpointability and criticality, applies PriorityClasses with preemption for training, and uses MIG only for serving to maximize utilization. Option C is tempting because horizontal scaling and quotas seem like straightforward fixes, but the card explicitly flags buying GPUs without scheduling logic and relying solely on quotas as inadequate solutions that ignore workload heterogeneity.
Read the full bite: Propose an architectural solution for contended GPU training resources
Question 29 of 30
Which combination of controls best ensures that no single actor can undetectably alter the lineage from an approved dataset to a deployed model?
Show the answer
Answer: b · Content-addressing inputs, append-only provenance logging, build-time signing, and separation of audit duties
Encryption and Git do not prove lineage or prevent tampering, whereas the correct answer cryptographically binds inputs, uses an append-only log, signs the model, and separates audit duties to stop collusion. The blockchain distractor is tempting but represents the common mistake of choosing a public ledger without considering throughput, cost, or the lack of build-time signing and duty separation.
Read the full bite: Design a cryptographically verifiable ML audit trail from dataset to deployment
Question 30 of 30
Which approach best embodies a defense-in-depth strategy for protecting a deployed image classifier against adversarial evasion?
Show the answer
Answer: d · Layering JPEG preprocessing, embedding anomaly detection, graduated response to a secondary ensemble, and query rate limiting
Defense-in-depth requires combining training-time preprocessing with inference-time behavioral monitoring, graduated response, and operational controls. Option C relies on a single proactive layer that does not address the inference API attack surface, while option A represents security through obscurity and option B relies on superficial validation without anomaly detection or rate limiting.
Could you explain these out loud?
That is what an interview actually tests. Tezvyn gives you questions like these with what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.