Machine Learning Engineer interview questions, case study and skills assessment

This role takes models and LLM features from prototype into production and keeps them healthy there. The work spans training and serving pipelines, retrieval and extraction features built on LLM APIs, evaluation sets, drift monitoring, and latency and cost tuning. Most of it happens alongside product and data science, deciding what to build and how success gets measured.

The skills this role needs

Every question and score ties back to one of these.

  • Production ML engineering in Python

    The job is shipping and maintaining pipelines for training, evaluation and serving, which rests on clean, testable Python and sound software structure.

  • Model deployment and serving

    Containers, APIs and cloud ML services are the delivery path for every model here, so deployment choices decide whether a prototype ever reaches users.

  • LLM feature design (prompting and retrieval)

    Retrieval, extraction and classification features are built on LLM APIs, which needs judgment about prompts, context, chunking and fallbacks rather than one-off tinkering.

  • Evaluation design and measurement

    The role owns evaluation sets and quality definitions, and a weak eval set means nobody can tell whether a change helped.

  • Monitoring, drift detection and observability

    Quality and drift monitoring is named directly, and production LLM systems fail quietly unless someone instruments them properly.

  • Latency and cost optimisation

    Serving LLM features at scale forces trade-offs between speed, spend and quality, and this role makes those calls.

  • Working with product and data science

    What to build and how to measure it gets decided jointly, so the engineer has to translate fuzzy product goals into measurable targets.

Sample assessment questions

What candidates see, and what a strong answer shows. Your full assessment would have more, scored against a rubric.

  1. Multiple choiceEvaluation design and measurement

    An extraction feature pulls invoice fields from PDFs. The team's only check is a 40-example set the prompt was written against, and it scores 97%. Users report frequent errors. What's the most useful first move?

    1. Raise the model temperature to improve coverage of unusual documents
    2. Build a held-out set sampled from real production traffic, including hard and malformed documents, and label it
    3. Swap to a larger model and re-run the existing 40 examples
    4. Add a second prompt that asks the model to double-check its own output

    What good looks like

    Option B. The eval set is contaminated and unrepresentative, so any score from it is meaningless. Strong candidates fix measurement before changing the system, and sample from real traffic rather than inventing cases.

  2. Written answerLLM feature design (prompting and retrieval)

    A retrieval-backed Q&A feature answers confidently but cites the wrong source about one time in five. You have access to logs, the chunked index and the prompt. Describe how you'd find the cause and what you'd try first.

    What good looks like

    Separates retrieval failure from generation failure before fixing anything. Mentions checking whether the right chunk was ever retrieved (recall at k), then chunking strategy, embeddings and query rewriting. Covers prompt-level grounding and refusal behaviour only after retrieval is ruled in or out. Names a measurement for each change.

  3. Put in orderLatency and cost optimisation

    A classification endpoint built on an LLM API costs more than budget and sits at 2.4s p95. Quality must not drop. Put these actions in the order you'd try them, first to last.

    1. Measure where time and spend actually go across retrieval, prompt size and generation
    2. Cache results for repeated or near-identical inputs
    3. Trim prompt and context length, then re-run the eval set
    4. Distil or fine-tune a smaller model for the task
    5. Rewrite the serving layer in a faster language

    What good looks like

    Measurement first, then cheap reversible wins (caching, prompt trimming), then the heavier investment of a smaller tuned model. Rewriting the serving layer last, since the bottleneck is almost certainly the API call. Good answers tie each step back to the eval set.

  4. Written answerMonitoring, drift detection and observability

    You're about to ship an LLM extraction feature. Name the signals you'd instrument from day one so you'd know within a day if quality degraded, and say why each one would catch something the others miss.

    What good looks like

    Goes beyond uptime and latency. Covers input distribution shift, output distribution and schema validity, refusal and fallback rates, confidence or self-consistency proxies, downstream user corrections, and periodic scoring against a golden set. Explains that model providers change behaviour silently, so version and prompt tracking matter.

Case study

A take-home brief built for this role. About 75 minutes.

Shipping a contract clause extractor for Meridian Legal Ops

