Role hub•Updated 2026-11-03

AI Engineer interview prep

What AI engineers really build with LLMs, retrieval, agents and evals, 30 interview questions with model answers, real pay data for India, the US and Europe, and who is hiring.

AI Engineer role hub: interview questions, pay in rupees, dollars and euros, and who is hiring
In one paragraph

An AI engineer builds products on top of foundation models such as GPT, Claude and Gemini. The work is mostly software engineering: prompts, retrieval (RAG), tool-calling agents, evaluation pipelines, latency and cost control, and safe deployment. Unlike a machine learning engineer, an AI engineer rarely trains models from scratch. Interviews test coding, LLM application design, evals and debugging.

01 · The role

What an AI Engineer does

The AI Engineer community describes the role as a new kind of engineer at the intersection of software engineering and AI: work that once needed a research team can now start from an API. Our count shows 72,786 people started an AI Engineer or GenAI Engineer title since January 2025, including 21,239 in India.

Day to day, you design how a model is used: what context it receives, which tools it can call, how outputs are checked, and how the system behaves when the model is wrong. A typical posting, such as Fluency's AI Engineer role in San Francisco, asks for shipping LLM features end to end, designing evals that catch regressions, and choosing models for quality, latency and cost.

The title covers a wide range. At IT services firms it often means building GenAI solutions for clients; at product companies and startups it means owning AI features in production; at AI labs it overlaps with applied research and forward deployed engineering.

Software engineering

  • ✓Python and/or TypeScript in production
  • ✓APIs, async code and streaming
  • ✓Databases, including vector search (pgvector)
  • ✓Testing, logging and deployment

LLM application design

  • ✓Prompting and structured outputs
  • ✓Retrieval: chunking, embeddings, reranking
  • ✓Tool calling, agents and MCP
  • ✓Choosing models for quality, latency and cost

Evaluation

  • ✓Building eval sets from real data
  • ✓Model-graded and human evaluation
  • ✓Regression testing across prompt or model changes
  • ✓Error analysis by failure type

Production and safety

  • ✓Caching, batching and rate limits
  • ✓Prompt injection and data-leak defences
  • ✓Monitoring quality in production
  • ✓Fallbacks when models fail
02 · Expectations

What companies expect: B2B vs B2C

Most open roles in 2026 are B2B. Read that column first.

B2BMost roles today

B2B (most roles, including IT services): reliable AI inside business workflows

  • Build retrieval over company documents with permissions, citations and freshness, so answers can be trusted and audited.
  • Build agents that take actions in business systems (CRM, ticketing, ERP) with approvals for risky steps.
  • Design evaluation sets with domain experts and report accuracy per task before every release.
  • Meet enterprise requirements: data residency, no training on customer data, audit logs and access control.
  • Control cost per task, because enterprise usage is priced and budgeted.
  • At IT services firms, work across several client projects and present solutions to client stakeholders.
Metrics you will own
Task accuracy on the eval setHallucination or unsupported-claim rateCost per taskp95 latencyAutomation rate of the workflowIncidents and rollbacks
B2C

B2C: AI features millions of people use

  • Ship features such as chat, search, recommendations, writing help or voice for consumer apps, at large scale.
  • Optimise latency and cost per user aggressively, because usage is free or cheap for most users.
  • Handle abuse, jailbreaks and harmful content with safety filters and monitoring.
  • Run A/B tests and use feedback signals (thumbs, edits, retries) to improve quality.
  • Support many languages and low-end devices, which matters a lot in India.
Metrics you will own
Engagement and retention liftPositive feedback rateTime to first tokenCost per daily active userSafety incident rate

How it differs from a classic Engineer role

  • →Compared with an ML engineer: you mostly use and adapt existing models instead of training them.
  • →Compared with a software engineer: outputs are probabilistic, so testing means evals, not only unit tests.
  • →Model choice, prompts and context are part of the codebase and need versioning.
  • →Cost and latency per request are design constraints from day one.
  • →The field changes monthly, so evaluating new models and tools is a regular task.
03 · Pay

Pay by experience: India, US and Europe

Levels.fyi tracks AI Engineer as its own title. It pays less than Machine Learning Engineer on Levels.fyi, partly because many AI Engineer roles sit in services companies and early-career positions.

Median total pay for AI Engineers in India is ₹17.8 LPA; US $156K, Germany €81K (Levels.fyi, Nov 2026)

India

