Design KV-cache management for an LLM serving fleet
HardSystem design50 minSWEREMLEPro outline
The question
Long conversations and shared system prompts mean the same prefixes are processed again and again. Design how the serving fleet stores, reuses and evicts KV cache across requests and machines.
What the interviewer is looking for
- Sizes KV memory per token
- Paged allocation to avoid fragmentation
- Prefix reuse with hashing of token blocks
- Eviction and tiering across GPU, CPU and disk
- Cache-aware routing
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported OpenAI question type: ChatGPT-style infrastructure: multi-tenant chat, a moderation pipeline, token billing, GPU scheduling or KV-cache management.
Reported in: techinterview.org
Practice question written by BlogLLM based on publicly reported interview formats. Not an official OpenAI question.