Scenario: Serving, Inference & Reliability
Questions covered
- Your self-hosted LLM endpoint has p95 latency of 12 s under load. Diagnose it and fix it.
- Explain the KV cache. How big is it?
- Why is decoding memory-bound while prefill is compute-bound?
- Explain speculative decoding.
- An upstream LLM provider has intermittent 5xx errors during peak hours. How do you keep your product reliable?
- How would you serve 50 fine-tuned customer-specific variants of a 7B model cost-effectively?
- What is the difference between TTFT, TPOT and throughput, and how do you trade them off?
- How do you capacity-plan an LLM service before launch?
This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.