INR, lakh per annum (total compensation)
BandExperienceTotal pay
25th percentileTypically fresher to early career (0–2 yrs)₹10.9 LPA
MedianTypically mid-level (2–5 yrs)₹17.8 LPA
75th percentileTypically senior (5–8 yrs)₹34.5 LPA
90th percentileTypically lead or staff (8+ yrs)₹52.6 LPA

Source: Levels.fyi, AI Engineer, India (Updated Nov 3, 2026). AI Engineer title, India. Levels.fyi does not publish the sample size for this page. Its data leans towards product companies, so many services-company offers sit below these bands.

United States

USD per year (total compensation)
BandExperienceTotal pay
25th percentileTypically early career (0–2 yrs)$110K
MedianTypically mid-level (2–5 yrs)$156K
75th percentileTypically senior (5–8 yrs)$213K
90th percentileTypically lead or staff (8+ yrs)$282K

Source: Levels.fyi, AI Engineer, US (Updated Nov 3, 2026). AI Engineer title, United States. Sample size not published.

Europe: Germany

EUR per year (total compensation)
BandExperienceTotal pay
25th percentileTypically early career (0–2 yrs)€70.6K
MedianTypically mid-level (2–5 yrs)€81.1K
75th percentileTypically senior (5–8 yrs)€100K
90th percentileTypically lead or staff (8+ yrs)€125K

Source: Levels.fyi, AI Engineer, Germany (Updated Oct 28, 2026). AI Engineer title, Germany. Sample size not published.

Europe: Netherlands

EUR per year (total compensation)
BandExperienceTotal pay
25th percentileTypically early career (0–2 yrs)€54.1K
MedianTypically mid-level (2–5 yrs)€65.0K
75th percentileTypically senior (5–8 yrs)€74.3K
90th percentileTypically lead or staff (8+ yrs)€93.9K

Source: Levels.fyi, AI Engineer, Netherlands (Updated Oct 15, 2026). AI Engineer title, Netherlands. Sample size not published.

For comparison: Levels.fyi reports a US median of $287,500 for Machine Learning Engineers (Nov 2, 2026), and a recent AI Engineer posting at Fluency in San Francisco listed a base salary of $180,000–$250,000 (posting closed July 2026). Strong AI engineers at product companies often negotiate towards ML-engineer pay.

04 · Who is hiring

Companies hiring the most in 2025–26

Companies with the most people who started an AI Engineer, GenAI Engineer or LLM Engineer title in 2025–26. IT services firms lead because they are staffing GenAI projects for clients at scale.

New AI Engineers by company in 2025–26: TCS 758, IBM 393, Deloitte 333, Accenture 242, Cognizant 162 (Apollo.io, Nov 3, 2026)
New AI Engineers by company in 2025–26: TCS 758, IBM 393, Deloitte 333, Accenture 242, Cognizant 162 (Apollo.io, Nov 3, 2026)
Tata Consultancy Services
IT services (India)
758
moved in
IBM
Enterprise tech
393
moved in
Deloitte
Consulting
333
moved in
Accenture
Consulting and IT services
242
moved in
Cognizant
IT services
162
moved in
Microsoft
Big Tech
143
moved in
Infosys
IT services (India)
140
moved in
Amazon
Big Tech
55
moved in

Source: Apollo.io people database, searched Nov 3, 2026. Titles counted: AI Engineer, Senior AI Engineer, Applied AI Engineer, Generative AI Engineer, GenAI Engineer and LLM Engineer, held for 670 days or less. Across all companies, 72,786 people match, 21,239 of them in India. Big Tech often uses titles such as "Software Engineer, AI", so their counts here are a lower bound. (Apollo.io people search, Nov 3, 2026.)

05 · Interview loop

The interview process by company type

Typical loops. Each company varies, so confirm the rounds with your recruiter.

AI startups and product companies

  1. 1Recruiter or founder call
  2. 2Practical coding in Python or TypeScript
  3. 3Build exercise: a RAG app or agent, often a take-home
  4. 4LLM system design (e.g. a support assistant at scale)
  5. 5Deep dive on a project you shipped, plus behavioural

Big Tech

  1. 1Recruiter screen
  2. 2Data structures and algorithms rounds
  3. 3ML or LLM system design
  4. 4Applied AI round: evals, retrieval and failure analysis
  5. 5Behavioural or leadership round

IT services and consulting (TCS, Infosys, Accenture, Deloitte)

  1. 1Online assessment (aptitude and coding)
  2. 2Technical interview: Python, GenAI concepts and your projects
  3. 3Case: propose a GenAI solution for a client scenario
  4. 4Managerial round
  5. 5HR round

