M9-030M9: Senior ML & AI System DesignFeature Store, Sharding & CI InfraHard
⚡Flashcard Drill➔Mastery:
Design a Real-Time Flink + Redis Feature Store with Zero Training-Serving Skew
🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
📐 Mathematical Definition
⚡ One-Sentence Core Answer
Eliminate training-serving skew via unified Flink streaming transforms, event-time watermarked aggregations, and Point-in-Time ASOF joins for historical backfills.
📌 Key Takeaways
- •L1 Serving SLA: fetch 300+ entity features via pipelined Redis
MGETwithin 5ms P99 - •L2 Single Feature Definition: compile streaming Flink jobs and batch backfills from one declarative DSL instead of dual-language reimplementation
- •L2 Watermarks & Late Events: process out-of-order Kafka streams via event-time sliding windows and atomic Redis Lua updates
- •L3 Point-in-Time Backfill: sink feature mutations to Iceberg/Parquet and execute strict ASOF joins (
feature_ts <= label_ts) plus logged-feature parity checks
📐 Mathematical Derivations
Point-in-time retrieval enforces , verified pre-deploy by two-sample KS parity against logged online vectors.
🏭 Production Trade-offs
1) Training directly on logged inference features gives zero skew but cannot backfill newly invented features—pair logging with Iceberg ASOF backfills; 2) Tier cold entity keys to NVMe-backed stores.
⚠️ Common Interview Pitfalls
- ✕Mixing processing-time online windows with event-time offline backfills during traffic spikes
- ✕Inconsistent missing-value sentinels (
NaNin offline Python vs0.0in online Go/C++)
🎯 Interviewer Follow-up Inquiries
- ?How do you backfill a new 7-day rolling feature without saturating production Redis IOPS?
- ?During Flink recovery catch-up, how do you stop stale replayed events from overwriting newer Redis values?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
📚