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
ML System Design
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

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
LLM inference
continuous batching
KV cache
speculative decoding
streaming TTS
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample 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
  1. ASR streams partial transcripts; end-of-speech detection finalizes the text.
  2. Router: a small classifier decides whether the request goes to a deterministic skill (timers, smart home), to...

Submit Your Answer
Markdown supported