Home / Topics

03

AI System Design

Designing production LLM systems: latency, cost, reliability, guardrails and evaluation.

Guides

01

A framework for AI system design interviews

A repeatable structure for 45-minute LLM system design rounds, with what interviewers listen for at each step.

10 min
02

Latency, cost and reliability

Concrete levers for making LLM features fast, affordable and resilient in production.

9 min
03

Guardrails, safety and prompt injection

Input and output moderation, prompt-injection defence, and designing agents with least privilege.

9 min

Interview questions

All 12 with answers →
  1. Design a customer-support chatbot that answers from a company knowledge base.
  2. How would you reduce the latency of an LLM feature that currently takes 8 seconds?
  3. Your LLM bill doubled last month. How do you investigate and reduce it?
  4. How do you get reliable JSON out of an LLM?
  5. What is prompt injection and how do you defend against it?