AI labs

  1. 1Recruiter screen
  2. 2Coding with real-world framing
  3. 3Take-home or onsite build with their models
  4. 4System design and deployment trade-offs
  5. 5Values and mission interviews
06 · Question bank

30 AI Engineer interview questions with model answers

Tap a question to see a model answer and what the interviewer is listening for. Practise out loud before you read the answer.

Common opening questions

Show that you have shipped, measured and learned, not just followed tutorials.

Walk me through an AI feature or project you built.+

Cover the user problem, why an LLM was the right tool, the architecture (model, retrieval, tools), how you evaluated it, what failed and how you fixed it, and the result in numbers: accuracy, latency, cost or user adoption. Interviewers dig into decisions, so be ready to defend each one.

What they look for: Real decisions, measurement and honest failures.

What is the difference between an AI engineer and an ML engineer?+

ML engineers typically train, fine-tune and serve models, working with datasets, training pipelines and model architecture. AI engineers mostly build applications on top of existing foundation models: prompts, retrieval, agents, evals and product integration. The roles overlap, especially for fine-tuning and evaluation.

What they look for: A clear, non-dismissive distinction.

How do you keep up with new models and tools?+

Describe a system, not a feed: you follow a few primary sources (model release notes, papers or engineering blogs), and when something new appears you test it on your own eval set before adopting it. Give an example of a model switch you made or rejected based on your evals.

What they look for: Evidence-based adoption.

Why do you want to work on AI here?+

Connect the company's AI product or clients to problems you have worked on. Mention something specific you tried or noticed in their product and one idea you would explore.

What they look for: Specific interest and preparation.

LLM fundamentals

Explain clearly, then connect each concept to a product decision.

What are tokens, and why do they matter for cost and latency?+

Tokens are the chunks of text a model reads and writes; one word is often one to two tokens, and many non-English scripts use more. Pricing is per input and output token, and output tokens are generated one at a time, so long outputs increase latency. Shorter prompts, smaller contexts and concise outputs cut both cost and latency.

What they look for: Linking tokens to cost, latency and languages.

What does temperature do, and when would you set it to zero?+

Temperature controls how random the model's choice of next token is. Low values make outputs more consistent, which suits extraction, classification and evals. Higher values add variety for brainstorming or creative text. Even at zero, outputs can vary slightly, so do not rely on exact repeatability.

What they look for: Correct intuition and practical defaults.

What is a context window, and what happens when you exceed it?+

It is the maximum number of tokens the model can consider at once, including the prompt, retrieved documents, conversation history and the answer. If you exceed it, the request fails or content must be truncated. Even within the limit, very long contexts can cost more and reduce attention to important details, so retrieve and summarise selectively.

What they look for: Limits plus the quality trade-off of long contexts.

When would you fine-tune instead of using prompting or RAG?+

Use prompting first, add retrieval when the model needs your facts, and fine-tune when you need consistent format, style or a narrow skill that prompting cannot reach, or a smaller, cheaper model to match a larger one on one task. Fine-tuning needs good labelled examples and an eval set to prove it helped. It is not the right way to add frequently changing knowledge.

What they look for: Ordered decision-making with evidence.

How do you get reliable structured output (JSON) from a model?+

Use the provider's structured-output or function-calling feature with a schema where available, validate the output against the schema in code, retry with the validation error if it fails, and keep the schema simple. Log failures to improve prompts.

What they look for: Schema plus validation, not trust.

What are embeddings and what are they used for?+

Embeddings are lists of numbers that represent the meaning of text, so similar meanings end up close together. They power semantic search, retrieval for RAG, clustering, deduplication and recommendations. Quality depends on the embedding model and on how you chunk the text.

What they look for: Clear definition with applications.

Retrieval (RAG) design

The most common AI engineer system-design topic.

Design a RAG system for a company's internal knowledge base.+

Ingest documents with metadata (source, team, date, access group). Chunk by structure (sections, headings) with some overlap, embed and store in a vector index, ideally alongside keyword search (hybrid). At query time: rewrite the question if needed, retrieve with permission filters, rerank, and pass the top chunks to the model with instructions to cite sources and say "I don't know" when unsupported. Evaluate retrieval (did the right chunk come back?) and answers (correct and grounded?) separately, and keep the index fresh with incremental updates.

What they look for: Permissions, hybrid retrieval, citations and two-level evaluation.

How do you choose a chunking strategy?+

