Course module

How to Think in AI System Design Interviews

Most candidates lose AI system design interviews before architecture starts.

4 min read• Markdown-first learning note

Most candidates lose AI system design interviews before architecture starts.

They hear the prompt and immediately draw boxes:

That is not system design. That is component listing.

A stronger answer starts by making the problem smaller, clearer, and measurable.

The interviewer's hidden question

When an interviewer asks:

Design an AI assistant for customer support.

They are not only asking whether you know RAG or agents.

They are checking whether you can reason about:

  • user workflow
  • product scope
  • data sources
  • model behavior
  • risk
  • evaluation
  • latency and cost
  • failure handling
  • rollout plan

Your answer should prove that you can design a system that survives real users.

A simple framework

Use this sequence:

Rendering diagram...

I call this the S-U-S-D-A-F-E flow:

StepMeaningWhat to say
SScopeWhat are we building and not building?
UUsersWho uses it and what task do they complete?
SSuccessWhat does good output mean?
DDataWhat knowledge or tools does the system need?
AArchitectureWhat components are needed and why?
FFailuresWhat can go wrong?
EEvaluationHow do we measure and improve it?

Example prompt

Design an internal data assistant for business analysts.

A weak answer starts with:

We will use LangChain, vector DB, GPT-4, and a SQL agent.

A stronger answer starts with:

I would first clarify what analysts need: finding datasets, understanding metric definitions, writing SQL, or debugging query results. These workflows have different risk levels, data permissions, and evaluation criteria.

That opening sounds senior because it separates the product problem from the tools.

Step 1: scope the problem

Ask:

  • Is this assistant for dataset discovery, SQL generation, dashboard explanation, or all of them?
  • Is it read-only or can it execute queries?
  • Who are the users: analysts, managers, engineers, or executives?
  • What data systems are involved?
  • What should the assistant refuse to do?

You do not need ten questions. Ask enough to define the first version.

Step 2: define success

Bad success metric:

The answer should be accurate.

Better success metrics:

  • correct dataset suggested in top 3
  • SQL passes syntax check
  • answer cites metric definition
  • user accepts answer without escalation
  • no restricted table is exposed
  • latency under five seconds for common questions

Specific metrics make the design easier.

Step 3: choose architecture based on risk

Not every AI assistant needs the same architecture.

WorkflowRiskBetter design
Answer policy questionMediumRAG with citations
Find datasetMediumSearch plus metadata ranking
Write SQLHighSQL generation with validation and review
Execute database updateVery highUsually avoid or require approval
Summarize public docsLowRetrieval plus summarization

This is where many candidates sound shallow. They pick tools before classifying risk.

Step 4: explain failure modes

For an AI system, failure modes are not optional. They are part of the design.

For a data assistant:

  • wrong metric definition
  • restricted table leak
  • hallucinated column
  • expensive query
  • stale dataset description
  • answer without citation
  • no fallback when confidence is low

A good design shows how these failures are detected or prevented.

Step 5: evaluation plan

You need at least three layers of evaluation:

  1. Retrieval eval: did we fetch the right source?
  2. Output eval: did the model produce a correct and grounded answer?
  3. Workflow eval: did the user complete the task?

For SQL generation, add:

  • syntax validation
  • dry run
  • cost estimate
  • table permission check
  • human approval for risky queries

A strong answer skeleton

Use this in interviews:

Practice exercise

Pick one prompt:

  1. Design a customer support AI assistant.
  2. Design a campus admission chatbot.
  3. Design a pharmacy Q&A assistant.
  4. Design an AI assistant for internal company policies.

Write answers for:

  • v1 scope
  • users
  • success metrics
  • required data
  • architecture
  • failure modes
  • evaluation
  • rollout

Summary

Do not start with tools.

Start with the workflow, risk, and evaluation bar.

A good AI system design answer shows that you can reason about users, evidence, model behavior, safety, and operations together.