How the interviewer opens it
“Design a SaaS platform where teams upload machine learning models and expose them through hosted APIs. Multiple customer teams share the platform.”
The prompt is vague on purpose. The first minutes are for you. Reduce the prompt to the core features and agree on the numbers before you draw.
What to clarify first
- Product and model support
- Tenants and access
- Inventory and artifact size
- Traffic and read-to-write mix
- GPU capacity and model load time
- Latency
- Correctness and availability
- Durability and deletion
- Quotas and overload
- Infrastructure and boundaries
The interviewer has the answers. In a SysRound round, Alex gives these answers, as a real interviewer does.
Scope of a strong answer
Core requirements
- Register and delete private model versions for each tenant.
- Create, update, and delete hosted endpoints.
- Run inference through an API with tenant credentials.
- Enforce tenant access, request limits, and GPU quotas.
Usually out of scope
- Model training
- A public model marketplace
- Arbitrary customer code
- Payments and invoices
- Cross-region failover
What interviewers ask about
- Tenant access
- Private artifacts, credentials, routes, and GPU processes cross service boundaries. A missing check can expose another tenant's model or data.
- Model changes and removal
- Artifacts, replicas, and routes change at different times. A model change can consume extra quota or conflict with a deletion request.
- Shared GPU capacity
- GPU capacity takes time to add. Uneven demand and slow model loads can exhaust capacity before replacement replicas become ready.
- Deployment code and tests
- External actions can succeed without a reply. The code must recover uncertain outcomes, and tests must verify behavior without a GPU cluster.
Common mistakes
- The design treats model deployment and inference as one synchronous request.
- The design adds tenant IDs but omits ownership checks at resource boundaries.
- The design promises outage survival but leaves authorization expiry and revocation rules in conflict.
- The design preserves old replicas but leaves quota-blocked rollouts without an observable state.
- The design permits version deletion without rules for endpoint references and live replicas.
- The design uses many classes and mocks but leaves state ownership, retry behavior, and database constraints unclear.
The bar by level
- Senior (L5/E5)
- Defines immutable versions, safe deletion, replica readiness, and retry behavior. Handles concurrent updates and quota-blocked rollouts. Reconciles authorization expiry with outage behavior. Tests lifecycle failures and estimates GPU capacity.
- Staff (L6+/E6+)
- Defines guarantees across authorization, metadata, artifacts, routes, and runtime state. Resolves concurrent deletion, stale controllers, quota reservations, and uncertain external outcomes. Defines service behavior during partial outages. Distinguishes hardware evidence from simulated tests.