Feature Stores interview question

MLOps & ProductionFeature StoresData Leakagehard

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?

  1. AFill every pre-launch row with 0 and let the model learn that 0 means unknown, so the feature is only used for recent rows and the archived events do not need to be processed.
  2. BRecompute 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.
  3. CWrite a separate SQL backfill that approximates the streaming logic from daily summary tables, since batch and streaming paths differ slightly anyway and the model adapts to the gap.
  4. DApply the same feature definition to the archived events, but compute every window as of the training cutoff date, so that all historical rows share one consistent snapshot.
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:

  1. 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.
  2. 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.
  3. 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.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More MLOps & Production questions

  1. A retailer's progressive-delivery pipeline shifts traffic to a new recommendation-API version in steps of 5% → 25% → 50% → 100%. At each step, automated…
  2. A telecom support bot on a self-hosted vLLM server sends a 3,000-token system prompt plus the growing chat history on every turn. After you enable automatic…
  3. A security review of a retail client's Google Cloud project finds that the Vertex AI training pipeline, a GKE scoring service and a nightly export job all run…
  4. On a GKE cluster you deploy a model server as a Deployment with 3 replicas and expose it with a Service. Which statement correctly describes these Kubernetes…
  5. Which statement best defines MLOps?