Feature Engineering and Feature Stores Questions
Transforming raw data into predictive model inputs and serving those features reliably. Covers feature creation and selection, encoding high-cardinality and categorical variables, representation learning, and the design of feature stores for training/serving consistency. Emphasizes features as a primary lever on model quality and the operational challenges of keeping them fresh and consistent.
Explain how you'd engineer geospatial features for a demand-prediction or search-ranking model: distance to a city center, proximity to points of interest, and neighborhood popularity signals, including how to compute these at scale and how to handle listings near a boundary or with missing coordinates. Show a concrete example: transforming raw listing records into features by bucketing price into deciles, creating a normalized log-price feature, and quantizing latitude/longitude into a grid-cell ID.
Implement frequency encoding in Python: given a DataFrame and a categorical column name, return a new column with each category's frequency (count or normalized frequency). Discuss the pitfalls of using frequency encoding in production when categories are high-cardinality or when the training and serving distributions differ.
How would you design an experiment to confirm that an engineered interaction feature (for example, combining a user's recency and frequency into one composite feature) actually improves the production model, rather than just improving an offline metric by chance? Cover the train/validation/out-of-time-holdout design, statistical significance testing, and the business or performance lift you'd consider meaningful before committing to the added maintenance cost.
You're building a churn or customer-segmentation model from usage logs, support tickets, and demographics. Propose at least eight engineered features that could capture churn or segmentation risk, explaining the intuition and how you'd compute each from raw data at scale (roughly two million rows of mixed numeric, high-cardinality categorical, timestamp, and free-text data). Also discuss how you'd decide whether to standardize or bin the behavioral signals you propose, and how you'd detect feature leakage that would artificially inflate offline performance.
Walk through a real (or realistic) project where engineered features materially improved model performance: the domain context, the raw data you started from, the transformations or aggregations you created (lag features, ratios, binning, target encoding, and so on), how you tested for target leakage, and how you measured and validated the lift with cross-validation or a holdout. If you were new to a team with only raw event logs and thousands of candidate features, describe the prioritized, fast-first workflow you'd use to find the most promising features quickly for an initial proof of concept.
Unlock Full Question Bank
Get access to all 9 Feature Engineering and Feature Stores interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.