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.

HardSystem Design
17 practiced

Design a model serving architecture capable of handling 1 million requests per second at peak for a stateless classification model with a p95 latency target of 10 ms globally. Consider options such as edge caching, regional model replicas, serverless versus provisioned instances, model sharding, network and CDN strategies, and cost-performance tradeoffs.

HardSystem Design
18 practiced

Design a scalable real-time recommendation inference system that needs to serve 100,000 QPS with p99 latency under 5ms. Describe architecture components (feature store, cache, model servers), model sharding or replication strategy, caching layers, batching trade-offs, hardware choices (CPU vs GPU), network topology, and how you would test that the system meets SLOs.

HardTechnical
17 practiced

Create a decision matrix to evaluate model formats (TensorFlow SavedModel, TorchScript, ONNX, TFLite) for heterogeneous deployment targets. Columns should include runtime support, hardware acceleration compatibility, binary size, portability, ease of debugging, and optimization tooling. Recommend which format to use for server GPU, mobile, and microcontroller deployments and justify your choices.

HardSystem Design
22 practiced

Design a multi-tenant inference platform that can serve hundreds of diverse models with varying sizes and resource needs, while providing isolation, fair GPU sharing, fast cold-starts, and per-tenant SLAs. Describe scheduling, model packing (bin-packing), admission control, resource guarantees, and strategies to handle noisy neighbors.

HardSystem Design
20 practiced

Design a cost-optimized inference platform for large batch GPU workloads that leverages spot instances to reduce cost while meeting SLAs. Explain spot pool selection, checkpointing or stateful recovery, estimation of risk vs savings (expected cost model), and system design for graceful degradation when spot instances are reclaimed.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.