ML SYSTEM DESIGN & MLOPS Β· INTERVIEW QUESTION
What is a feature store? Why is it important for ML systems?
π‘ intermediate Β· ML Pipelines
Hint: Think about training-serving skew and feature reuse.
Answer
A feature store is a centralized platform for storing, managing, and serving ML features. It bridges the gap between feature engineering in training and feature serving in production.
Components:
-
Feature registry: catalog with metadata, owners, documentation.
-
Offline store: historical features for training (data warehouse, S3).
-
Online store: low-latency serving for inference (Redis, DynamoDB).
-
Transformation engine: consistent computation for both stores.
Key benefits:
-
Prevents training-serving skew: same feature logic used everywhere.
-
Feature reuse: teams share features instead of duplicating work.
-
Point-in-time correctness: prevent future data leakage during training.
-
Monitoring: track feature freshness, quality, drift. Popular tools: Feast (open source), Tecton, Hopsworks, SageMaker Feature Store. Essential for organizations with multiple ML models sharing common features.
Related questions
- What is LLMOps and how does it differ from traditional MLOps?
- Explain model parallelism vs data parallelism for training large models.
- How do you handle versioning of LLMs in production?
- Outline the data pipeline for training an LLM from raw text to training batches.
- Design a real-time ML serving system for a recommendation engine handling 10k QPS.