Preparing your design workspace

Loading the problem and your latest saved attempt…

Cloud AI Inference Platform

Design a multi-tenant platform for packaging, versioning, autoscaling, routing, and observing real-time and batch model inference.

Problem statement

For this exercise, assume customers register versioned model artifacts and runtime images, deploy them to CPU or GPU pools, and invoke real-time streaming or batch inference.

The platform supports autoscaling, model-aware routing, tenant isolation, latency SLOs, cost controls, metrics, canary and shadow releases, and failure recovery. Exclude model training and accelerator hardware design.

What to build

  1. Validate and activate an immutable model, runtime, hardware profile, scaling policy, and rollout configuration.
  2. Authenticate, route, batch where allowed, stream results, and enforce tenant limits and deadlines.
  3. Autoscale capacity, compare canary or shadow traffic, observe quality and performance, and roll back safely.

At scale

  • Host 10,000 model deployments across CPU and multiple GPU profiles.
  • Serve 100,000 real-time requests per second plus petabyte-scale batch jobs.
  • Meet per-deployment p95 latency SLOs from 100 ms to 5 seconds and stream first tokens where applicable.
  • A release rollback must stop new routing to a bad model within 30 seconds without corrupting in-flight results.