Skip to content
Tech Interview Prep
Technical interview guide

Feature Stores

A shared, consistent source of features for both training and serving, avoiding train/serve skew.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed
Relevant for
MLOps Engineer

Scope: Feast, Amazon SageMaker Feature Store, Azure Machine Learning managed feature store, and NIST AI RMF guidance current 2026-09-01.

Overview

Curated: · Written: · Reviewed:

Feature Stores

In one line

A feature store defines, computes and serves model features so that training and serving read the same versioned logic, and so that each training row gets the value that existed at its decision time. Reach for one when several teams or models reuse overlapping features. For one model with one code path, shared transformation code usually gives the same correctness with less operational cost.

Key definitions

  • Event time: when the real-world fact happened, such as when a chargeback was filed.
  • Ingestion (created) time: when the platform learned the fact. Point-in-time joins filter on this as well.
  • Point-in-time join: for label time t, return the newest value whose event time and ingestion time are both at or before t, subject to TTL.
  • Training-serving skew: offline and online values for the same entity and effective time differ.
  • Materialization: copying computed values from offline history into the online store, keyed by entity.
  • Feature view TTL: the maximum age at which a stored value is still treated as present.

Formulas and complexity

x(u,t)=value of the latest version e with tevent(e)≤t and tingest(e)≤tx(u,t)=\text{value of the latest version } e \text{ with } t_{\text{event}}(e)\le t \text{ and } t_{\text{ingest}}(e)\le t usable at t  ⟺  t−tevent(x)≤TTL\text{usable at } t \iff t - t_{\text{event}}(x) \le \text{TTL}

How it works

  1. The offline store keeps every version of each feature with its event and ingestion timestamps.
  2. The training join selects, for each label row, the value as of the label timestamp. It never reads a version written after that timestamp.
  3. The materializer copies the latest value per entity into the online store.
  4. Serving reads the online value. If it is absent or past TTL, the service returns a reviewed fallback or fails closed, and logs the presence signal.
Source events Versioned transformation code Offline store: all versions with event and ingest time Materializer Online store: latest value per entity Training: point-in-time join to labels Serving: read at request time

When to use and when not to

SituationFeature store fitsShared code is enough
ConsumersSeveral teams or models reuse the same featuresOne model, one pipeline
ServingOnline lookup under a tight p99 budgetBatch scoring only
DefinitionsOne governed definition must be sharedDefinition lives in one repo
CostAccepts materialization schedules and online store operationsNo extra infrastructure

Traps interviewers probe

  1. Latest-value join for training. Fix: join on the label timestamp and filter on both event time and ingestion time.
  2. Treating the online store as history. Fix: the online store is a materialized view. Rebuild training data from offline history.
  3. Online counters that reset or expire while the offline feature uses a trailing window. Fix: compute both from the same window definition and event stream, and test with fixtures whose events straddle the decision time.
  4. Counting a zero-row job as success. Fix: alert on rows written, entities covered and online age, not on exit code.
  5. Silent defaults for missing values. Fix: choose a default only if training uses the same value, record a presence signal, and monitor the fallback rate by slice.

Interview tips

Open with the contract: for an entity and decision time, the store returns the defined feature value computed only from information available then, within freshness and latency limits.

Follow-ups to expect:

  • How do you run a point-in-time join, and what does a boundary test look like?
  • What happens when the online store is down?
  • How do you backfill a corrected feature without overwriting newer online values?
  • How do you delete one user's features across offline history, online state, caches and saved datasets?
  • When would you not adopt a feature store?

30-second answer outline:

  1. State the contract in one sentence.
  2. Offline history keeps every version with event and ingestion time.
  3. Training uses a point-in-time join at label time, with TTL applied.
  4. Online is a materialized view, monitored for age and row counts.
  5. A parity test with boundary fixtures catches skew before deployment.
  6. Missing values go to a reviewed fallback or fail closed, and the fallback rate is monitored.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.