LLM Interview Questions I have Been Preparing Recently
I’ve been preparing for LLM/GenAI interviews, and one thing I noticed is that the questions are moving beyond basic “What is a transformer?” type questions.
A few areas that seem especially important:
LLM Fundamentals
- Why do transformers use self-attention?
- What is the difference between encoder-only, decoder-only, and encoder-decoder architectures?
- Why is KV caching important during inference?
- What actually happens when we increase the context window?
RAG
- When would you use RAG instead of fine-tuning?
- How do you choose chunk size and overlap?
- How would you evaluate retrieval quality?
- What causes a RAG system to hallucinate even when the correct document exists?
Fine-tuning
- Full fine-tuning vs LoRA vs QLoRA?
- What are the trade-offs between RAG and fine-tuning?
- How would you build a dataset for instruction tuning?
LLM System Design
- How would you design an LLM application for millions of users?
- How do you reduce inference latency and cost?
- How would you handle prompt injection?
- How would you evaluate an LLM system before production?
Agents
- What makes an AI system “agentic”?
- How should tool calling be designed?
- How do you prevent agents from getting stuck in loops?
- When should you use a deterministic workflow instead of an agent?
For interviews, I think being able to explain the trade-offs is much more useful than memorizing definitions.
For example:
RAG vs Fine-tuning
RAG → useful when knowledge changes frequently or answers need grounding in external data.
Fine-tuning → useful when you want to change model behavior, style, task specialization, or response patterns.
In real systems, you may end up using both.
I collected a larger set of LLM interview questions here for anyone preparing for GenAI/LLM roles:
https://agenticprep.ai/guide/blog/llm-interview-questions
Would also be interested to hear what LLM/GenAI questions people have encountered recently.

