InterviewStack.io LogoInterviewStack.io

Feature Engineering and Selection Questions

Covers the end to end process of transforming raw data into predictive and stable model inputs and choosing the most useful subset of those inputs. Topics include generating features from domain signals and timestamps, numerical transformations such as scaling binning and logarithmic transforms, categorical encodings including one hot and target encoding, creation of interaction and polynomial features, construction of dense feature vectors for model consumption, handling missing values and outliers, and strategies for class imbalance. Also includes feature selection and dimensionality reduction methods such as filter techniques statistical tests wrapper methods embedded model based selection mutual information analysis and tree based importance measures. Emphasis is placed on avoiding data leakage validating feature stability over time interpreting feature contributions and documenting rationale for feature creation or removal. For senior roles include designing feature engineering best practices mentoring others and considering feature impact on model interpretability and business metrics.

MediumTechnical
23 practiced
Explain practical steps to avoid target leakage when constructing features and labels for time-series forecasting and time-dependent supervised tasks. Cover creating explicit cut-off times, lagging features, rolling-window label creation, backtesting with rolling windows, use of purge and embargo in CV, and checks you would run to validate no look-ahead information slipped into features.
EasyTechnical
22 practiced
How would you construct dense feature vectors for a deep learning model from tabular data containing numeric, categorical, and short-text fields? Describe preprocessing for numeric features, embedding approaches for categoricals, text vectorization options, handling missing values, and efficient storage/serialization formats for training and serving (for example TFRecords or compact flat arrays).
MediumTechnical
23 practiced
Describe practical approaches to extract predictive features from short free-text fields for use in structured models and for deep learning models. Cover TF-IDF and n-grams for light-weight models, pretrained sentence or token embeddings (e.g., sentence-BERT) as dense features, learned embeddings or fine-tuning for deep models, and operational considerations such as caching, quantization, and latency.
HardTechnical
26 practiced
Case study: A model meets accuracy SLA but feature computation cost and latency are high. Design an experimental protocol to find the minimal subset of features that maintains SLA while reducing cost. Include strategies for search (greedy ablation, importance-based pruning, recursive elimination), cross-validation and holdout design to control variance and false positives, statistical tests to compare models, cost metrics, and stopping criteria for the search.
HardTechnical
27 practiced
Compare using frozen pre-trained dense embeddings (e.g., sentence or entity embeddings) as features versus fine-tuning those embeddings end-to-end in a limited-data applied setting. Discuss trade-offs in expected accuracy gains, overfitting risk, compute and memory cost, update and deployment complexity, and propose decision criteria for choosing one strategy over the other in production.

Unlock Full Question Bank

Get access to hundreds of Feature Engineering and Selection interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.