sagelearnai

Scenario: Serving, Inference & Reliability

Questions covered

  1. Your self-hosted LLM endpoint has p95 latency of 12 s under load. Diagnose it and fix it.
  2. Explain the KV cache. How big is it?
  3. Why is decoding memory-bound while prefill is compute-bound?
  4. Explain speculative decoding.
  5. An upstream LLM provider has intermittent 5xx errors during peak hours. How do you keep your product reliable?
  6. How would you serve 50 fine-tuned customer-specific variants of a 7B model cost-effectively?
  7. What is the difference between TTFT, TPOT and throughput, and how do you trade them off?
  8. 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.

See plans →

Last reviewed 2026-11-05.