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.

MediumSystem Design
19 practiced

Design a scalable batch inference pipeline that re-scores 100M user-item pairs nightly. Describe compute choices (e.g., Spark on EMR, Dataflow), handling of model artifacts, how you'd minimize cost (spot instances, caching), and how you'd validate results before publishing.

HardSystem Design
18 practiced

Design an architecture to meet low-latency inference SLOs (for example p50=20ms, p99=200ms) for a heavy model. Discuss serving frameworks to consider, batching and dynamic batching strategies, autoscaling policies, warm pooling and cold-start mitigation, model partitioning or compilation (ONNX/XLA), hardware selection (CPU/GPU/TPU), caching layers, and trade-offs between throughput and tail latency.

That is every published Model Deployment and Inference Optimization question for Data Engineer so far. Browse the other topics in this category, or practice this one interactively.