Follow the document's structure: split on headings or sections rather than fixed character counts, keep chunks small enough to be specific but large enough to carry context, add overlap or parent-section context, and attach metadata. Then test: compare retrieval hit rate on your eval questions for two or three strategies.

What they look for: Structure-aware and empirically tested.

Your RAG system retrieves the right document but the answer is still wrong. Why?+

Possible causes: the relevant passage was cut off or ranked low within the context, too many irrelevant chunks distracted the model, the prompt did not force use of sources, the question needed reasoning across several chunks, or the source itself was ambiguous. Fix with reranking, fewer but better chunks, clearer instructions and a citation requirement, then confirm on the eval set.

What they look for: Separating retrieval failure from generation failure.

What is hybrid search, and why use it?+

Hybrid search combines keyword search (exact terms such as product codes, names and error messages) with vector search (meaning). Each catches what the other misses. Results are merged and often reranked by a cross-encoder or a model.

What they look for: Knowing why exact matching still matters.

How do you handle documents that update often?+

Track document versions and timestamps, re-embed only changed documents, delete stale chunks, store the effective date as metadata and prefer the latest version at query time. Monitor index freshness as a metric.

What they look for: Incremental indexing and freshness.

Agents and tool use

Know when an agent helps and when a simple workflow is better.

Design an agent that resolves customer refund requests.+

Tools: look up order, check refund policy, issue refund (with limits), escalate to human. Flow: identify the customer and order, check eligibility against policy, refund automatically under a threshold and ask for human approval above it, then confirm to the customer. Log every tool call, cap the number of steps, and evaluate on historical tickets for correct decisions and policy compliance.

What they look for: Bounded autonomy, approvals and evaluation on real cases.

When is an agent the wrong choice?+

When the steps are known and fixed, a deterministic workflow with one or two model calls is cheaper, faster and easier to test. Agents add value when the path depends on what is discovered along the way. Start simple and add autonomy only where it measurably improves results.

What they look for: Pragmatism over hype.

How do you stop an agent from looping or taking harmful actions?+

Limit steps and budget, give it least-privilege tools, require confirmation for irreversible or high-value actions, validate tool inputs in code, detect repeated identical calls, and provide a clear "stop and escalate" path. Test with adversarial scenarios.

What they look for: Guardrails in code, not just in the prompt.

What is the Model Context Protocol (MCP)?+

MCP is an open standard for connecting AI applications to tools and data sources. An MCP server exposes capabilities, such as querying a database or creating a ticket, that any compatible AI client can use. It reduces custom integration work and makes permissions and logging consistent across apps.

What they look for: Accurate definition and why it matters.

How would you evaluate an agent, not just a single response?+

Define end-to-end tasks with known correct outcomes, run the agent in a sandbox, and score success, the number of steps, cost, time and any policy violations. Review traces of failures to see which step went wrong, and keep the task set as a regression suite.

What they look for: Task-level success plus trace review.

Evaluation and production

The skill that separates senior AI engineers from the rest.

How do you build an eval set for a new AI feature?+

Collect real inputs (logs, support tickets, user requests), cover common, hard and edge cases, write expected outputs or a grading rubric with domain experts, and include examples that should be refused. Start with 50–200 examples, grow it with every production failure, and run it on every prompt or model change.

What they look for: Real data, rubrics and continuous growth.

Can you use an LLM to grade another LLM's output?+

Yes, with care. Give the grader a specific rubric, ask for reasoning plus a score, check its agreement with human labels on a sample, and watch for bias towards longer or similar-sounding answers. Use code-based checks wherever possible (exact match, schema, citations present) and keep humans in the loop for subjective quality.

What they look for: Calibrated model grading.

Latency is 8 seconds and users are leaving. What do you do?+

Measure each step first. Then: stream the response, cut prompt and context size, run retrieval and tool calls in parallel, cache frequent answers, use a smaller model for simple requests or first drafts, and pre-compute where possible. Track time to first token and p95 latency.

What they look for: Measure first, then several concrete levers.

Your monthly LLM bill tripled. How do you investigate?+

Break cost down by feature, model, customer and token type. Common causes: a prompt that grew, longer conversation history, retries in a loop, a switch to a pricier model or abuse. Fix with caching, context limits, routing easy requests to cheaper models, batch processing for non-urgent jobs and per-user limits.

What they look for: Attribution before optimisation.

How do you defend against prompt injection?+

Treat all retrieved or user-supplied content as untrusted data, separate it clearly from instructions, limit the tools and data the model can reach, require confirmation for sensitive actions, filter outputs that could leak secrets, and keep attack examples in your eval suite. No single defence is enough.

