A telecom team adds a new feature, dropped_calls_7d, produced by a streaming job from network events starting today. To train on 18 months of history, past training rows also need values. The raw network events for that period are archived. Which approach is sound?
Show the answer and explanation
Correct answer: B, Recompute each past value with the same feature definition over the archived events, as of each row's timestamp, then compare backfilled and streamed values on an overlap window.
Explanation Feature Stores
A backfill computes a new feature's past values so that it can be used in training immediately. It is only valid if the backfilled values are what the streaming job would have produced at each moment.
Sound backfill:
- Same definition: run the same transformation code (or one shared definition, e.g. an Apache Beam pipeline in batch mode) over the archived event log.
- Point in time: each row gets the 7-day window ending at that row's timestamp, using only events that would have arrived by then.
- Overlap check: run backfill and streaming in parallel for some days and compare values per key. Late events, deduplication and window boundaries are where the two paths typically disagree.
If no raw log exists, the honest option is log and wait: serve the feature, log the served values, and train once enough history has accumulated.
Why the alternatives fail:
- Separate approximate SQL creates two definitions of the same feature: the model learns the backfill's version and is served the streaming one, which is training-serving skew built in by design.
- Windows as of the cutoff date give every historical row of a subscriber the value measured at the cutoff, i.e. information from the future relative to older labels: leakage.
- Zero for unknown confuses "no data" with a real and common value (zero dropped calls), and the model sees real values for only the newest rows.
Interview tip: name the two backfill risks explicitly, leakage (wrong time) and skew (wrong logic), and the check for each: point-in-time windows and an overlap comparison.