How the interviewer opens it
“Design a service that runs an LLM and streams generated text to clients. The service must adjust its capacity automatically as demand changes.”
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
- Model and interface
- Traffic
- Read and write mix
- Request size
- Latency
- Consistency and availability
- Durability and exclusions
- Hardware profile
- Capacity delays
- Admission, supply, and cost
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
- Accept text prompts and stream generated tokens
- Adjust GPU capacity automatically as demand changes
- Protect latency and reject requests when capacity is insufficient
- Release resources when clients cancel requests
Usually out of scope
- Model training and fine-tuning
- Retrieval and document search
- Custom models for individual users
- Billing
- Operation across multiple regions
What interviewers ask about
- Capacity during a sudden demand rise
- Demand can rise before either startup path completes. The admission target therefore requires a costly reserve, even when GPU allocation succeeds.
- Latency across concurrent requests
- Prompt work consumes compute in bursts. Active responses retain GPU memory, so one load measure cannot describe safe capacity.
- The lifetime of a response
- A response retains GPU state across many token steps. Capacity removal and node failure can break streams that the service already accepted.
Common mistakes
- Treat GPUs available for allocation as ready capacity.
- Promise the burst target without a quantified reserve and its GPU cost.
- Use request count or CPU load as the only capacity signal.
- Keep an unbounded queue when capacity cannot meet latency targets.
- Estimate GPU memory from model weights alone.
- Terminate replicas before active responses finish.
The bar by level
- Senior (L5/E5)
- Separates token work from memory limits. Quantifies the ready reserve and its cost. Tracks pending allocations. Meets the admission window without hiding startup failures. Handles partial responses and safe capacity removal.
- Staff (L6+/E6+)
- Defines capacity and latency invariants. Derives reserve bounds from the burst contract. Separates required capacity from optional margin. Tests control stability, allocation failures, and request mix changes. Explains which promises must change when the reserve costs too much.