What they look for: Defence in depth.

How do you safely switch to a new model version?+

Run the full eval suite on the new model, compare quality, latency and cost by task, review differences manually, then roll out gradually behind a flag with monitoring and a quick rollback. Pin model versions in production so behaviour does not change unexpectedly.

What they look for: Eval-gated, staged rollout.

Coding and behavioural

Expect practical coding plus classic behavioural questions.

Write a function that splits a long document into overlapping chunks.+

Take the text, a chunk size and an overlap. Move a window forward by (size − overlap) each step and slice, preferably on sentence or paragraph boundaries rather than mid-word. Handle edge cases: overlap greater than or equal to size, empty text and a final short chunk. Mention that in production you would count tokens rather than characters.

What they look for: Correct windowing and edge cases.

Implement retries with exponential backoff for an LLM API call.+

Wrap the call in a loop with a maximum number of attempts. On rate-limit or server errors, wait base × 2^attempt plus random jitter, then retry; on client errors such as invalid requests, fail immediately. Respect any retry-after header, set an overall timeout and log each attempt.

What they look for: Knowing which errors to retry.

Tell me about a time an AI system you built failed in production.+

Describe the failure, how you detected it (ideally monitoring, not a customer complaint), the root cause, the fix, and what you added so it cannot recur: an eval case, an alert or a guardrail.

What they look for: Ownership and systemic fixes.

Tell me about a time you pushed back on using AI for something.+

A strong answer shows judgement: the task was better solved with rules, search or a simple model, or the risk was too high. Explain the evidence you used and the outcome.

What they look for: Judgement over enthusiasm.

Reading answers is not practice.

Answer these out loud to an AI interviewer and get feedback in minutes. Free, no signup.

Start mock interview
07 · Prep plan

7, 14 and 30-day prep plans

7 days
Interview next week
  • □Day 1: Prepare a 2-minute walkthrough of your best AI project with numbers.
  • □Day 2: Revise tokens, context windows, temperature, embeddings and fine-tuning trade-offs.
  • □Day 3: Practise one RAG system design and one agent design out loud.
  • □Day 4: Code three practical problems: chunking, retries, and a small API integration.
  • □Day 5: Learn how to design evals and explain model-graded scoring.
  • □Day 6: Take a full AI mock interview and fix weak answers.
  • □Day 7: Research the company's AI products and prepare 3 questions.
14 days
Two weeks to build proof
  • □Week 1: Everything in the 7-day plan.
  • □Week 2: Build a RAG app with citations and a 50-question eval, deploy it and publish the eval table.
  • □Do two mock interviews: one system design, one project deep dive.
  • □Add the project to your resume with measured results.
30 days
A month to switch into AI engineering
  • □Week 1: Python and API fundamentals; call two model providers and compare outputs.
  • □Week 2: Build retrieval: chunking, embeddings, hybrid search and reranking.
  • □Week 3: Build an agent with two tools, guardrails and a task-level eval.
  • □Week 4: Deploy, write up both projects, practise 20 questions and apply with referrals.
08 · Resources

The resources worth your time

More role hubs

Prepare for another new-age role

09 · FAQ

AI Engineer: frequently asked questions

What does an AI engineer do?+

An AI engineer builds applications on top of foundation models: prompts, retrieval over company data, tool-calling agents, evaluation pipelines and production systems that control cost, latency and safety. Most AI engineers use existing models rather than training their own.

What is the salary of an AI engineer in India?+

Levels.fyi reports a median total compensation of about ₹17.8 lakh a year for AI Engineers in India, with the 25th percentile near ₹10.9 lakh and the 90th near ₹52.6 lakh (Nov 2026). Product companies and AI startups usually pay more than IT services firms.

Which companies hire the most AI engineers?+

In our count of people who started an AI Engineer or GenAI Engineer title in 2025–26, Tata Consultancy Services, IBM, Deloitte, Accenture and Cognizant lead, followed by Microsoft, Infosys and Amazon. Startups collectively hire a large share too.

Do AI engineers need a machine learning degree?+

No. Strong software engineering, an understanding of how LLMs, retrieval and evaluation work, and shipped projects with measured results matter more. ML knowledge helps for fine-tuning and evaluation work.

What questions are asked in an AI engineer interview?+

Expect LLM fundamentals (tokens, context windows, fine-tuning versus RAG), RAG and agent system design, evaluation, latency and cost optimisation, prompt injection defence, practical coding, and a deep dive on a project you built.