Meridian Legal Ops reviews supplier contracts for mid-sized companies. A data scientist built a notebook prototype that uses an LLM API to pull six fields from each contract (counterparty, term, renewal notice period, liability cap, governing law, termination rights). On 60 hand-picked contracts it looks accurate. Leadership wants it live in six weeks, handling roughly 4,000 contracts a month, with reviewers correcting output in a UI rather than reading contracts end to end. Constraints you've been given. Contracts run 5 to 80 pages and arrive as scanned PDFs of mixed quality. Reviewers need results within about 60 seconds of upload. Budget is roughly 12 cents per contract. A wrong liability cap is far more costly than a blank one. You've been asked to write the plan for taking this from notebook to production. No code required. We care about your reasoning, your sequencing and what you'd refuse to ship without.

  1. 1

    Evaluation and quality bar

    Describe how you'd build an evaluation set for the six fields, including how you'd sample, who labels, and how you'd handle ambiguous clauses. Define the metrics you'd hold the system to, and set a different bar for liability cap than for governing law. Explain the reasoning behind the split.

  2. 2

    Architecture and trade-offs

    Sketch the production path from uploaded PDF to reviewed output. Cover OCR, chunking or retrieval, the LLM calls, validation, and where a human sits. Call out two decisions where latency, cost and accuracy pull against each other, and say which way you'd go and why.

  3. 3

    Monitoring and the first bad week

    List the signals you'd instrument before launch. Then describe what you'd expect to go wrong in the first month and how your setup would surface it. Include what you'd do if the API provider silently changed model behaviour.

Recommended hiring stages

In order. Each stage is there because it tells you something the others can't.

  1. 1

    Skills assessment

    Assessment · 35 minutes, completed online

    The sample questions separate people who've genuinely run LLM features in production from people who've prototyped. Evaluation design and debugging judgment show up fast here.

  2. 2

    First call with the hiring manager

    Conversation · 30-minute call

    Covers scope of past production work, what they actually owned versus what the team shipped, and whether the mix of ML and software engineering matches what they want next.

  3. 3

    Technical working session

    Conversation · 60 minutes, shared screen

    A live session on a small pipeline or debugging problem in Python. Tests code reasoning and testing habits that a written stage can't see.

  4. 4

    Case study

    Assessment · 75 minutes of work, 4 days to return it

    The Meridian brief mirrors the core job, taking a fragile prototype to production under real latency and cost limits. It surfaces sequencing and what someone refuses to ship.

  5. 5

    Case discussion

    Conversation · 45-minute call

    Pressure-testing the case in person shows whether they can defend trade-offs, absorb a changed constraint, and explain technical calls to a product audience.

  6. 6

    Final conversation

    Conversation · 30-minute call

    Last questions, team context, and how they work with data science and product when priorities conflict. Also their chance to interrogate the role.

  7. 7

    Offer and decision

    Decision · Within 3 working days of the final call

    Scores and notes from each stage reviewed against the rubric before any offer goes out, so the decision rests on evidence rather than the last conversation.

Interview questions

Asked of every finalist, in the same order, so answers compare fairly.

  1. Evaluation design and measurement

    Tell me about a time your evaluation set gave you a misleading signal. How did you notice, and what changed in how you build eval sets since?

  2. Working with product and data science

    Describe a case where product wanted a feature you thought couldn't be measured reliably. How did you handle that conversation, and where did it land?

  3. Production ML engineering in Python

    Walk me through a model or LLM feature you took from prototype to production. What did you have to rebuild rather than reuse, and what would you do differently now?

  4. Monitoring, drift detection and observability

    Think of a production issue you found late, or that a user found before you did. What signal was missing, and what did you add afterwards?

The job description behind this plan

A typical description for the role. Yours will differ, so the plan you build from it will too.

Machine Learning Engineer
You'll take models and LLM features from prototype to production.
What you'll do: build training, evaluation and serving pipelines; integrate LLM APIs for retrieval, extraction and classification features; design evaluation sets and monitoring for drift and quality; optimise latency and cost; work with product and data science on what to build and how to measure it.
What you'll bring: 4+ years of software or ML engineering; strong Python; experience deploying models (containers, APIs, cloud ML services); hands-on LLM work including prompt design, retrieval and evaluation; solid testing and observability habits.

Hiring a Machine Learning Engineer?

Start from this plan or your own job description. Edit every question, send candidates one link, and see every answer scored the same way.

Create your workspace

Other roles