Questions for AI engineer, ML engineer and applied scientist interviews, grouped into 16 topics: from tokens and transformers to retrieval-augmented generation, agents, fine-tuning, evaluation and running LLM systems in production. Each one has a 30-second answer you can say out loud, a deeper explanation and the follow-ups you should expect.
65 questions with a 30-second answer, a deeper explanation and the follow-ups interviewers usually ask.
How to use these questions
Generative AI interviews tend to test four things in this order: whether you understand the fundamentals (how a model reads and generates text), whether you can build with it (prompting, retrieval, tools, agents), whether you can tell if it works (evaluation) and whether you can run it safely and affordably (cost, latency, security). The topics below follow that order, so you can work through them from the top.
For each question:
Read the question and try to answer it aloud before looking at anything.
Compare with the 30-second answer. That is the version to give when an interviewer wants a quick, clear reply.
Read the full answer for the reasoning and trade-offs behind it.
Ask yourself the listed follow-ups. A good answer survives two rounds of "why?".
Questions marked Often asked come up most in interviews. If you are short on time, start with those. To rehearse under pressure, run an AI mock interview and pick the technical category, or study the same questions interactively in Tech Learn.
30-second answer: Symbolic = hand-written rules. ML learns from data. DL learns representations with neural nets. GenAI synthesizes new content from learned distributions.
Symbolic AI encodes rules and logic by hand. Machine Learning learns patterns from data with engineered features. Deep Learning uses multi-layer neural nets to learn representations automatically. Generative AI is a subset that models data distributions to synthesize new text, images, audio or code rather than only classifying or scoring inputs.
30-second answer: Discriminative models learn P(y|x) for decisions. Generative models learn the data distribution so they can sample new content.
Discriminative models learn P(y|x) to classify or regress (e.g. logistic regression, BERT for classification). Generative models learn P(x) or P(x,y) so they can sample new data (e.g. GPT next-token prediction, diffusion models). Generative models can often do discriminative tasks via prompting, but they are trained to model distributions, not just decision boundaries.
Follow-up questions interviewers ask next
Is a classifier ever generative?
Why does next-token prediction count as generative?
30-second answer: Tensors hold data and params. Activations add non-linearity. Loss scores error. Backprop + gradient descent update weights to reduce that error.
Tensors are multi-dimensional arrays of activations and parameters. Weights are the learnable parameters. Activations (ReLU, GELU, sigmoid) add non-linearity. A loss measures prediction error. Gradient descent updates weights to reduce loss. Backpropagation applies the chain rule to compute gradients of the loss w.r.t. every weight efficiently.
30-second answer: APIs win on quality and speed. Open-weights win on privacy, fine-tuning and unit economics at scale. Choose from constraints, not hype.
Frontier APIs (GPT, Claude, Gemini) give strongest quality, managed infra, and safety tooling, but cost money, send data off-box, and limit customization. Open-weights (Llama, Mistral, Qwen, DeepSeek, Gemma) let you self-host, fine-tune, and control data, at the cost of ops, GPUs, and often a quality gap on hard tasks. Pick APIs for speed-to-value; open-weights for privacy, cost at scale, or deep customization.
30-second answer: MIT/Apache are commercially friendly. Community licenses add use restrictions. API terms cover hosted use only - you do not own the weights.
Apache 2.0 and MIT are permissive commercial-friendly open-source licenses. Some open-weights models use custom community licenses with use restrictions (e.g. acceptable-use clauses, size thresholds). Proprietary API terms govern hosted models: rate limits, data retention, prohibited uses, and no model-weight ownership. Always check license before commercial deployment or redistribution.
30-second answer: Focus on clean modules, file I/O, regex parsing, and type hints/Pydantic. GenAI apps break at integration boundaries, not clever algorithms.
Solid data structures and OOP for clean modules, file I/O for prompts and datasets, regex for parsing model output, and type hints (and Pydantic) for schema-safe pipelines. Prefer readable, typed code over clever one-liners - LLM apps fail at integration boundaries more than algorithms.
30-second answer: JSON/YAML for configs and tool schemas, Pandas/CSV for eval sets, NumPy for embeddings. Validate schemas at model boundaries.
JSON/YAML hold configs, tool schemas and structured LLM outputs. CSV and Pandas handle evaluation sets and analytics. NumPy arrays back embeddings and local vector math. Keep schemas validated on the way in and out of the model so malformed generations fail fast.
30-second answer: One venv per project, prefer uv or poetry for locks, put keys in .env, and never commit secrets.
Use a virtual environment per project. uv is a fast installer/resolver; poetry manages deps and lockfiles; venv is the stdlib baseline. Keep secrets and model keys in .env (never commit them) and load with python-dotenv or your platform's secret store. Pin versions so training and inference environments reproduce.
30-second answer: LLM calls are I/O-bound. Use asyncio for concurrency and SSE to stream tokens to the UI without blocking.
LLM calls are I/O-bound and often streamed. asyncio + aiohttp (or httpx AsyncClient) let you fire concurrent API calls without blocking. Server-Sent Events (SSE) deliver token streams; you accumulate deltas, handle disconnects, and surface partial output to the UI. Blocking sync clients under concurrency waste latency and connection budgets.
30-second answer: Auth headers, exponential backoff on 429/5xx, prefer SDKs but know the raw REST/SSE contract for debugging.
Call providers over HTTPS with auth headers (Bearer/API key). Respect rate limits with exponential backoff and jitter on 429/5xx. Prefer official SDKs for retries, streaming helpers and typed params, but understand the raw REST/SSE contract for debugging. Never retry non-idempotent side effects blindly.
30-second answer: BoW/TF-IDF count words. Word2Vec is static. Contextual models give different vectors based on surrounding context.
Bag-of-Words and TF-IDF count tokens and ignore order. Word2Vec/GloVe learn static word vectors - one vector per word type. Contextual embeddings (ELMo, BERT, GPT) produce vectors that depend on surrounding tokens, so 'bank' differs in river vs finance contexts. Modern LLMs use contextual subword embeddings plus attention.
30-second answer: Subword tokenizers split rare words. BPE merges pairs, WordPiece is likelihood-based, SentencePiece handles raw text and multilingual scripts.
All three build subword vocabularies so rare words split into pieces. BPE merges frequent character pairs (GPT-style). WordPiece picks merges that maximize likelihood (BERT). SentencePiece trains on raw bytes/chars and handles languages without whitespace. Watch token-to-word ratios - some languages burn far more tokens, hurting context and cost.
Input tokens become embeddings plus positional encodings (sinusoidal or RoPE). Self-attention mixes information via Queries, Keys and Values with scaled dot-product; multi-head attention runs this in parallel subspaces. Residual connections and layer norm stabilize deep stacks. Feed-forward networks expand and project each position independently. Variants: encoder-only (BERT), decoder-only (GPT/Llama), encoder-decoder (T5).
30-second answer: MoE scales params via routing. GQA shrinks KV heads. Sliding windows limit attention span. KV-cache avoids recomputing past attention.
Mixture-of-Experts routes tokens to specialist FFNs so parameters scale without proportional FLOPs. Grouped-Query Attention shares KV heads across query heads to shrink the KV cache. Sliding-window attention limits each token to a local window for long contexts. The KV-cache stores past keys/values during decoding so you do not recompute attention over the full history every token.
30-second answer: Pre-train for language, SFT for instructions, then align with preferences via RLHF or DPO/GRPO.
Pre-training learns next-token prediction on massive corpora - general language and world knowledge. Supervised Fine-Tuning (SFT) teaches instruction following on curated prompt-response pairs. Preference alignment steers toward human-preferred answers: RLHF trains a reward model then optimizes with RL; DPO/GRPO optimize preferences more directly without a full RL loop. Production chat models usually need all three stages.
30-second answer: Temperature and top_p/top_k control randomness. Penalties cut repetition. max_tokens and stop sequences bound length and delimiters.
Temperature scales logits before sampling - higher = more random. top_p (nucleus) samples from the smallest set whose cumulative probability exceeds p. top_k limits to the k best tokens. Frequency/presence penalties reduce repetition. max_tokens caps length. Stop sequences halt generation at delimiters. For factual tasks prefer low temperature; for brainstorming raise it carefully.
30-second answer: System = durable policy. User = task. Assistant = model output. Keep invariants in system; put task data in user turns.
System (or developer) messages set durable policy, tools and style. User turns carry the task. Assistant turns are model outputs (and can include tool calls). Put invariants in the system prompt, variable task data in the user turn, and keep few-shot examples as alternating user/assistant pairs. Do not bury critical constraints only in the latest user message.
30-second answer: Zero-shot = instructions only. Few-shot adds examples for format/style. Retrieve dynamic examples when tasks vary.
Zero-shot relies on instructions alone. One/few-shot add worked examples so the model matches format and reasoning style. Use dynamic example selection (retrieve similar cases) when tasks vary. Prefer few-shot for brittle formats; prefer zero-shot plus schema constraints when examples burn too much context.
30-second answer: CoT reasons step-by-step; decompose hard tasks; ToT explores branches; self-consistency votes across samples. Reasoning models spend extra inference compute.
Chain-of-Thought asks the model to reason step-by-step (including zero-shot 'think step by step'). Least-to-most / explicit decomposition break hard problems into subproblems. Step-back prompting asks a higher-level question first. Tree-of-Thoughts explores multiple reasoning branches. Self-consistency samples several CoT paths and majority-votes. Reasoning models also use inference-time compute and thinking budgets with hidden or exposed traces.
30-second answer: Budget the window carefully. Critical content at the edges - models underuse the middle. Cache stable prefixes to save cost.
Context engineering budgets the window: system rules, retrieved docs, history and the user ask. Models often attend more to the start and end of long contexts ('lost in the middle'), so put critical instructions and the question at the edges and compress or rank middle content. Prompt caching reuses stable prefixes to cut latency and cost on repeated system/tool schemas.
30-second answer: Prefer JSON Schema / constrained decoding over prompt-only JSON. Validate client-side and retry on failure.
Use provider JSON mode or JSON Schema / constrained decoding (grammar/FSM guided generation) so every token must keep the output valid. Prefer schema-constrained decoding over 'please return JSON' prompts. Validate on the client and retry with the error when the model still drifts.
30-second answer: Parse LLM output with Pydantic or Zod, then auto-retry with the validation error. Tight schemas prevent bad tool calls.
Pydantic (Python) and Zod (TypeScript) parse and type-check model output against a schema. On failure, feed the validation error back for an auto-retry loop. Keep schemas tight (enums, bounds) so invalid tool args fail before side effects.
from pydantic import BaseModel, ValidationError
class Ticket(BaseModel):
priority: str
summary: str
try:
Ticket.model_validate_json(raw)
except ValidationError as e:
# feed e into a retry prompt
...
30-second answer: Declare tool schemas, execute returned calls, send results back as tool messages. Handle errors and parallel calls cleanly.
You declare tools with JSON schemas (name, description, parameters). The model returns a structured tool call instead of (or before) a final answer. Execute the tool, return the result as a tool message, and let the model continue. Support parallel tool calls when independent, and handle execution errors with clear tool-error messages rather than crashing the loop.
30-second answer: Sandboxed code execution improves math and analysis. Isolate with containers, limits and no secrets - treat LLM code as untrusted.
Letting the model write and run Python/SQL solves math, data analysis and plotting better than pure token prediction. Isolation (containers, network egress controls, time/memory limits) prevents prompt-injected code from harming the host. Treat the sandbox as an untrusted tool: limit secrets, validate outputs, and log every execution.
30-second answer: Dense = semantic vectors. Sparse = keywords. ColBERT = late interaction. MRL lets you truncate dimensions cheaply.
Dense embeddings map text to fixed vectors for semantic similarity. Sparse methods (BM25, SPLADE) excel at exact keyword matching. Late-interaction models like ColBERT compare token-level vectors for finer relevance. Matryoshka Representation Learning (MRL) trains nested dimensions so you can truncate vectors for cheaper search with graceful quality loss.
30-second answer: Cosine/dot for similarity; ANN indexes (HNSW, IVF, PQ) approximate nearest neighbors for speed at scale.
Cosine compares angle (normalized semantic similarity). Dot product is similar when vectors are normalized and is common in ANN engines. Euclidean measures distance. Exact search is too slow at scale, so Approximate Nearest Neighbor indexes trade a little recall for speed: HNSW (graph), IVF (inverted lists of clusters), PQ (product quantization compression).
30-second answer: Pick by filtering, tenancy, hybrid search and ops. Store metadata/ACLs with vectors or you will leak or miss docs.
Evaluate metadata filtering, namespaces/tenancy, hybrid search, scaling, latency SLOs and ops burden. Chroma/FAISS suit local/dev; Qdrant, Pinecone, Weaviate and pgvector cover production with different managed vs self-host trade-offs. Always store source IDs and filters (tenant, ACL, time) alongside vectors or retrieval will leak or miss documents.
30-second answer: Parse for layout and tables, keep structure, drop boilerplate. Bad parsing beats any embedding upgrade as a failure mode.
Use parsers that preserve layout, tables and reading order (Unstructured, Docling, LlamaParse, Marker). Extract clean text plus structure; keep table markdown or HTML when numbers matter. Drop boilerplate nav/headers. Bad parsing is the #1 silent RAG failure - garbage chunks cannot be rescued by a better embedding model.
30-second answer: Prefer structure-aware or semantic chunking over naive fixed splits. Contextual retrieval prepends summaries for better embeddings.
Fixed-size with overlap is simple but splits mid-thought. Recursive character / markdown-aware splitters respect structure. Semantic chunking groups by meaning. Contextual retrieval prepends a short document summary to each chunk so embeddings carry global context. Match chunk size to the embedding model's sweet spot and your citation UX.
30-second answer: Expand, rewrite or step back when user wording mismatches docs. HyDE embeds a hypothetical answer to improve recall.
Multi-query expands one ask into several search queries. Rewriting clarifies ambiguous user text. Step-back asks a broader question for better recall. HyDE generates a hypothetical answer document and embeds that for retrieval. Use transformations when raw user queries mismatch document wording.
30-second answer: Hybrid = dense + BM25. Rerank the shortlist with a cross-encoder before building the prompt context.
Hybrid search blends dense vectors with BM25 keywords (often via Reciprocal Rank Fusion) so you catch semantic and exact matches. Cross-encoder rerankers (Cohere Rerank, BGE) score query-document pairs more accurately on a shortlist. Retrieve broadly, then rerank for precision before stuffing the context window.
30-second answer: Small-to-big retrieval, graded Self/CRAG loops, knowledge graphs, and vision embeddings each fix different RAG failure modes.
Parent-Document retrieves small chunks but returns larger parents for context. Self-RAG / Corrective RAG grade relevance and may rewrite or fall back to web search. GraphRAG extracts entities/relations (Neo4j/NetworkX) and combines graph traversal with vectors. Multimodal RAG retrieves images/slides/tables via vision embeddings (e.g. ColPali). Pick patterns based on failure modes you observe in evals.
30-second answer: Start with raw SDKs. Add a framework when you keep rebuilding orchestration. Match stack to language and UI needs.
Raw SDKs maximize control and debuggability for simple call → tool → respond loops. LangChain/LlamaIndex accelerate RAG and agent graphs but can hide complexity. PydanticAI emphasizes typed, schema-first Python agents. Vercel AI SDK shines for streaming UIs in TypeScript. Start thin; adopt a framework when you repeatedly rebuild the same orchestration primitives.
30-second answer: Short-term fits the window (trim/summary). Long-term stores durable user facts carefully - noisy memory causes lasting errors.
Short-term memory is the conversation: sliding window, token trimming, or a rolling summary that fits the context limit. Long-term memory persists across sessions - episodic events, semantic user profiles, or stores like Mem0/Zep. Write only high-signal facts; bad memory compounds hallucinations.
30-second answer: Low-code tools are great for SaaS automations and prototypes. Keep core product agents in code for reliability.
No/low-code tools connect LLMs to SaaS apps quickly for internal automations. They are great for ops workflows and prototypes, weaker for complex agent state, eval gates and custom UX. Use them at the edges; keep core product orchestration in code when reliability and testability matter.
ReAct interleaves reasoning with tool actions in a loop. Plan-and-Execute drafts a plan then runs steps. Reflection/self-critique reviews outputs and revises. LATS (Language Agent Tree Search) searches over action trees. Prefer the simplest loop that meets reliability needs - agents fail when tools, state and stop conditions are vague.
30-second answer: Graphs give cycles, durable state, checkpoints and HITL pauses. Use them for stateful agents, not one-shot calls.
Graph runtimes model cyclic workflows with explicit state, conditional edges, persistence and checkpointing. You can pause for human approval, resume after failures, and time-travel debug. Use them when agents need durable state machines - not for a single LLM call.
30-second answer: Routers, hierarchies, handoffs and debate specialize work. Multi-agent helps quality but costs latency and complexity.
A supervisor/router delegates to specialists. Hierarchies nest teams. Sequential handoffs pass work down a pipeline. Debate/consensus has agents critique each other. Frameworks like CrewAI, AutoGen and the OpenAI Agents SDK implement these patterns. Multi-agent helps specialization and review - but adds latency, cost and failure surfaces.
30-second answer: MCP is a standard client/server protocol for tools and resources - reusable integrations across agents and IDEs.
MCP standardizes how hosts (clients) connect to servers that expose tools, resources and prompts. You build MCP servers for internal APIs/docs and plug them into compatible agents/IDEs instead of one-off tool adapters. Think of it as USB-C for tool/context integrations.
30-second answer: VLMs do VQA, UI-to-code and OCR extraction. Verify critical numbers - they can hallucinate text in images.
VLMs understand images with text: visual Q&A, UI-to-code, chart reading, and structured OCR/invoice extraction. They still hallucinate text in images - verify critical fields. Prefer models with strong grounded OCR when numbers and IDs matter.
30-second answer: STT transcribes, TTS speaks, cloning needs consent. Real-time agents stream STT→LLM→TTS over WebRTC with barge-in.
Speech-to-text (Whisper-class models) transcribes. Expressive TTS synthesizes speech; voice cloning copies a speaker with consent/legal constraints. Real-time voice agents use low-latency STT → LLM → TTS pipelines, often over WebRTC, with interruption handling and endpointing.
30-second answer: Video needs temporal consistency; 3D generation is emerging. Expect higher cost and check flicker/identity drift.
Video models need temporal consistency across frames for text-to-video and image-to-video. 3D asset generation is emerging for meshes/scenes from text or images. Expect higher cost/latency than still images and evaluate flicker, identity drift and physics plausibility.
30-second answer: Prompt for behavior, RAG for knowledge, fine-tune for stable style/format, continued pre-train for domain language. Prefer the lightest fix.
Prompting is cheapest for behavior tweaks. RAG supplies changing or private knowledge without weight updates. Fine-tuning teaches style, format, tool patterns or domain language when examples are stable. Continued pre-training adapts to a domain corpus before SFT. Prefer the lightest option that hits quality - fine-tuning is not a substitute for retrieval of fresh facts.
30-second answer: Clean, dedupe, format consistently. Synthetic teacher data helps if filtered. Prefer fewer clean examples over noisy volume.
Curate, clean, dedupe and convert to ChatML/Alpaca-style formats. Cover edge cases and refusal behavior. Synthetic data from a teacher model (distillation) scales volume but needs filtering for errors and license compliance. Quality beats quantity - a few thousand clean examples often outperform noisy millions.
30-second answer: LoRA trains small adapters; QLoRA adds 4-bit base weights; DoRA improves adaptation. Choose targets/rank via evals.
LoRA freezes base weights and trains low-rank adapters on chosen modules (often attention projections). QLoRA loads the base in 4-bit and trains LoRA adapters to cut VRAM. DoRA decomposes weights into magnitude and direction for stronger adaptation. Pick target modules and rank based on evals, not defaults alone.
30-second answer: DPO/ORPO learn from preferences. GRPO/RLVR reinforce when you have automatic verifiers like tests or math checkers.
DPO optimizes directly on preferred vs rejected responses without a separate RL loop. ORPO combines odds-ratio preference with SFT-style training. RLVR/GRPO use verifiable rewards (unit tests, math checkers) to reinforce reasoning. Use preference methods for style/safety; verifiable RL when you have automatic graders.
30-second answer: HF transformers/PEFT/TRL are the baseline; Unsloth/Axolotl speed iteration; rent GPUs as needed and track reproducibility.
Hugging Face transformers + PEFT + TRL cover standard SFT/DPO loops. Unsloth and Axolotl speed up and simplify configs. GPU clouds (RunPod, Lambda, Modal) provide burst capacity. Track datasets, hyperparams and eval harness versions so runs are reproducible.
30-second answer: PTQ quantizes after training; QAT trains aware of low precision. GGUF/AWQ/GPTQ/EXL2 are common packaging formats.
Post-Training Quantization compresses a trained model (FP16/BF16 → INT8/INT4) without full retraining. Quantization-Aware Training simulates low precision during training for better accuracy. Formats like GGUF, AWQ, GPTQ and EXL2 package quantized weights for different runtimes. Lower bits save memory/bandwidth with some quality loss - measure on your evals.
30-second answer: PagedAttention, continuous batching and speculative decoding drive throughput in engines like vLLM and TensorRT-LLM.
PagedAttention manages KV cache memory efficiently. Continuous batching fills GPU utilization as requests arrive. Speculative decoding uses a small draft model to propose tokens verified by the large model. Engines like vLLM, SGLang, TensorRT-LLM and TGI implement these ideas. Optimize for tokens/sec and tail latency, not just single-stream speed.
30-second answer: Ollama/llama.cpp/LM Studio for local desktops; MLX/WebLLM/ExecuTorch for edge. Quantize and shrink context for devices.
Ollama, llama.cpp and LM Studio make local chat easy. Mobile/browser runtimes (ExecuTorch, MLX, WebLLM) target edge constraints. Quantize aggressively, shrink context, and accept weaker models when privacy or offline is the goal.
30-second answer: Mix assertions, reference metrics and LLM-as-a-Judge rubrics. Tie the suite to real product failure modes.
Combine deterministic assertions (schema, regex, unit tests) with statistical NLP metrics (BLEU, ROUGE, BERTScore) where references exist, and LLM-as-a-Judge for open-ended quality (pairwise or rubric scoring). No single metric is enough - build a small suite tied to product failures.
30-second answer: RAG: faithfulness and context precision/recall. Agents: tool-call and trajectory accuracy. Split retrieval vs generation evals.
RAG cares about faithfulness, answer relevance, context precision/recall (RAGAS, DeepEval). Agents need trajectory quality and tool-call accuracy - right tool, right args, recovery from errors. Evaluate retrieval and generation separately so you know which stage broke.
30-second answer: Keep golden + adversarial sets and block merges when eval scores regress past a threshold.
Maintain a golden set of prompts with expected behaviors, plus adversarial/synthetic cases. Run them in CI on model or prompt changes and fail the build when regressions exceed a threshold. Refresh goldens as the product evolves so tests stay meaningful.
30-second answer: Trace prompts, retrieval and tools. Measure latency, tokens and cost with LangSmith/Langfuse/Phoenix/Helicone.
Use span-level traces for each prompt, retrieval, tool call and model response. Track latency breakdowns, token usage and cost attribution with LangSmith, Langfuse, Arize Phoenix or Helicone. Observability is how you debug flaky agents and control spend.
30-second answer: Async FastAPI + queues for heavy work + Docker. Separate streaming request path from long-running workers.
Use an async API (FastAPI) for streaming responses, task queues (Celery/Redis) for long jobs, and Docker for reproducible deploys. Separate the request path from heavy retrieval/fine-tune workers. Design for cancellation, timeouts and idempotent side effects.
30-second answer: Managed cloud platforms help with IAM/compliance. Abstract providers so you can route across Bedrock, Vertex, Azure or APIs.
Cloud GenAI platforms give managed model access, networking, IAM and compliance integrations inside your cloud. Use them when enterprise controls matter; use frontier APIs or self-host when you need models or pricing those platforms lack. Abstract the provider behind an interface so you can route later.
30-second answer: Cache similar prompts, compress context, route easy work to small models, and use Batch APIs for offline jobs.
Semantic caching (Redis/GPTCache) reuses answers for similar prompts. Prompt compression shrinks context. Cascading/model routing sends easy queries to small/cheap models and hard ones to frontier models. Batch APIs discount offline workloads. Measure cost per successful task, not only per token.
30-second answer: Watch prompt injection, jailbreaks, prompt leakage, unsafe output execution and data poisoning. Treat model output as untrusted.
Direct/indirect prompt injection, jailbreaks, system prompt leakage, insecure output handling (executing model output unsafely), and training data poisoning are headline risks. Treat model output as untrusted, isolate tools, and never let retrieved content silently override system policy.
30-second answer: Filter inputs/outputs for topic, toxicity and PII. Combine rails, least-privilege tools and HITL for high risk.
Apply input/output rails: topic boundaries, toxicity filters, PII detection/redaction (Presidio) and policy models (Llama Guard, NeMo Guardrails, Guardrails AI). Defense in depth - filters plus least-privilege tools plus human review for high risk.
30-second answer: Address bias, hallucinations, IP and privacy. Map systems to EU AI Act / NIST RMF and document oversight.
Audit for bias, mitigate hallucinations for high-stakes answers, respect copyright/IP on training and outputs, and follow privacy laws (GDPR, DPDP Act) plus frameworks like the EU AI Act and NIST AI RMF. Document model purpose, data sources and human oversight for regulated use cases.
Follow-up questions interviewers ask next
What is high-risk under the EU AI Act?
How do you reduce hallucination risk in production?
30-second answer: Narrow problem, real corpus RAG, few tools, streaming, evals, rails, Docker deploy - and document trade-offs. Depth beats buzzword breadth.
Start with a narrow user problem, add retrieval over a real corpus, one or two high-value tools, streaming chat, tracing, a golden eval set and basic rails. Deploy with Docker to a cloud target and document trade-offs (model choice, chunking, routing). Depth on one vertical beats a shallow demo of every buzzword.
Follow-up questions interviewers ask next
What metrics belong in the README?
How do you show agent reliability to interviewers?
30-second answer: Foundations → control (prompts/tools) → knowledge (RAG) → orchestration (agents) → production (FT, evals, ops, security).
Foundations and transformers explain model behavior. Prompting and tools control the model. RAG supplies knowledge. Agents orchestrate multi-step work and multimodal I/O. Fine-tuning, inference optimization, evals, LLMOps and security make it reliable and shippable. Interviewers look for whether you can connect these layers, not memorize tool names.
A reasonable order for two to three weeks of preparation, an hour or two a day:
Days 1 to 3: fundamentals. Tokenisation, attention, context windows and sampling parameters. You should be able to explain why a long prompt costs more and why temperature changes output.
Days 4 to 8: building blocks. Prompt design, structured outputs, tool calling, embeddings and retrieval. Build one small retrieval pipeline yourself; the questions about chunking and reranking become easy once you have seen them fail.
Days 9 to 12: agents and orchestration. The agent loop, planning, memory and when not to use an agent at all.
Days 13 to 16: quality and operations. Evaluation sets, judge models, tracing, cost and latency budgets, caching and rollouts.
Days 17 to 21: security and mock interviews. Prompt injection, data leakage and least-privilege tools, then two or three full mock interviews.
Interviewers for these roles care more about trade-offs than definitions. When you answer, name the alternative you rejected and why: "I would use hybrid search because..." is a stronger answer than describing hybrid search. The AI engineering lessons cover each topic in depth, with worked numbers and diagrams.