InterviewStack.io LogoInterviewStack.io

Model Deployment and Inference Optimization Questions

Serving trained models efficiently in production. Covers deployment and containerization, real-time and batch serving, latency budgets, throughput and cost optimization, quantization and model compression, and online/real-time learning constraints. Emphasizes meeting production performance targets without sacrificing model quality.

MediumTechnical
23 practiced

You have a Kubernetes cluster with mixed CPU and GPU nodes and multiple ML services competing for GPUs. Describe a strategy to schedule GPU workloads, avoid fragmentation, support preemption, and ensure fair sharing across teams. Discuss node labels, taints and tolerations, device plugins, gang scheduling, and binpacking versus spreading approaches.

EasyTechnical
24 practiced

Explain the difference between liveness and readiness probes in Kubernetes and give a concrete example of how you would configure each for an ML inference container that takes significant time to load a model at startup and serves requests afterwards. Describe what happens if these probes are misconfigured in a production cluster.

MediumTechnical
18 practiced

Explain Kubernetes autoscaling options for ML inference workloads including Horizontal Pod Autoscaler, Vertical Pod Autoscaler, Cluster Autoscaler, and custom metrics-based autoscaling. Describe tradeoffs when autoscaling for latency-sensitive workloads versus batch workloads and strategies to handle cold starts and warm pools.

HardSystem Design
24 practiced

Design a Kubernetes-based serving platform for ML models that must support multi-model deployment, autoscaling, per-model resource isolation, and A/B testing. Define key Kubernetes objects, artifact management for models, traffic routing strategy for experiments, and techniques to mitigate cold starts for large models. Assume 500 concurrent requests distributed across 100 models and a 99th percentile latency SLO of 200 ms.

MediumSystem Design
18 practiced

Design a Kubernetes Deployment manifest for a model server that supports rolling updates with zero-downtime. Your answer should specify strategy settings, readinessProbe and livenessProbe examples appropriate for a model with warm-up time, and a preStop hook to gracefully drain in-flight requests. Explain choices and how they avoid dropped requests during rollout.

Unlock Full Question Bank

Get access to all 7 Model Deployment and Inference Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.