InterviewStack.io LogoInterviewStack.io

Model Deployment and Serving Questions

Covers techniques and practices for deploying machine learning models and serving predictions to downstream systems or users. Key areas include selection among batch inference, real time inference, and streaming inference based on trade offs such as latency, throughput, cost, and prediction staleness; common serving architectures and where they are appropriate including dedicated inference services, serverless functions, and edge deployment; deployment strategies for safe releases such as canary, shadow, blue green, and rolling updates; packaging and operationalization practices including containerization, orchestration, model artifacts, model versioning, and model registry practices; scaling and performance considerations such as batching and micro batching, autoscaling, hardware acceleration and model optimization techniques; interface and integration concerns including request and response formats for application programming interfaces, timeouts and retry policies, and online versus offline feature pipelines and feature serving; validation and experimentation such as A and B experiments for live validation, metrics for rollout decisions, and monitoring for model performance degradation and data drift; and integration with continuous integration and continuous deployment pipelines including automated model tests, validation gates, rollout automation and rollback strategies. For junior candidates, expect discussion of trade offs between approaches, recognition of appropriate choices given constraints, and an understanding of a basic deployment architecture.

HardSystem Design
68 practiced
Design an architecture for low-latency personalized recommendations that maintain per-user session state and support 100k concurrent users. Discuss state partitioning, co-location of compute and storage, consistent hashing, and strategies to maintain <50ms tail latency.
HardTechnical
57 practiced
You're serving a large LLM on serverless GPU backends and seeing inconsistent warm states causing tail-latency spikes. Propose techniques (warm pools, precompiled kernels, model snapshots, light-weight proxies) to reduce tail latency while controlling cost, and evaluate trade-offs.
HardTechnical
54 practiced
Implement pseudo-code for a model canary controller in Python that routes a configurable percentage of traffic to a candidate model, computes sliding-window metrics (latency, error-rate, a primary business KPI), and automatically promotes or rolls back based on thresholds. Explain statistical safeguards you would use to avoid noisy decisions.
MediumTechnical
68 practiced
Design a test strategy to catch data leakage and ensure preprocessing parity between training and serving. Include unit tests for transformations, integration tests that compare sample outputs, and a staging shadow run that validates model outputs against expected baselines.
MediumSystem Design
60 practiced
Design an inference service for a moderately sized LLM (~7B parameters) that must handle 100 qps with average request length 200 tokens. Specify recommended compute (GPU type and count), batching strategy, autoscaling approach, model artifact storage, and discuss cost vs latency trade-offs.

Unlock Full Question Bank

Get access to hundreds of Model Deployment and Serving interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.