Interview practice

Data Scientist / ML Engineer

0–2 years · Junior — Python · Statistics · scikit-learn · Feature engineering · Model evaluation · Deployment

0–2 years 2–5 years 5–8 years 8+ years
technical Deployment 1 of 6
You need to deploy a machine learning model with a requirement for low latency responses. What considerations do you take into account regarding the model and its environment?
What a strong answer covers

Assesses model complexity versus performance trade-offs; optimises the model for inference, possibly using techniques like quantisation or pruning; configures a fast serving infrastructure such as a REST API; monitors latency and throughput during and after deployment; prepares to scale the model serving if needed.

The follow-up you would get

What is model quantisation and why is it used?

Could you have answered that?
ownership Feature engineering challenges 2 of 6
Can you tell me about a situation where a feature you created did not contribute positively to your model? How did you handle it?
What a strong answer covers

Mentions a specific feature and its intended impact; describes the evaluation process that revealed its ineffectiveness; includes how feedback was gathered from stakeholders or team members; explains the steps taken to modify or remove the feature; reflects on lessons learned regarding feature importance.

The follow-up you would get

What indicators would you look for earlier next time?

Could you have answered that?
technical Feature Engineering 3 of 6
You have a dataset with a highly skewed target variable, where 90% of the data belongs to one class. What techniques do you apply to handle this imbalance before training your model?
What a strong answer covers

Evaluates the distribution of classes; considers oversampling the minority class or undersampling the majority class; explores synthetic data generation techniques like SMOTE; checks for stratified sampling during cross-validation; mentions using appropriate metrics like F1-score or AUC instead of accuracy.

The follow-up you would get

What impact does using oversampling have on the training process?

Could you have answered that?
scenario Feature Engineering 4 of 6
You are tasked with improving a model’s performance but the feature set is limited. What steps do you take in the first half hour to enhance the features?
What a strong answer covers

Examines existing features for relevance and redundancy; considers generating new features through polynomial transformations or interaction terms; investigates external data sources for enrichment; prioritises feature importance using techniques like mutual information; outlines a plan for rapid experimentation on selected features.

The follow-up you would get

A new feature shows promise but is computationally expensive. How do you approach optimising its computation?

Could you have answered that?
scenario Metric Choice 5 of 6
You are asked to choose metrics for a model that predicts rare events, and stakeholders have conflicting priorities. How do you approach this decision?
What a strong answer covers

Identifies key stakeholders and their priorities; evaluates precision, recall, and F1 score for alignment with business goals; suggests creating a precision-recall curve to visualise trade-offs; discusses implications of different metrics on model behaviour; proposes a balanced scorecard to meet diverse needs.

The follow-up you would get

How do you handle a situation where the chosen metric does not seem to reflect real-world performance?

Could you have answered that?
scenario Model Evaluation 6 of 6
You are reviewing a model's performance and find that it performs well on training data but poorly on validation. What immediate actions do you take?
What a strong answer covers

Checks for overfitting by comparing performance metrics; evaluates model complexity and parameters; reviews cross-validation strategy for robustness; inspects data preprocessing steps for leakage; considers simplifying the model or increasing training data.

The follow-up you would get

You suspect there might be data leakage. What specific checks do you perform to confirm this?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.