Design Low-Latency LLM Serving for Alexa Conversational Answers
Last updated: November 29, 2026
Quick Overview
Alexa uses a large language model to answer open-ended spoken questions. Design the serving system so that the first spoken words begin within about a second, at peak evening traffic, at an acceptable cost per request.
Amazon
November 29, 20260
0
0 solved
Alexa uses a large language model to answer open-ended spoken questions. Design the serving system so that the first spoken words begin within about a second, at peak evening traffic, at an acceptable cost per request.
A hard LLM infrastructure design question in the style of Amazon devices and Alexa AI teams. The interviewer is probing whether you understand where latency goes in a voice pipeline, how batching, KV caching and speculative decoding affect it, and how to keep cost under control at Echo-scale traffic.
What the Interviewer Expects
- Breaks the latency budget across ASR, routing, prefill, decode and TTS
- Streams tokens into incremental text-to-speech
- Uses continuous batching and KV cache management
- Routes requests between model sizes by difficulty
- Plans capacity for daily peaks and regional failover
- Includes safety and grounding without blocking the first words
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- Where would you put the safety filter without adding a second of delay?
- How do you handle a request that needs live data like sports scores?
- What is the effect of longer conversation history on cost and latency?
- How would you degrade if GPU capacity in a region is lost?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
M
- Spoken question in, spoken answer out. Target: first audio within about 1 second after the user stops speaking (end of speech detected).
- Answers short: typically 30 to 80 tokens.
- Peak traffic in...
L
- ASR streams partial transcripts; end-of-speech detection finalizes the text.
- Router: a small classifier decides whether the request goes to a deterministic skill (timers, smart home), to...