Katkat

What AI Engineering Interviews Cover

By the Katkat team · Updated · 8 min read

Quick overview

Learn the four AI engineering interview rounds, what interviewers actually grade, and how to turn this course into a focused prep plan.

Lesson 1 of 88 · AI Engineering Interview Course

After this lesson you should be able to describe the main kinds of rounds in an AI engineering interview loop and what each one is testing. You should also be able to say what separates a strong answer from a merely correct one, and how to spend your prep time. Companies differ a lot, so treat this as a map of common territory, not a description of any specific loop.

The four round types

Most loops for AI or LLM engineering roles draw on four kinds of rounds. Some companies combine them, skip one, or add a general software round.

RoundCore questionTypical formatWhat a strong answer shows
LLM fundamentalsDo you understand how these models work?Conceptual discussion, whiteboardMechanisms, not buzzwords
Application designCan you build a reliable product on an LLM?Open-ended system designTrade-offs, evaluation, failure handling
Infrastructure and servingCan you reason about cost, latency and hardware?Estimation, design, debuggingBack-of-envelope numbers that are correct
CodingCan you implement core pieces cleanly?Live coding or take-homeCorrect, stable, tested code

The exact weighting depends on the role. A product-focused role leans on application design. A platform or inference role leans on infrastructure. A research-adjacent role leans on fundamentals and coding.

LLM fundamentals rounds

These rounds check whether you have a working mental model of the system you are building on. Expect to explain things like:

  • How text becomes tokens and why that affects cost and behaviour (Tokenization).
  • What happens inside a transformer layer and why attention costs what it does (The Transformer, Explained for Engineers).
  • How a base model becomes a chat model, and what pretraining, SFT and preference tuning each contribute.
  • How decoding settings such as temperature and top-p change outputs.
  • Why models hallucinate, and which mitigations address which cause.

The interviewer is usually probing depth with follow-ups. If you say "attention lets tokens look at each other", expect "how, exactly, and what does that cost as the sequence grows?" The mechanism-first habit is the main defence. State what happens step by step, then say what that implies for cost, quality or failure.

Application design rounds

Here you are given a product goal, such as a support assistant over company documents, a coding helper, or an agent that books travel. You design the system. Common components include:

  • Retrieval: chunking, embeddings, vector search, hybrid search and reranking.
  • Prompting and structured output.
  • Tool calling and agent loops.
  • Memory, caching and conversation state.
  • Evaluation, observability and safety.

A good answer is organised around decisions, not components. For each choice, name the alternative and the reason you rejected it. For example, "I would start with plain retrieval and measure recall before adding a reranker, because a reranker adds latency and I want evidence it is needed." A strong candidate also brings up evaluation unprompted. A design with no way to measure whether it works is incomplete. Retrieval-Augmented Generation, End to End is a good template for how to walk through a pipeline.

Infrastructure and serving rounds

These rounds test whether you can reason about the hardware and runtime underneath. Topics include GPU memory, the difference between prefill and decode, KV cache growth, batching, quantization, parallelism for training, and cost per token.

The signature skill is the back-of-envelope estimate. Interviewers want to see that you can get within the right order of magnitude and say which assumptions drive the answer.

Worked example: sizing a serving setup

Say you are asked how much memory a 70-billion-parameter model needs and how that changes with precision.

Weights alone, at bytes per parameter:

PrecisionBytes per parameterWeight memory for 70B
FP16 / BF16270 × 10⁹ × 2 = 140 GB
INT8170 GB
INT40.535 GB

On 80 GB GPUs, FP16 weights need at least 140 / 80 = 1.75, so 2 GPUs just to hold them. That leaves almost nothing for the KV cache, so a real deployment would use more.

Now the KV cache. Take an illustrative configuration (not any specific model): 32 layers, 8 KV heads, head dimension 128, FP16 storage. Per token, you store a key and a value for every layer:

  • 2 (K and V) × 32 layers × 8 heads × 128 dims × 2 bytes = 131,072 bytes, which is 128 KiB per token.
  • A 4,000-token request: 4,000 × 131,072 ≈ 524 MB, or about 0.52 GB.
  • If 20 GB of GPU memory is left after weights and overhead: 20 / 0.524 ≈ 38 concurrent requests of that length.

The lesson for the interview is the shape of the reasoning: weights are fixed, KV cache scales with concurrent tokens, and whatever is left after weights decides your batch size. The full version of this question is in How Many GPUs Does It Take to Serve a 70B Model?.

Coding rounds

Coding rounds in this field usually ask you to implement a small, well-known component rather than a puzzle. Typical targets are softmax and cross-entropy, multi-head attention, top-k and top-p sampling, a BPE tokenizer, a KV cache, cosine-similarity retrieval, a text chunker with overlap, a LoRA layer, or a minimal tool-calling loop.

