Inference, Serving & Production·Question 39 of 76Advanced

Design the SLOs for a new LLM-powered feature. What do you promise, and how do you measure it?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Start from what the user perceives, per interaction pattern - one global "latency SLO" is a category error:

  • Interactive chat (streamed): P99 TTFT (say, < 1.5 s; P50 a few hundred ms) + P99 inter-token latency or a stream-rate floor (tokens/s comfortably above reading speed). Total duration matters less because streaming hides it.
  • Autocomplete/inline suggestions: total completion latency (P95 < ~300-500 ms) - TTFT alone is meaningless since output is short and unusable until whole.
  • Agentic/multi-step tasks (non-streamed steps): end-to-end task completion time budget, decomposed into per-step budgets - remembering tails compound across sequential calls.
  • Batch/background: freshness SLO (results within N hours) + completion rate, not latency.
Full worked answer

Start from what the user perceives, per interaction pattern - one global "latency SLO" is a category error:

  • Interactive chat (streamed): P99 TTFT (say, < 1.5 s; P50 a few hundred ms) + P99 inter-token latency or a stream-rate floor (tokens/s comfortably above reading speed). Total duration matters less because streaming hides it.
  • Autocomplete/inline suggestions: total completion latency (P95 < ~300-500 ms) - TTFT alone is meaningless since output is short and unusable until whole.
  • Agentic/multi-step tasks (non-streamed steps): end-to-end task completion time budget, decomposed into per-step budgets - remembering tails compound across sequential calls.
  • Batch/background: freshness SLO (results within N hours) + completion rate, not latency.

Beyond latency: availability (successful-response rate, with degraded-mode responses counted separately), quality guardrails where measurable (schema-valid output rate, tool-call validity rate, refusal/error rate) - a fast wrong answer isn't meeting the objective - and often a cost SLI internally (per-request cost distribution) even if it's not a promise.

Measurement discipline: measure at the client edge or gateway, not just the server (users experience the network and your middleware); percentiles per feature per prompt-length bucket; define events precisely (TTFT = request sent → first content token, excluding provider handshake?); include timeouts and errors in the latency distribution rather than dropping them (classic gaming). Set targets from data - run the feature, look at the achievable curve, pick targets you meet ~99%+ of the time with headroom - then attach an error budget and agree on what happens when it burns: freeze risky changes, shed load, scale.

Finally, wire SLOs to action: alerts on budget burn rate (not point-in-time blips), dashboards that decompose breaches (queueing vs prefill vs provider vs network), and load-shedding priorities that explicitly protect the SLO'd interactive tier by sacrificing background traffic first.

What a good answer covers

  • Interactive chat (streamed)
  • Autocomplete/inline suggestions
  • Agentic/multi-step tasks (non-streamed steps)
  • Batch/background: freshness SLO (results within N hours) + completion rate, not latency
  • Beyond latency: availability (successful-response rate, with degraded-mode responses counted…

Key terms: Interactive chat (streamed) · Autocomplete/inline suggestions · Agentic/multi-step tasks (non-streamed steps) · Batch/background · availability · quality guardrails · cost SLI · error budget

Interviewer follow-ups to expect

  1. Your provider's P99 is worse than the SLO you want to offer - what are your options?

  2. Why measure timeout-terminated requests inside the latency distribution?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep