Skip to content
Gun.io
November 26, 2026 · 12 min read

AI Engineer Interview Questions for Hiring Managers

A parts assistant that recommends a capacitor with the wrong voltage rating has failed in a way a search box never would: confidently, in full sentences, with a citation to a real manual. Most of the engineering in an AI feature goes into preventing that kind of answer, measuring how often it still happens, and limiting what the system can do when it is wrong.

Good AI engineer interview questions test that engineering. Definitions of transformers, embeddings and fine-tuning are easy to learn and easy to check elsewhere. The harder skills are deciding what the model should and should not do, building retrieval that finds the right document, evaluating answers before and after launch, scoping tool access, defending against prompt injection and keeping cost and latency in bounds. All 15 questions use one example: an industrial HVAC parts distributor building an assistant that answers contractors’ questions from product manuals and spec sheets, and can check order status and open return requests. Answer notes follow each one, as a basis for discussion rather than the only acceptable design.

What an AI Engineer Interview Should Cover

It should cover the system around the model: data, retrieval, evaluation, tools, security and operations. An AI engineer in this sense, sometimes titled LLM engineer or generative AI engineer, builds products on top of large language models, which is different from training predictive models on structured data; that work calls for separate questions about leakage, calibration and retraining. General distributed-systems skill is better tested with system design interview questions; the questions here assume it and focus on the model-backed parts.

Fit depends on what exists already. A team with a working prototype and real users needs someone who can harden it, measure it and run it. A team with only an idea needs someone who can say whether a language model is the right tool at all. In both cases the interview gives you evidence about how the candidate reasons; how their system performs with your users and your data is the real evidence.

Problem and System Design Questions

1. The Distributor Wants an AI Assistant for Its Catalog. What Do You Ask First?

Strong candidates ask who will use it, what they ask today, where the correct answers live, and what a wrong answer costs. A contractor who orders the wrong blower motor loses a day on a job site; a wrong answer about warranty terms creates a dispute. Those costs decide how much the assistant should answer on its own, when it should cite a source, and when it should hand off to a person.

Listen for a request to read real support tickets or search logs before designing anything. The questions people actually ask are usually narrower and more specific than the product idea.

2. Which Questions Should Never Go to the Model Alone?

Stock levels, prices, order status and anything that must be exact belong to systems of record. A good design has the model call a tool or query that returns the value, then phrase the answer, instead of generating numbers from retrieved text. Ask the candidate to sort ten sample questions into “retrieve and answer,” “look up,” “refuse or escalate.” How cleanly they draw those lines says more than any framework they name.

Retrieval Questions

3. How Would You Index Thousands of Manuals and Spec Sheets?

Manuals mix prose, tables of ratings, wiring diagrams and part numbers. Good answers parse tables as structured data where possible, split documents along their sections instead of fixed character counts, attach metadata such as manufacturer, model family, document type and revision, and combine keyword search with vector search, because part numbers like “HC41TE113” are exact strings that embeddings handle poorly.

Ask how they would test the indexing choice. A candidate who proposes measuring retrieval on a labeled set of real questions, before tuning prompts, is working in the right order.

4. Retrieval Finds the Right Manual but the Wrong Revision. What Do You Change?

Manufacturers supersede parts and revise documents. The fix is mostly data work: store revision and effective dates, mark superseded part numbers and their replacements, filter or rank by the contractor’s equipment model and serial range, and show the source revision in the answer. The signal is whether the candidate treats document versioning as part of the product, not an edge case.

5. How Do You Tell a Retrieval Failure From a Generation Failure?

Evaluate the stages separately. For retrieval, check whether the passage containing the answer appears in the top results for each test question. For generation, check whether the answer is supported by the passages it was given and whether it answers the question. When retrieval is right and the answer is wrong, the prompt, context ordering or model is at fault; when retrieval is wrong, prompt changes only hide the problem.

Evaluation Questions

6. How Would You Build an Evaluation Set Before Launch?

Start from real questions: support tickets, call transcripts and search logs, with the correct answer and source written by someone who knows the products. Include questions the assistant should decline, ambiguous ones that need a clarifying question, and recent product changes. A strong candidate runs the set on every change to prompts, retrieval settings or model version, and tracks results by category so a gain on warranty questions does not hide a loss on wiring questions.

