Design Multi-Tenant GPU Inference Serving for Azure OpenAI

Last updated: November 29, 2026

Quick Overview

Design the serving layer that runs large language models for many Azure OpenAI customers on shared GPU clusters, meeting latency targets, enforcing per-customer quotas, and keeping GPUs highly utilized.

Microsoft
ML System Design
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design the serving layer that runs large language models for many Azure OpenAI customers on shared GPU clusters, meeting latency targets, enforcing per-customer quotas, and keeping GPUs highly utilized.

Azure OpenAI sells tokens per minute quotas and provisioned throughput on shared GPU fleets, so serving efficiency is margin and quota fairness is customer trust. The interviewer checks request routing, continuous batching, KV cache memory management, admission control and capacity planning.

What the Interviewer Expects
  • Define latency metrics (time to first token, inter-token latency) and quota model
  • Route requests by model, region and tenant tier
  • Use continuous batching and paged KV cache to raise throughput
  • Enforce per-tenant token rate limits and isolation for provisioned capacity
  • Separate or balance prefill and decode work
  • Plan for autoscaling, failover and model rollouts
Key Topics to Cover
LLM serving
continuous batching
KV cache
rate limiting
GPU utilization
multi-tenancy
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you guarantee capacity for a customer who bought provisioned throughput?
  • Why might long-context requests starve short chat requests, and how do you prevent it?
  • How do you roll out a new model version without dropping streaming sessions?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements
  • Streaming chat completions; targets like p95 time to first token under 1 s and steady inter-token latency.
  • Quotas in tokens per minute per deployment; provisioned throughput customers get reserved...
High-Level Design
  1. Gateway: auth, content filtering hooks, token estimation, per-tenant rate limiting (token bucket in a distributed store).
  2. Router: picks a model pool in the region by load, KV cache headr...

Submit Your Answer
Markdown supported