AI engineer interview questions, by stage, and what a strong answer shows
Four stages, practice questions for each, and the signal an interviewer is looking for, built around production LLM work.
Contents
- How are AI engineer interviews structured?
- What coding questions do AI engineer interviews ask?
- What LLM system design questions come up?
- What evaluation and debugging questions do interviewers ask?
- Do AI engineer interviews include behavioral and classic machine learning questions?
- Can you use AI tools in an AI engineer interview?
- How should you prepare?
- Common questions
In short
- We group AI engineer interview questions into four stages: coding against an LLM API, LLM system design, evaluation and debugging, and behavioral. We did not source a standard loop for the role, so this grouping is a study structure based on what current postings ask for 1,2.
- Evaluation is named in the postings we read: Databricks asks for expertise in deploying production-grade GenAI applications, including evaluation and optimizations, and Scale AI lists designing and maintaining evaluation frameworks as a responsibility 1,2. Be ready for questions about how you would measure quality, not only how to build.
- We think strong system design answers show restraint, and Anthropic's guide to agents points the same way: it recommends finding the simplest solution possible, adding complexity only when needed, and notes that agentic systems often trade latency and cost for better task performance 3.
- Know the documented failure modes. 2023 papers reported that LLM judges show position, verbosity and self-enhancement biases 4, that models tested used information in the middle of a long input worse than at the ends 5, and that retrieved text can carry injected instructions 6. Newer models may behave differently, so test your own system.
- Rules on AI use differ by employer and round. Anthropic encourages AI for preparation, expects live interviews without it unless told otherwise, and explicitly allows it on one team's take-home 7,8. Ask before each round.
We group AI engineer interview questions into four stages: coding against an LLM API, designing a system around a model, evaluating and debugging that system when its output changes from run to run, and behavioral questions about working through unclear problems with other people. We did not source a standard loop for the role, so the questions below are practice questions we wrote from what current job postings ask for, not questions reported from any company 1,2. The notes on what a strong answer shows are our judgment, not any company's scoring rubric. In our judgment, a strong answer in every group names a trade-off and says how you would measure it.
See also how AI engineers differ from ML engineers and how software engineers make the move.
How are AI engineer interviews structured?
We did not source a published standard. Anthropic's careers page says that for technical roles it uses live coding tools such as Colab and CodeSignal, and that candidates can look things up 9. Job postings say more about content. Databricks' US posting for an AI Engineer in forward deployed engineering asks for experience building GenAI applications including RAG and multi-agent systems, and for expertise in deploying production-grade GenAI applications, including evaluation and optimizations 1. Scale AI's Applied AI Engineer posting for its Global Public Sector team (listed for Doha and London) lists designing and maintaining evaluation frameworks as a responsibility, and gives building generative or agentic AI applications or setting up evaluation pipelines as examples of the 2+ years of production AI/ML experience it asks for 2.
We assume interviews test what the job asks for, so we grouped the practice questions the same way. That is an assumption based on two postings read on October 23, 2026, not a measurement of real loops, which may differ by company, level and team. Databricks says its role is intended for experienced engineers and not for internship, new graduate or entry-level applicants 1, and the Scale AI posting asks for 7+ years of post-graduation engineering experience 2. Ask your recruiter what each round covers.
Table 1. Scroll sideways for every column.
| Stage | What the interviewer is checking | Sample question | A strong answer shows |
|---|---|---|---|
| Coding | You can build against a model API without the demo falling apart | Return schema-valid JSON from an LLM call and handle malformed output, timeouts and rate limits | Validation, bounded retries, a defined failure path, raw responses logged |
| LLM system design | You pick the simplest architecture that works and defend it | Design a question-answering assistant over a company's internal documents | Clarified requirements, a baseline first, access control, cost and latency limits |
| Evaluation and debugging | You can tell whether a change helped | Answer quality dropped after a model update; how do you find out why? | Logged inputs, a fixed test set, one change at a time, failure categories |
| Behavioral | You can work with others when requirements are unclear | Tell me about a time you decided a model was the wrong tool | A specific story: what you measured, what you changed, what you would do differently |
What coding questions do AI engineer interviews ask?
Expect ordinary programming with a model in the loop. These are practice prompts; none comes from a real company's interview.
- "Call an LLM API and return JSON that matches a schema. What happens when the output is malformed?" A strong answer validates the output against the schema, retries a bounded number of times with backoff, does not retry errors that cannot succeed, logs the raw response, and says what the caller gets when every attempt fails.
- "Build a minimal retriever: split documents into chunks, embed them, return the top k for a query." A strong answer explains your chunk size and overlap, uses cosine similarity or an equivalent, and says how you would test retrieval. It also notes when retrieval may be unnecessary: Anthropic said in September 2024 that a knowledge base smaller than 200,000 tokens, about 500 pages, can go directly in the prompt with no need for RAG 10. Check the context window of the model you would actually use.
- "Run 10,000 documents through a model with a concurrency limit, without losing progress if the job dies." A strong answer uses async tasks or a worker pool, respects rate limits, makes each item safe to repeat, saves results as it goes, and estimates cost first.
- "Write a loop where the model can call two tools. How do you stop it running forever?" This is the reason-and-act pattern from the ReAct paper, where a model generates reasoning steps and actions in an interleaved way, and the actions let it interface with external sources such as knowledge bases 11. A strong answer sets a step budget, validates tool arguments, returns tool errors to the model as text, and logs every step.
- "How do you test a function whose output comes from a model?" A strong answer tests the deterministic parts normally, mocks the model in unit tests, and keeps a small suite of real-model checks that assert properties (valid structure, required fields) rather than exact strings.
What LLM system design questions come up?
System design rounds turn a vague product request into an architecture, and the strongest signal is restraint. Anthropic's December 2024 guide to building agents (it now carries a note that much of the tooling it describes has changed) separates workflows, where LLMs and tools are orchestrated through predefined code paths, from agents, where the LLM dynamically directs its own process and tool usage. It recommends finding the simplest solution possible and increasing complexity only when needed, because agentic systems often trade latency and cost for better task performance 3.
- "Design a question-answering assistant over a company's internal documents." A strong answer asks who uses it, how fresh the data must be and who may see which document, then proposes a baseline and names upgrades and how to test each. In Anthropic's own experiments, adding explanatory context to each chunk before embedding cut the top-20 retrieval failure rate from 5.7% to 3.7%; combining it with keyword (BM25) search reached 2.9%, and adding reranking reached 1.9% 10. You need not recite the figures, but know that hybrid search and reranking exist and that gains must be confirmed on your own data.
- "Answers ignore facts that were in the retrieved context. What do you check?" A strong answer knows models can use information worse when it sits in the middle of a long input: the "Lost in the Middle" study found performance often highest when relevant information was at the beginning or end of the input and significantly worse when it was in the middle, in the models it tested in 2023 5. Practical responses, which are our suggestion and not the paper's, are fewer, better-ranked chunks with the most relevant first, then measuring the change.
- "When would you build an agent instead of a fixed workflow?" A strong answer picks a workflow for well-defined tasks, reserves agents for open-ended problems that need flexibility, and admits the cost in latency and money 3.
- "An assistant can read email and send replies. What could go wrong?" The expected answer is prompt injection. In indirect prompt injection, attackers inject instructions into data an application is likely to retrieve 6, and NIST's generative AI profile says generative AI is itself vulnerable to attacks like prompt injection 12. A strong answer treats retrieved text as untrusted, gives tools the least privilege that works, requires human approval for irreversible actions, and logs every action.
- "The feature works but costs too much and is too slow. What do you change?" A strong answer measures where the tokens and seconds go, then considers a smaller model for easy cases, shorter prompts, caching and fewer calls, and re-runs the test set after every change.
What evaluation and debugging questions do interviewers ask?
Both postings above name evaluation, one in its requirements and one in its responsibilities 1,2. We would expect to be asked how you would know a system is good, not only how to build it.
- "How do you know your RAG system is any good?" A strong answer evaluates retrieval and generation separately. The Ragas paper proposes metrics for three dimensions: whether the retriever finds relevant, focused passages, whether the model uses them faithfully, and the quality of the generation itself, without relying on human-annotated ground truth 13. It then builds a test set that mirrors real traffic and includes edge cases, as Anthropic's evaluation guide advises 14. OpenAI's guide warns against "vibe-based evals", judging quality by impression 15.
- "Would you use an LLM to grade outputs?" A strong answer says yes, with controls. A 2023 study of LLM judges examined position, verbosity and self-enhancement biases, and reported that strong judges such as GPT-4 reached over 80% agreement with human preferences, the same level of agreement as between humans 4. OpenAI suggests pairwise or pass/fail grading, controlling for response length and validating against human labels 15. Anthropic's evaluation guide notes, in its grading code examples, that it is generally best practice to evaluate with a different model from the one that generated the output 14.
- "Quality dropped after a model or prompt change. Walk me through debugging." A strong answer starts from logged inputs and a fixed test set, not from rewriting the prompt. Run old and new versions on the same cases, sort the failures into categories, change one thing at a time (prompt, model version, retrieval index, source data), and roll back if the cause is unclear.
- "How do you reduce hallucinations?" NIST defines confabulation as confidently stated but erroneous or false content, and says it is a natural result of how generative models are designed 12. A strong answer therefore does not promise to eliminate it. It reduces and contains it: grounding in retrieved sources, citations, permission to say "I don't know", a verification step, measured faithfulness, and human review where the stakes are high.
- "How do you test an agent?" OpenAI's guide recommends testing tool selection, argument extraction and handoffs between agents 15. Anthropic recommends extensive testing in sandboxed environments with guardrails, because autonomy can compound errors 3.
The guides weigh things differently. Anthropic's guide says more automatically graded questions, even with slightly lower signal, are better than fewer hand-graded ones 14; OpenAI's guide says human judgment evals provide the highest quality but are slow and expensive 15. A good interview answer names that trade-off and says how you would calibrate an automated grader against human labels.
Do AI engineer interviews include behavioral and classic machine learning questions?
We found no published breakdown of behavioral rounds for AI engineers, so these are practice questions, not reported ones. They focus on unclear requirements and trade-offs: tell me about a time a model feature failed in production, a time you pushed back on shipping, or how you would explain a nondeterministic system to someone who wants a guarantee. In our judgment, a strong answer is specific and uses your own numbers. Do not invent metrics, because interviewers may follow up on them.
Classic machine learning theory depends on the role. The Databricks posting asks for extensive hands-on industry data science experience with tools such as pandas, scikit-learn and PyTorch 1, so for that role we would prepare for questions on evaluation metrics, overfitting and data splits. Scale AI's posting emphasizes building and deploying production AI applications and evaluation frameworks, and also mentions fine-tuning 2. We would expect more theory the more a role leans toward training models; our comparison of AI engineer and ML engineer roles explains the split. Whatever the role, we suggest being able to answer in two sentences: what is an embedding, what does temperature change, what limits a context window, and when would you choose prompting, retrieval or fine-tuning.
Can you use AI tools in an AI engineer interview?
It depends on the company and the round, so ask. Anthropic's candidate guidance is one published example: it encourages using Claude to prepare, expects live interviews without AI assistance unless Anthropic indicates otherwise, and asks candidates to do take-homes without Claude unless told otherwise 7. Rules can differ inside one company. A January 2026 Anthropic engineering post says the take-home it uses to hire performance engineers explicitly allows AI tools, and its author, who redesigned the test, wrote that people should be able to distinguish themselves in a setting with AI, like they would have on the job 8. Treat both as examples from one employer, not a norm.
How should you prepare?
Build one small system and be able to defend every choice in it. A document question-answering app or a tool-using assistant is enough, if it has a test set you wrote yourself (a few dozen cases, including some the system should refuse), a recorded baseline score, and a log of each change with the score before and after. That log gives you real numbers, failures and stories for the system design, evaluation and behavioral rounds at once. Then practice out loud: narrate trade-offs, and when you do not know something, say how you would find out. This is our suggestion, not a researched formula. For the wider career picture, read our guide to moving from software engineer to AI engineer.
Common questions
Do AI engineer interviews include LeetCode-style questions?
Published information is thin. Anthropic's careers page says that for technical roles it uses live coding tools such as Colab and CodeSignal, and that candidates can look things up. The two AI engineer postings we read do not mention algorithm puzzles, and we found no source that reports how often AI engineer loops include them. Ask your recruiter which rounds are general coding, which tools and languages are allowed, and whether the problems involve a model API.
Do I need to know the math behind transformers?
It depends on the role, and a posting is not an interview. The Databricks and Scale AI postings we read ask for building, deploying and evaluating AI applications; neither lists transformer mathematics or linear algebra among its requirements, and Databricks also asks for hands-on data science experience with pandas, scikit-learn and PyTorch. For roles closer to model training, expect theory questions. Our suggestion for a minimum is a clear two-sentence explanation of embeddings, attention at a high level, context windows and temperature.
Can I use ChatGPT or Claude during an AI engineer interview?
Only if the company says so. Anthropic's published guidance encourages AI for preparing but expects live interviews without it unless Anthropic indicates otherwise, and a January 2026 Anthropic engineering post says one take-home explicitly allows AI tools. Rules differ by employer and by round, so ask before each one. If AI is allowed, be ready to explain what you asked it and how you checked what it returned.
What if I have not shipped an LLM application to production?
Say so plainly, then show the closest thing you have: a side project with a test set and logged results, or production work on the parts around a model such as APIs, data pipelines and monitoring. Follow-up questions about production experience go into specifics, so claim only what you can explain, including what went wrong. Some roles, such as the Databricks posting we read, are not intended for entry-level applicants, so check the level before you apply.
Are these the questions companies actually ask?
No. They are practice questions we wrote from what current job postings ask for. We have not seen any company's question list. Use them to practice the kind of reasoning interviewers look for, not to predict a specific loop.