mlprep
Medium12 min·2 rounds·Serving Performance

How do you measure and optimize TTFT, TPOT, and goodput under production SLA constraints?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

A teammate benchmarks two LLM serving configurations and reports that Config B achieves 2× higher tokens/second than Config A, recommending we ship Config B immediately. Why might that be a mistake? Walk me through the metrics that actually matter for production LLM inference.

Ready to compare your reasoning?
Interviewer

Suppose your interactive chat service is hitting its TPOT SLA comfortably (22ms/token), but P95 TTFT has spiked to 3.5 seconds during peak traffic. How do you diagnose the root cause and fix it systematically?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • Why can a request have an acceptable TPOT of 25ms while still feeling laggy to a streaming user?
  • How do your optimization priorities differ between a streaming chat UI and a non-streaming agentic JSON tool-calling pipeline?
  • How does KV cache utilization approaching 95% affect P99 TTFT even when GPU compute utilization looks moderate?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions