Machine learning engineer interview questions

A machine learning engineer interview usually covers overfitting, choosing evaluation metrics, monitoring models in production, statistics, and Python performance. Interviewers look for practical judgement about data quality and real-world costs of mistakes, not only model accuracy. Prepare one project where you explain the metric you chose and why.

· 9 questions · Questions from the MiraiHire question bank; tips written by the MiraiHire team.

Technical questions

  1. What is overfitting, and how do you detect it?

    Foundational

    What the interviewer is looking for: The model learns noise in the training data; detect it with a gap between training and validation scores, then mention fixes.

  2. How would you choose an evaluation metric for an imbalanced classification problem?

    Applied

    What the interviewer is looking for: Explain why accuracy misleads, then choose precision, recall, F1 or PR-AUC based on the real cost of each kind of mistake.

  3. How would you monitor a machine-learning model after it goes to production?

    Advanced

    What the interviewer is looking for: Track input drift, prediction drift, live quality when labels arrive, latency and errors, with alerts and a retraining plan.

  4. How do you check whether a difference between two groups is meaningful and not chance?

    Applied

    What the interviewer is looking for: Mention sample size, a suitable statistical test, confidence intervals and effect size, and checking the groups are comparable.

  5. How would you clean a dataset with missing and inconsistent values before analysis?

    Foundational

    What the interviewer is looking for: Profile the data first, decide per column whether to drop, fill or flag missing values, standardise formats, and document each step.

  6. How do Python generators work, and when would you use one?

    Applied

    What the interviewer is looking for: Explain yield and lazy evaluation, then give a use case such as reading a large file line by line without loading it all.

  7. How would you profile and speed up a slow Python data-processing job?

    Advanced

    What the interviewer is looking for: Measure first (cProfile or a line profiler), find the hot spot, then vectorise, batch I/O, cache, or parallelise, and measure again.

Behavioural questions

  1. Tell me about a time you had to make a decision with incomplete information.

    Advanced

    What the interviewer is looking for: Explain how you judged the risk, what you checked quickly, how you kept the decision reversible, and what happened.

  2. Tell me about the most complex problem you have solved. How did you break it down?

    Advanced

    What the interviewer is looking for: Show structured thinking: how you split the problem, tested ideas, used data, and the measurable result.

Answering behavioural questions

Use STAR: the Situation, your Task, the Actions you took and the Result, ideally with a number. Paste your answer into the free STAR checker to see which part is missing.

Check my answer with STAR →

Practise these questions

MiraiHire gives you interview practice sets from this question bank, by text or voice, with feedback. Free to start.

Start practising free