AI engineer roles are new, and the interviews are still settling. That is good news: the questions are less predictable than classic coding interviews, but they cluster around a handful of topics. If you can explain large language models, retrieval, evaluation, and agents in plain words, you are most of the way there.
Here are the questions that come up most, grouped by topic, with plain explanations and how to answer. Terms are explained the first time they appear.
Core large language model questions
A large language model (LLM) is the AI that generates text, like the one behind a chatbot. Interviewers want to know you understand how to use one well, not that you can build one from scratch.
- What is a token, and why does it matter for cost and limits? (A token is a chunk of text, roughly a short word; models charge and limit by tokens.)
- What is the context window, and what do you do when your input is too big for it? (The context window is how much text the model can read at once.)
- What is temperature, and when would you turn it up or down? (Temperature controls randomness: low for factual, steady answers; higher for creative ones.)
- What causes hallucinations, and how do you reduce them? (A hallucination is when the model states something false with confidence.)
- When would you fine-tune a model versus just change the prompt? (Fine-tuning retrains the model on your examples; it is costly, so most teams try prompting and retrieval first.)
How to approach them: answer in plain words, then give a short real example. “To reduce hallucinations, I ground the model in real documents and ask it to say when it does not know.”
Prompting questions
- What makes a good prompt? (A clear instruction, the needed context, an example or two, and a defined output format.)
- What is few-shot prompting? (Giving the model a couple of examples of the task before asking it to do a new one.)
- How do you get consistent, structured output from a model? (Ask for a fixed format like JSON, give an example, and validate what comes back.)
- How do you stop a prompt from being misused? (Separate the user’s input from your instructions, and check the output before trusting it.)
Retrieval (RAG) questions
RAG (retrieval-augmented generation) means the system looks up relevant documents first, then asks the model to answer using them. It is the most common pattern for “answer from our own data” products, so it comes up a lot.
- Walk me through how a RAG system works end to end.
- What is an embedding, and what is a vector database? (An embedding turns text into a list of numbers that captures its meaning; a vector database stores those and finds the closest matches by meaning.)
- How do you choose what to retrieve, and how much?
- Why might a RAG system give a wrong answer even with the right documents, and how do you debug it?
- How do you keep answers fast and cheap? (Retrieve only the few best chunks, and cache common questions.)
How to approach the end-to-end one: narrate the flow. “Split the documents into chunks, turn each into an embedding, store them in a vector database. At query time, embed the question, find the closest chunks, and send those plus the question to the model to write a grounded answer.” For the design version of this, see the AI-system example in our system design interview questions and the three worked AI system design questions.
Evaluation questions
This separates strong candidates. Anyone can get a model to answer once; good engineers know if it is any good.
- How do you measure whether an LLM feature is working?
- How do you test something whose output changes every time?
- What is an LLM-as-a-judge, and what are its risks? (Using one model to score another model’s answers; fast and cheap, but it can be biased or wrong.)
- How would you catch quality dropping after a model or prompt change?
How to approach them: show you think about this before shipping. “I build a small set of real questions with known good answers, score new versions against it, and watch for regressions after any change.”
Agent questions
An agent is an AI that can take actions in steps, like calling tools or searching, not just answering once.
- What is an AI agent, and when is one worth the extra complexity?
- What are the main failure modes of agents? (Getting stuck in loops, taking wrong actions, and cost running up.)
- How do you keep an agent safe and within limits? (Limit its tools, cap its steps, and check its actions.)
Behavioral and system questions
- Tell me about an AI feature you built. What worked and what did not?
- How did you handle cost and latency in a model-powered feature?
- Describe a time a model behaved unexpectedly in production.
How to approach them: use the STAR method, and be honest about trade-offs. In 2026, naming the cost-versus-quality trade-off is exactly what interviewers want to hear.
A simple plan to prepare
- Be able to explain tokens, context windows, embeddings, RAG, and agents in plain words. Clarity beats jargon.
- Build or study one small RAG project end to end so the flow is real to you.
- Prepare one strong story about an AI feature, including what went wrong.
- Rehearse the format. These loops often mix a coding round, a system design round, and behavioral. See the types of interviews.
How InterviewStorm helps
InterviewStorm fits the mixed shape of these interviews.
- On a live coding round, capture the problem and get a structured, explained approach. AI coding interview assistant.
- On a system design round, it gives you a structure to talk through, including modern AI-system designs. System design help.
- On behavioral rounds, it drafts answers from your resume so your real projects come through. Free 20-minute trial, no credit card.
Follow each employer’s interview rules. Do not use InterviewStorm in proctored tests, exams, or anywhere AI help is not allowed.
Share Articles:
Similar Posts