Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

4330 bites

Page 105

MLOps & Infrastructure1 min read

Fairness and robustness gates in CI/CD

Sliced fairness metrics across subgroups, robustness checks via perturbation and adversarial sets, all compared to thresholds that fail the build.

How would you design safe, automatic schema evolution in CI?
MLOps & Infrastructure3 min read

How would you design safe, automatic schema evolution in CI?

Tests whether you separate schema evolution from semantic validation. Strong answer: versioned data contracts allowing additive enums, unknown-category model buckets, and automated contract negotiation. Red flag: manual allow-lists or disabling validation.

MLOps & Infrastructure1 min read

CI/CD for microservice-based ML systems

Independent per-service pipelines, contract testing to protect interfaces and schemas, and incremental deploys (canary, blue-green); manage data and model contracts, not just code.

MLOps & Infrastructure2 min read

Describe the difference between online and batch inference.

Online serves single requests in ms on live endpoints; batch processes data offline with elastic compute.

Where to place feature transformations: client, serving API, or upstream service?
MLOps & Infrastructure2 min read

Where to place feature transformations: client, serving API, or upstream service?

Tests separation of concerns in ML systems. Client causes duplication and skew; serving API couples compute to requests; dedicated service adds a network hop but centralizes logic. Red flag: ignoring training-serving skew.

Design a system for batch scoring millions of customer records daily
MLOps & Infrastructure2 min read

Design a system for batch scoring millions of customer records daily

Shard jobs via scheduler; partition storage; right-size CPU/GPU on spot; retry.

MLOps & Infrastructure2 min read

How would you systematically debug an inference API latency breach?

This tests structured debugging across the full inference stack. A strong answer traces the request path from ingress to GPU, splits TTFT from token-generation latency, inspects queuing and batching, then applies targeted fixes.

Architectural challenges for deploying ML models on resource-constrained edge devices
MLOps & Infrastructure2 min read

Architectural challenges for deploying ML models on resource-constrained edge devices

Tests Edge MLOps architecture under severe constraints. Strong answers hit quantization and delta OTA updates for flaky networks, power-aware scheduling, and closed-loop drift detection.

Describe the difference between online and batch inference.
MLOps & Infrastructure2 min read

Describe the difference between online and batch inference.

Online uses autoscaling APIs for millisecond-to-second latency; batch uses scheduled compute for minute-to-hour latency.

MLOps & Infrastructure2 min read

Deploy a trained model as a containerized REST API

This tests practical MLOps fluency. A strong answer covers loading the artifact, wrapping it in a web server, building a Dockerfile, and exposing health and predict endpoints. Red flag: conflating training with serving or omitting resource limits.

MLOps & Infrastructure2 min read

How would you systematically diagnose high latency in an online inference service?

Check p90/p99 and TTFT to split queuing from compute; inspect queue depth, batch size, GPU, and benchmarks; check cache.

Explain model quantization, its benefits, drawbacks, and validation approach
MLOps & Infrastructure2 min read

Explain model quantization, its benefits, drawbacks, and validation approach

Tests precision trade-offs in production. Answer: define lowering weights from fp32 to int8/int4; cite memory and latency gains versus accuracy loss; validate with downstream benchmarks and shadow A/B. Red flag: treating as lossless or skipping task metrics.

MLOps & Infrastructure2 min read

How would you design an A/B test for two live ML models?

Tests production experimentation rigor beyond random splitting. Strong answers cover: consistent user hashing for sticky assignment, isolated feature stores, guardrail metrics, and pre-calculated statistical power.

Design cost-effective inference for spiky traffic without idle GPUs
MLOps & Infrastructure2 min read

Design cost-effective inference for spiky traffic without idle GPUs

Tests designing inference that cuts idle GPU cost during troughs yet handles spiky peaks with low latency via SageMaker blue/green fleets, production variants, and CloudWatch baking periods. Red flag: always-on GPU pools with naive auto-scaling.

MLOps & Infrastructure2 min read

Design a multi-model serving architecture for infrequently used models

Tests sparse-traffic cost efficiency via shared compute and dynamic loading. Strong answers: LRU cache on fast storage, scale-to-zero with async preload, pinned hot models, per-model quotas.

Differences between monitoring a traditional REST API and a production ML model
MLOps & Infrastructure2 min read

Differences between monitoring a traditional REST API and a production ML model

Contrast latency/errors with ML signals like data drift and training-serving skew against baselines, noting ground truth delays.

MLOps & Infrastructure1 min read

Detecting data drift on a continuous feature

Data drift is when serving feature distributions shift from training; detect with a Kolmogorov-Smirnov test comparing distributions; a small p-value signals drift to alert on.

Design a system to monitor a real-time prediction service for feature drift
MLOps & Infrastructure2 min read

Design a system to monitor a real-time prediction service for feature drift

Async feature logging, distribution comparison via PSI/KS against training baseline, and threshold-based anomaly alerts.

Model output distribution shifts. What are root causes and next steps?
MLOps & Infrastructure2 min read

Model output distribution shifts. What are root causes and next steps?

This tests covariate vs label shift vs concept drift when outputs shift. A strong answer checks features before labels, then feedback loops or staleness. A red flag is generic drift without separating P(X), P(Y), and P(Y|X).

MLOps & Infrastructure2 min read

Design an automated system to diagnose model performance drop root causes

Tests causal attribution between pipeline bugs and drift. Strong answers sequence schema/null audits, feature drift via PSI/KS, then concept drift via holdout decay. Red flag: skipping pipeline checks to retrain immediately.