What gets graded here differs from a general algorithms round:

  • Numerical care. Softmax without subtracting the max overflows, which is why Implement Numerically Stable Softmax and Cross-Entropy is a classic.
  • Tensor shapes. Say the shape of each tensor out loud as you write.
  • Edge cases: empty input, a sequence of length one, ties in top-k, overlap larger than chunk size.
  • Testing your own code with a tiny example before declaring it done.

You are usually allowed to use a numerical library such as NumPy or PyTorch, but confirm that at the start. Ask what is allowed instead of assuming.

What interviewers grade

Across all four round types, the same few qualities show up. Interviewers rarely score them as separate boxes, but they shape the overall impression.

  • Mechanism over vocabulary. Can you explain why, not just name the technique?
  • Trade-off awareness. Every option costs something in latency, money, quality or complexity. Naming the cost is the signal.
  • Quantitative sense. Do your numbers have units, and does the arithmetic hold up? A wrong but clearly derived estimate is easier to correct than a confident guess.
  • Evaluation mindset. How would you know it works, and how would you catch it getting worse?
  • Failure thinking. What happens on timeouts, malformed output, prompt injection, or a retrieval miss?
  • Structured communication. Clarify the problem, state assumptions, give a plan, then go deep where asked.
  • Honesty about uncertainty. Saying "I am not sure of the exact figure, but it is roughly this order of magnitude, and here is how I would check" scores better than bluffing.

How to use this course

The lessons are grouped to mirror the round types: how LLMs work, building LLM applications, agents, serving and infrastructure, fine-tuning, and practice questions. A sensible path:

  1. Pick your target. Decide which rounds your role is likely to emphasise. A Study Plan for AI Engineering Interviews helps you schedule the work.
  2. Read the concept lessons for mechanisms first. Each one explains the mechanism, then trade-offs, then how it appears in interviews.
  3. Practise out loud. For each concept, explain it in two minutes without notes. If you cannot, you know the term but not the idea.
  4. Do the coding practice with a timer. Write the implementation from scratch, then test it on a tiny input.
  5. Do the estimation drills. Redo calculations like the one above until the arithmetic is automatic.
  6. Review near the end. Use the cheat sheet to check recall, not to learn new material.

If time is short, prioritise breadth in your weakest round type over depth in your strongest. A loop usually punishes a hole more than it rewards extra polish.

How does this come up in interviews?

Sometimes the interview is about the interview itself. Here are some prompts you may meet at the start, in a recruiter chat, or in a "tell me about yourself" slot.

1. "How would you describe the difference between an ML engineer and an AI engineer?" Outline: Say that titles vary by company, then give your working definition. AI engineers typically build products on top of existing models, so prompting, retrieval, evaluation, tool use and serving matter most. ML engineers more often train and optimise models themselves. Mention that the roles overlap, especially around fine-tuning and inference.

2. "Walk me through an LLM project you shipped. What went wrong?" Outline: Pick one project and give the goal, the architecture, and one concrete failure. Explain how you detected it (an eval, a trace, a user report), what you changed, and how you confirmed the fix. Interviewers are grading evaluation mindset and honesty here.

3. "How do you keep up with a field that changes this fast?" Outline: Anchor on fundamentals that change slowly (attention, memory, batching, evaluation) and treat new releases as variations on them. Describe a habit, such as reading original papers for techniques you actually use and re-running your own evals on new models. Avoid listing model names as if memorising them were the skill.

4. "Design a document question-answering assistant." Outline: Clarify scale, document types and accuracy needs first. Walk through ingestion, chunking, retrieval, generation and evaluation, naming one alternative at each step. Close with failure handling and how you would measure quality before and after launch.

5. "Roughly how much GPU memory does it take to serve a 13B model?" Outline: State bytes per parameter for the chosen precision (13 × 10⁹ × 2 = 26 GB in FP16). Add KV cache and overhead, and say the total depends on batch size and context length. Mention that quantization would reduce the weight portion.

Common mistakes

  • Memorising definitions without being able to explain the mechanism when pushed with a follow-up.
  • Jumping straight to a favourite architecture in a design round without clarifying requirements.
  • Designing a system with no evaluation plan, no monitoring and no failure handling.
  • Quoting figures from memory with false precision. Give approximate numbers, show the arithmetic, and say what assumptions you made.
  • Forgetting units, or mixing up bytes and bits, GB and GiB, parameters and tokens.
  • In coding rounds, writing the whole solution silently, skipping shape checks, and never running a small test.
  • Preparing only the round type you enjoy and ignoring the one where you are weakest.
  • Treating the course as reading material only. Without explaining aloud, coding and estimating, recall will be weaker under pressure.