Choose your practice level
Choose experience for the scope of responsibility, then difficulty for the reasoning challenge. Filters narrow the existing questions; they do not change or remove the answers.
Fresher: fundamentals and beginner projects. Intermediate: implementation, debugging and optimization. Senior: architecture, scale, cost and technical decisions. Years are suggested study ranges, not eligibility rules; if you fall between ranges, choose by readiness. Difficulty remains an independent filter. These are editorial practice groupings, not employer ratings.
- Fresher (0–1 year): Use a small labeled dataset to explain a grouped split, training-only preprocessing and precision/recall with confusion counts. Include a runnable metric calculation.
- Intermediate (2–5 years): Investigate an unexpectedly good validation score and a weak subgroup. Compare inference-mode metrics, sample counts, label quality and the feature availability timeline.
- Senior (5+ years): Design a reproducible model comparison and training-serving contract for a changing feature pipeline. Defend the release and rollback criteria, not just the chosen algorithm.
Showing 10 of 10 unique questions.
These are original practice questions, not questions reported from a particular employer. Every scenario below is hypothetical. Use the answers to understand the reasoning, then explain the decision in your own words and connect it to work you actually did.
How to practise
First answer aloud without reading. State the goal, assumptions, proposed approach, checks and trade-offs. Then compare your reasoning with the answer, tackle the follow-up and write down one gap to practise. Aim for a clear two-minute initial explanation; expand when asked. This timing is a practice suggestion, not an interview rule.
Role-based questions and detailed answers
Why must you define the prediction instant before selecting features?
Show answerHide answer: Why must you define the prediction instant before selecting features?
Answer: A feature is usable only if its value would be available when the prediction is made. Define that instant and inspect how each field is produced and updated. Exclude future outcomes and retrospectively corrected information unavailable then. Reconstruct historical feature availability where possible; strong offline scores can otherwise reflect information the deployed system never receives.
Hypothetical scenario: A churn model uses an account-closure reason populated after the customer has already left.
Follow-up: How would you audit a field whose update timestamp is missing?
Common mistake: Checking correlation without checking when the information becomes available.
Worked example: For churn prediction on Monday 09:00, a refund posted Tuesday and a closure reason entered Friday are unavailable features even if the historical table now contains them. Reconstruct an as-of join using event and availability timestamps. Where history is missing, exclude the suspect field or state the limitation instead of accepting a suspiciously high score.
What a strong answer demonstrates: Write the prediction timestamp and demonstrate point-in-time feature correctness on one record.
When is a random train-test split misleading?
Show answerHide answer: When is a random train-test split misleading?
Answer: Random splitting can leak shared entities, repeated records or future conditions across partitions. Choose a split that approximates deployment: hold out entities for unseen-customer use, or later periods for future prediction. Keep the final test set separate from model selection. Document the intended generalization claim because no split answers every deployment question.
Hypothetical scenario: Photographs of the same manufactured item appear in both training and test partitions.
Follow-up: Would an entity split or time split better match this product?
Common mistake: Assuming random splitting always guarantees independent evaluation.
Worked example: If customer C appears in both partitions, a model may recognize C rather than generalize to a new customer. Keep customer IDs disjoint when unseen customers are the deployment target; hold out a later period when future performance is the target. A grouped split does not automatically test temporal change, so state precisely which claim it supports.
train_customers = {'C1', 'C2', 'C3'}
validation_customers = {'C4', 'C5'}
assert train_customers.isdisjoint(validation_customers)
leaky_validation = {'C2', 'C4'}
assert train_customers & leaky_validation == {'C2'}
# This checks entity overlap only, not temporal leakage or label quality.
What a strong answer demonstrates: Match the split to deployment and identify both entity overlap and time dependence.
Where should imputation and normalization be fitted?
Show answerHide answer: Where should imputation and normalization be fitted?
Answer: Fit learned preprocessing parameters on the training partition only, then apply those saved parameters to validation, test and production inputs. During cross-validation, fit them separately inside each training fold. This prevents evaluation data from influencing the learned transformation. Package the transformer with the model so deployment does not recompute incompatible means or category mappings.
Hypothetical scenario: A team computes missing-value medians using the complete dataset before creating evaluation folds.
Follow-up: Which preprocessing operations learn information from the data?
Common mistake: Believing only the model estimator can cause data leakage.
Worked example: For training values [10, 20, 30], the mean is 20. A validation value of 100 must not move it. Fit every learned preprocessing step within the training fold, save its parameters and reuse them at inference. This minimal example illustrates the boundary; a real pipeline also defines missing, constant and unseen-category behaviour.
train = [10.0, 20.0, 30.0]
mean = sum(train) / len(train)
variance = sum((x - mean) ** 2 for x in train) / len(train)
scale = variance ** 0.5 or 1.0
validation = [100.0]
transformed = [(x - mean) / scale for x in validation]
assert mean == 20.0 # Validation did not influence fitting.
What a strong answer demonstrates: Show fit versus transform explicitly and explain how cross-validation repeats fitting without leaking its validation fold.
How do you evaluate an imbalanced classifier?
Show answerHide answer: How do you evaluate an imbalanced classifier?
Answer: Begin with the decision costs and confusion counts rather than accuracy alone. Precision measures how many predicted positives are correct; recall measures how many actual positives are found. Compare thresholds using validation data and report the workload they create. Include sample sizes and slice behaviour because an attractive aggregate score may conceal costly missed cases.
Hypothetical scenario: Only a small fraction of transactions are fraudulent, and investigators can review a limited daily queue.
Follow-up: How does reviewer capacity affect the operating threshold?
Common mistake: Selecting the highest accuracy model when predicting every case negative already scores highly.
Worked example: With 40 true positives, 10 false positives and 60 false negatives, precision is 40/50 = 0.80 and recall is 40/100 = 0.40. Reviewers receive 50 alerts and miss 60 positives. Compare thresholds on validation data against reviewer capacity and error cost; keep the final test for the selected operating point.
tp, fp, fn = 40, 10, 60
precision = tp / (tp + fp) if tp + fp else None
recall = tp / (tp + fn) if tp + fn else None
assert precision == 0.8 and recall == 0.4
What a strong answer demonstrates: Calculate both denominators and connect the threshold to a real operational constraint.
How are ranking quality and probability calibration different?
Show answerHide answer: How are ranking quality and probability calibration different?
Answer: Ranking asks whether higher-risk examples tend to score above lower-risk ones. Calibration asks whether predicted probabilities agree with observed frequencies. A model may rank well yet systematically overstate risk. Evaluate both if probabilities drive financial or operational decisions, and fit any calibration step on separate validation information without consuming the final test set for tuning.
Hypothetical scenario: Cases scored near 0.8 are positive only about half the time, despite useful ordering.
Follow-up: Could changing a threshold fix probability calibration itself?
Common mistake: Treating a good ranking metric as evidence that probabilities are reliable.
Worked example: Among 100 held-out cases scored near 0.8, only 52 are positive. This suggests overconfidence for that band even if positives usually rank above negatives. Inspect reliability by score bin with sample counts; fit any calibrator on separate validation data. Moving the decision threshold changes actions, not the probability values' calibration.
What a strong answer demonstrates: Separate ordering, probability reliability and the selected action threshold without treating one metric as a substitute for all three.
Can validation performance legitimately exceed training performance?
Show answerHide answer: Can validation performance legitimately exceed training performance?
Answer: Yes. Training may include augmentation, dropout, harder examples or a different loss calculation, while validation uses inference settings. It can also indicate sampling differences or leakage. First compare metric definitions and evaluation modes, then inspect distributions and preprocessing. The direction of the gap alone is not a diagnosis and does not justify changing the model blindly.
Hypothetical scenario: Training accuracy is measured with strong augmentation, but validation uses clean, unmodified examples.
Follow-up: How would you compare both partitions under the same inference settings?
Common mistake: Declaring leakage solely because validation has a better score.
Worked example: Recompute both partitions with augmentation off and the model in inference mode, using the same metric aggregation. If the gap shrinks, training-time noise explained part of it. If it remains, inspect duplicate entities, label difficulty and distribution differences. Changing dropout before making an apples-to-apples comparison can hide the real cause.
What a strong answer demonstrates: Offer a diagnostic sequence rather than declaring either leakage or success from the gap alone.
What should an error-analysis report contain?
Show answerHide answer: What should an error-analysis report contain?
Answer: Group mistakes by decision-relevant slices, error type and potential cause. Inspect labels and source examples before treating every disagreement as model failure. Report the denominator for each slice and distinguish systematic patterns from a handful of cases. Recommend a testable intervention, such as correcting labels or collecting a missing condition, rather than merely listing bad predictions.
Hypothetical scenario: Overall recall looks acceptable, but low-light examples have few positives and many missed detections.
Follow-up: What additional evidence would make that slice-level conclusion trustworthy?
Common mistake: Reporting a percentage for a tiny slice without its sample count.
Worked example: A slice with 2 missed positives out of 3 has recall 1/3, but it is weak evidence for a stable population estimate. Include counts, representative errors and label checks; seek more examples before a broad claim. Propose a bounded fix, such as collecting low-light images, and rerun the same protected evaluation after validating that hypothesis.
What a strong answer demonstrates: Include denominators, uncertainty and a testable intervention instead of only screenshots of failures.
Does a highly important feature explain what causes an outcome?
Show answerHide answer: Does a highly important feature explain what causes an outcome?
Answer: Feature importance describes behaviour of a particular fitted model under a particular method and dataset. It does not establish a causal effect. Correlated features, leakage and measurement choices can change the result. Explain the importance calculation, test stability and avoid recommending an intervention solely because a feature has a high predictive contribution.
Hypothetical scenario: A hiring model assigns importance to a field strongly associated with a historical recruiting channel.
Follow-up: What evidence would be needed before changing that channel as an intervention?
Common mistake: Turning predictive association directly into a causal business recommendation.
Worked example: An attribution method may assign a recruiting-channel feature a large contribution because it proxies past selection decisions. Removing that channel operationally need not reproduce the model association. Check leakage, correlated inputs and attribution stability; use an appropriate causal design before recommending a real intervention. A predictive explanation and a policy recommendation require different evidence.
What a strong answer demonstrates: Name the explanation's scope and defend what cannot be inferred about causality or fairness.
How do you diagnose training-serving skew?
Show answerHide answer: How do you diagnose training-serving skew?
Answer: Compare the same raw examples through training and serving transformations, including category mappings, missing values, time zones and feature versions. Check that model and preprocessing artifacts are released together. Log safe feature summaries and contract failures. A model can be unchanged while its effective input meaning changes, so investigate upstream data changes as well as prediction code.
Hypothetical scenario: Training encodes an unknown category as a separate token, while production silently maps it to zero.
Follow-up: What contract test would catch the mismatch before deployment?
Common mistake: Retraining before checking whether serving inputs match the training contract.
Worked example: Save safe synthetic raw fixtures and compare training and serving feature vectors. Assert equal feature names, order, units, category vocabulary and null handling before comparing probabilities. If ‘unknown’ becomes category 0 in serving, ship the compatible encoder rather than immediately retraining. Version the contract and make skew failures a release gate.
What a strong answer demonstrates: Locate the first mismatching transformation and show how a contract test prevents recurrence.
What makes a model comparison reproducible and fair?
Show answerHide answer: What makes a model comparison reproducible and fair?
Answer: Use the same evaluation examples, metric definitions and comparable tuning budgets. Record dataset snapshots, code, seeds, dependencies and resource settings, while acknowledging some operations remain nondeterministic. Repeat important comparisons where variance matters. Choose on meaningful error and operational constraints, not a tiny score difference selected after repeatedly checking the final test set.
Hypothetical scenario: Candidate A received extensive tuning while candidate B was evaluated once with default settings.
Follow-up: How would you report uncertainty around a small apparent improvement?
Common mistake: Calling a comparison fair because both candidates share the same test file.
Worked example: Freeze a dataset manifest, preprocessing, metric code and tuning budget. Give candidates the same data-access boundary; choosing B after 50 trials versus A after one is not an equal search comparison. Record hardware and seeds, repeat relevant runs and report variation. Decide whether the measured quality gain justifies extra serving memory and latency.
What a strong answer demonstrates: Separate model-selection data from the protected test and justify the resource/quality decision with reproducible evidence.
Turn practice into evidence
Create a small tabular classifier with a clearly defined prediction time. Implement a training-only preprocessing pipeline and a grouped or chronological split where justified. Write an error report by slice, compare two decision thresholds and demonstrate that the saved preprocessing artifact produces identical transformations at inference.
Score each response informally: 0 if you cannot explain it, 1 for a definition, 2 for an approach with checks, and 3 for justified trade-offs plus a failure-recovery plan. This is a self-study rubric, not a validated hiring assessment. Revisit weak answers and never invent project outcomes or experience.
Career roadmap and related jobs
Build the underlying skills with the Machine Learning Engineer career guide. For a shorter starting point, read AI interview answer frameworks.
Explore relevant live jobs. Listings are filtered by Machine Learning and can include adjacent roles. Read the employer's requirements and original posting before applying. Use one listing to select the questions most relevant to its responsibilities.
Methodology
Editorial synthesis of cited sourcesAI-assisted original educational practice material. These are not actual employer interview questions, reported interview experiences or hiring guarantees. Answers, hypothetical scenarios, follow-ups and self-assessment advice are original editorial synthesis. Official Google references support background concepts, not endorsements of these answers. Related job recommendations use role-title aliases and, for specialist roles, primary specialization checks. Recommendations are a limited sample; adjacent roles may appear and availability changes. References checked 17 October 2026.
Read our editorial and research policy →Worked examples are original, hypothetical learning exercises, not employer results or production-ready implementations. Code uses the Python standard library; test and adapt it before real use.
Sources
- Dividing datasets
Google for Developers · Checked 17 October 2026
- Classification: accuracy, recall, precision and related metrics
Google for Developers · Checked 17 October 2026
- MLOps: continuous delivery and automation pipelines
Google Cloud · Checked 17 October 2026