We use cookies for site analytics. Accept to help us understand how the site is used. See our Privacy Policy for details.
Prefill vs decode, paged KV cache, prompt caching, vector search + reranking, groundedness evals, and why you autoscale on queue depth measured in tokens - not requests.
Design the serving platform behind an AI assistant product: users ask questions, the system retrieves relevant documents from a private corpus (RAG), assembles a prompt, runs it through a large language model on a GPU fleet, and streams the answer back token by token with citations.
This is the AI-era version of "design a web service" and it's rapidly becoming a standard question for AI-infra and senior backend loops. It layers two hard problems: an inference serving layer where the unit of work is a token (not a request) and the bottleneck is GPU memory bandwidth, and a retrieval pipeline whose quality silently determines whether the model answers or hallucinates. Strong candidates separate prefill from decode, own the cost-per-token math, and treat retrieval quality as a measurable, eval-gated system - not a vibes-based prompt tweak.
Asking these before diving into a solution is the difference between a "hire" and a "no signal" rating. Pick the questions whose answers would change your design.
Capacity estimation · architecture with all 8 components explained · 6 deep dives · trade-off analysis · 8 common follow-up questions
Get full access to gitGood.dev with a subscription.
Try everything free for 10 days. Cancel anytime.
10-day trial, then $5/mo - or $40/yr ($3.33/mo, save 33%). Cancel anytime.
Online vs batch inference, GPU utilization tricks, autoscaling for spiky load, A/B testing models, and the feature store that decouples training from serving.
Consistent hashing, eviction, replication, and what really happens when a single hot key takes down the cluster.
Partitions, consumer groups, replication, retention, and the exactly-once myth - the implementation details Kafka users gloss over until they don't.
Inverted indexes, BM25 ranking, prefix tries, and the p99 < 100ms latency budget that drives every architectural choice.
Reading is the floor. The interview signal is in walking through this live with someone probing follow-ups. Use the AI mock interview to practice talking through requirements, architecture, and trade-offs out loud.
Start an AI mock interview →