7. What Are the Limits of Using a Model to Grade Another Model?

Model-based grading scales well and catches obvious failures, but graders can prefer longer answers, miss technical errors outside their knowledge, and drift when the grading model changes. Stronger candidates check the grader against a sample of human-labeled answers, use it for narrow criteria such as “is every claim supported by the cited passage,” and keep humans reviewing the categories where mistakes are expensive.

8. A Cheaper Model Is Released. How Do You Decide Whether to Switch?

Run the evaluation set, compare quality by category, then compare latency and the cost per resolved question rather than per token. A candidate who suggests sending a share of real traffic to the new model in shadow mode, without showing its answers, before switching is thinking about production behavior. Ask what would make them stay on the more expensive model; a clear quality threshold is the answer you want.

Tool Use and Security Questions

9. The Assistant Can Check Orders and Open Returns. How Do You Scope That Access?

The model should never decide whose data it can see. Strong answers run every tool call with the signed-in contractor’s own permissions, enforced in the backend, give each tool the narrowest possible scope (read one account’s orders, create a return request for an order that account placed), and require explicit user confirmation before any action that changes state. OWASP’s guidance on prompt injection recommends the same pattern: handle privileged functions in code, restrict the model’s privileges to the minimum necessary and require human approval for high-risk actions. Source: OWASP Gen AI Security Project, LLM01:2025 Prompt Injection

10. A Tool Call Fails Halfway. What Should the User See?

Without handling, a model may report that a return was opened when the request timed out. Sound designs return structured results from every tool, including errors, have the assistant state plainly when something failed, check whether a timed-out request actually created a return before retrying it, and log the full sequence so support can see what happened. A candidate who designs the failure message as carefully as the success path has run tools in production.

11. How Would You Defend Against Instructions Hidden in a Supplier’s PDF?

This is indirect prompt injection: content the system retrieves, such as a document uploaded by a supplier, contains text that tries to change the model’s behavior. OWASP notes that retrieval and fine-tuning do not fully mitigate prompt injection and that it is unclear whether fool-proof prevention exists, so the defense is layered: mark and separate untrusted content, validate outputs with deterministic code, filter inputs and outputs, limit what tools can do, and run adversarial tests.

The strongest candidates design so that a successful injection cannot do much damage, which brings the answer back to the tool scoping in question 9.

12. How Do You Keep One Customer’s Data Out of Another’s Answers?

The distributor gives some contractors negotiated pricing. If those price sheets sit in the same index as public documents, a retrieval filter bug can show one customer another’s terms. Good answers enforce tenant filters at query time from the authenticated session, test them with cross-tenant cases in the evaluation set, redact personal data from logs, and review what the model provider retains and for how long.

Cost, Latency and Production Questions

13. Answers Take Too Long and Cost Too Much. What Are Your Levers?

Routing simple questions to a smaller model, caching answers to frequent questions, trimming retrieved context to what is needed, streaming responses so the contractor sees progress, and moving bulk work such as document summarization to batch jobs. Ask the candidate to estimate where the time goes in a single request. Someone who has profiled a pipeline will break it into retrieval, model latency, tool calls and network time.

14. What Would You Log and Monitor in Production?

The question, the retrieved passages and their sources, the prompt and model versions, tool calls and results, the answer, and user feedback, with personal data redacted. On top of that, track escalation rate to human support, refusal rate, cost per conversation and evaluation scores over time. Ask how they would notice a quality drop after a manufacturer updates its catalog; a scheduled evaluation run against fresh documents is a good answer.

15. How Would You Take a Prototype Built With AI Coding Tools to Production?

Prototypes built quickly with AI assistance often work in a demo and lack the structure production needs. Look for a plan that adds server-side state where the client was holding it, tests and evaluation around the model’s outputs, review of security policies such as database row-level access, automated checks in the pipeline, and a clear owner for every component. This is the day-to-day side of AI governance becoming part of software engineering, and the question shows whether a candidate already works that way.

Practical Assessments for AI Engineers

FormatTimeBest at revealingTrade-off
Evaluation design for a small question set45 minutesJudgment about test cases, metrics and failure categoriesLess signal on implementation
Debugging a retrieval pipeline that returns wrong sources45 to 60 minutesRetrieval, metadata and diagnosis skillsNeeds a prepared repository and data
Tool and security design review30 to 45 minutesPermission scoping, injection defenses, failure handlingDepends on interviewer depth

