How to think and answer GenAI questions
Interview and Build Playbook
5-step method, RAG vs fine-tuning, decoder table, production checklist, classic traps.
Live · updated 22 Nov 2026, 1:01 pm~3 min read
On this page (7 sections)
GenAI interviews are not memory tests. They ask "how would you build X?" and "why this and not that?". Good answers name the trade-off, not just the tool.
The 5-step method (use on every design question)
- Clarify the goal. Who is the user? What must be right: facts, speed, cost, safety?
- List the constraints. Data size, privacy, latency, budget, languages, traffic.
- Start with the simplest thing. Plain prompt first. Add RAG, tools or fine-tuning only when the simple thing fails.
- Name the failure modes. Hallucination, prompt injection, slow answers, high bill, stale data.
- Say how you will measure it. Evals, golden questions, user feedback, cost per request.
Prompting vs RAG vs Fine-tuning (the most asked question)
| Need | Use | Why |
|---|---|---|
| Change tone, format, role | Prompting | Cheapest, instant, no training |
| Answer from private or fresh documents | RAG | Facts live in your data, not in the model |
| Teach a consistent style or narrow skill at scale | Fine-tuning | Bakes behaviour into the model |
| Take actions (search, book, send) | Tools / agents / MCP | The model decides, your code acts |
| Small data that fits in the window | Long context | No pipeline needed |
Interview words decoder
| Interviewer says | Think |
|---|---|
| "Model makes things up" | Hallucination → RAG, citations, lower temperature, evals |
| "Private company documents" | RAG with access control |
| "Answers are slow" | Streaming, smaller model, caching, parallel calls |
| "Bill is too high" | Cheaper model routing, prompt caching, shorter context, batch API |
| "Needs to call our systems" | Function calling or an MCP server |
| "Many steps, unclear path" | Agent loop with limits |
| "Steps are fixed" | Workflow (prompt chain), not an agent |
| "User can inject text" | Prompt injection defence, least privilege tools |
| "How do you know it works?" | Eval set + LLM-as-judge + human review |
Standard GenAI app blueprint
- Frontend (chat UI with streaming)
- API layer (auth, rate limits, logging)
- Orchestration (prompt, tools, memory, retrieval)
- Model provider (with a fallback model)
- Data layer (vector DB + normal DB + cache)
- Guardrails (input and output checks)
- Observability (traces, cost, quality scores)
Production checklist
- Streaming responses
- Timeouts, retries and a fallback model
- Token and cost limits per user
- Prompt injection and PII checks
- Eval set that runs on every prompt change
- Tracing of every call
- Human approval for risky actions
Classic traps
- "Fine-tune to add new facts" is usually wrong. Use RAG for facts.
- "Use an agent" for a fixed 3-step job is over-engineering. Use a workflow.
- "Bigger context window replaces RAG" is wrong for cost, speed and large data.
- "Temperature 0 means always the same output" is not guaranteed.
- "The model remembers the last chat" is wrong. You must send the history again.
How to give a strong answer
- Restate the problem in one line.
- Give the simple design first.
- Say what you would add if it fails, and why.
- End with how you would measure and monitor it.