Data Preprocessing and Feature Engineering Interview Questions for Machine Learning
25 Data Preprocessing and Feature Engineering questions with answers for machine learning roles — 8 easy, 14 medium, 3 hard.
About Data Preprocessing and Feature Engineering
Real data is messy, and most of an ML engineer's time goes into cleaning and shaping it. This topic covers missing values, outliers, scaling, categorical encoding, target encoding, feature selection, multicollinearity and data leakage, plus building leak-proof scikit-learn pipelines with ColumnTransformer so the same preprocessing runs in training and production.
What is the difference between standardisation and normalisation?
Show answer
How do you handle missing values in a dataset?
Show answer
What is one-hot encoding and when can it cause problems?
Show answer
What is feature engineering and why does it matter?
Show answer
How do you extract useful features from a datetime column in pandas?
Show answer
How do you find and remove duplicate rows and check missing values in pandas?
Show answer
How do you explain data cleaning decisions to a non-technical manager?
Show answer
What is the difference between label encoding and ordinal encoding?
Show answer
What is data leakage? Give two examples.
Show answer
How do you detect and treat outliers?
Show answer
Compare filter, wrapper and embedded feature selection methods.
Show answer
What is multicollinearity and how do you detect it?
Show answer
Why do skewed features often need a log or power transform?
Show answer
Your dataset has a city column with 2,000 unique values. How will you encode it?
Show answer
Validation AUC is 0.99 on a loan default model. What do you suspect?
Show answer
40 percent of values in an important income column are missing. What do you do?
Show answer
How do you build a scikit-learn pipeline for mixed numeric and categorical data?
Show answer
How do you calculate VIF for features in Python?
Show answer
How do you select the top k features using mutual information in scikit-learn?
Show answer
Describe a time you found a serious data quality issue late in a project.
Show answer
How would you encode cyclical features like hour of day or month?
Show answer
What is target encoding and how do you avoid leakage with it?
Show answer
New categories appear in production that were not in training data. How do you handle it?
Show answer
Your preprocessing works in notebooks but gives different results in production. Why?
Show answer
Frequently asked questions
How important is Data Preprocessing and Feature Engineering in Machine Learning interviews?
Real data is messy, and most of an ML engineer's time goes into cleaning and shaping it. This topic covers missing values, outliers, scaling, categorical encoding, target encoding, feature selection, multicollinearity and data leakage, plus building leak-proof scikit-learn pipelines with ColumnTransformer so the same preprocessing runs in training and production.
How should I use the Data Preprocessing and Feature Engineering sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.