For the debugging exercise, plant two problems: a missing revision filter and a prompt that encourages answers without sources. Note which the candidate investigates first and whether they measure before and after the fix.

Scoring AI Engineer Interviews

A four-point scale per area helps interviewers record evidence before they compare notes. It keeps the debrief grounded in evidence; it does not predict job performance in any validated way.

AreaMid-level evidenceSenior evidence
System designSeparates model answers from lookupsDefines what the system should refuse and when to escalate
RetrievalBuilds hybrid search with useful metadataDiagnoses retrieval failures and fixes the data model
EvaluationMaintains an evaluation set and runs itDesigns category-level evaluation and validates model graders
Tools and securityScopes tools and confirms actionsDesigns layered injection defenses and tenant isolation
ProductionLogs and monitors the main signalsManages cost, latency and model changes against quality thresholds

Red Flags in AI Engineer Answers

Probe further when a candidate relies on the system prompt for security, lets the model choose which account’s data to read, has never built an evaluation set, judges quality by trying a few questions by hand, or proposes fine-tuning before checking retrieval. Treating every model upgrade as an automatic improvement deserves a follow-up too. One weak answer calls for another question; a pattern in the areas the role owns matters more.

How Gun.io Approaches AI Engineering Fit

At Gun.io, we look for engineers who can explain how they knew an AI system was working and what they did when it was not. On a WealthTech platform moving from prototype to production, much of that work was ordinary engineering around the model: a type-safe API layer that kept the Next.js front end and Python back end in sync, and automated agents in the CI/CD pipeline that review every pull request for security leaks and cost spikes. According to the brief, those guardrails let the product owner step back from reviewing every pull request, which is the kind of ownership question 15 is probing for.

A person-to-person interview is where we assess technical capability and professional fit; ongoing performance is where we confirm it, so selection is never a one-time admission. Moving AI-built prototypes to production is one of the kinds of work we take on, through staff augmentation or scoped project delivery depending on how much structure your team already has. You can also see how we work with machine learning and AI engineers.

Frequently Asked Questions

What Is the Difference Between an AI Engineer and a Machine Learning Engineer?

An AI engineer, in current usage, usually builds applications on top of existing large language models: retrieval, prompts, tools, evaluation and operations. A machine learning engineer usually trains and deploys predictive models on an organization’s own data. The skills overlap in evaluation and production, so interview for the work the role will actually do.

Should AI Engineer Candidates Know How Transformers Work?

They should understand enough to reason about context limits, tokenization, why models produce confident errors and what fine-tuning can and cannot change. Deriving attention math is rarely needed for application work. Ask them to explain a model behavior they had to design around.

How Do You Assess Prompt Engineering Skill?

Ask how the candidate decided a prompt change was an improvement. A good answer describes an evaluation set, a comparison before and after, and a check for regressions in other categories. Clever prompts without measurement are a weak signal.

Is Fine-Tuning Experience Necessary for an AI Engineer?

Not for most application roles. Many problems are solved with better retrieval, clearer task design and evaluation, and fine-tuning adds training data management and model versioning. It is worth asking about when the product needs a consistent format, style or domain behavior that retrieval and prompting have not delivered.

How Should AI Engineers Think About Model Provider Risk?

Treat the model as a dependency that can change behavior, pricing or availability. Good candidates keep prompts and evaluations portable, record which model version produced each answer, and can switch or fall back when needed. They also read the provider’s data retention and usage terms before sending customer data.

What Background Makes a Strong AI Engineer?

Many come from backend or data engineering, which gives them the habits that matter most: testing, data modeling, security and operations. Look for someone who has shipped a model-backed feature to real users and can describe what broke. Research depth helps for some products, but production judgment is the more common gap.

Hire AI Engineers Who Measure Before They Trust

An AI engineer earns their place by knowing how often the system is wrong, why, and how much damage a wrong answer can do. If you are planning that hire, talk to us about the AI feature you’re building: the users, the data it draws on, the actions it can take and what you need an engineer to own.

Gun.io

Sign up for our newsletter to keep in touch!

This field is for validation purposes and should be left unchanged.

+1 (615) 541-8095

team@gun.io

© 2026 Gun.io