Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Professional Machine Learning Engineer

Feature Store

Professional Machine Learning Engineer · Lesson 5 of 19 · 36:39

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Professional Machine Learning Engineer exam, on the official exam guide. In this lesson: Agent Platform Feature Store with BigQuery as the offline store, feature groups and features, feature monitoring, online stores and feature views (scheduled or continuous sync), Bigtable online serving, Vector Search for embeddings, point-in-time lookups, and how shared features prevent training-serving skew. Includes three original practice questions, with Cymbal Insurance, a fictional car and home insurer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

One feature, three versions

Cymbal Insurance's fraud model relies on a feature called claims in the last ninety days. A notebook computes it one way, the training pipeline another way, and the claims app a third way. The model looked great in testing, and it drifts in production, because the three versions do not match.

What Feature Store is

Agent Platform Feature Store is a managed feature store, built on BigQuery. Your feature data stays in BigQuery tables or views: each column is a feature, one column holds the entity ID, like a policy number, and a timestamp column says when the values were true. These BigQuery tables are the offline store, so there is no separate copy to keep in step. Feature Store adds a metadata layer on top, and serves the latest values online at low latency.

The Feature Registry

Registering features is optional, but it brings real benefits. A feature group points to one BigQuery table or view, with its entity ID columns, and a timestamp column when the data is a time series. Each feature in the group points to one column, so you can pick only the columns that you need, and combine groups from several sources. With a timestamp, Feature Store serves only the latest value for each ID, and feature monitors can track statistics and drift on a schedule.

Online serving

Online serving starts with an online store, a serving cluster with its own nodes. Inside it, each feature view collects features, from feature groups or straight from a BigQuery table, and syncs them from BigQuery, on a cron schedule or continuously. A feature view must sync at least once before it can serve. Bigtable online serving handles terabytes of data, with scheduled or continuous sync, but no embeddings: for those, use Vector Search. The older Optimized online serving is deprecated and being retired, so new designs choose Bigtable online serving.

Training data without leaks

For training, the offline store is simply BigQuery. Build each training example with a point in time lookup: the feature values as they were when the label happened, never values from later, which would leak the future into training. Because training and serving read the same feature definitions, the model sees the same values in both places, which prevents training serving skew. And one shared registry lets other teams find and reuse features, instead of rebuilding them.

Recap

Let's recap. Feature Store keeps feature data in BigQuery, which is the offline store, with an entity ID column and a timestamp column. Feature groups and features register sources and columns, serve the latest value per ID, and enable feature monitoring. An online store holds feature views, synced from BigQuery on a schedule or continuously. Bigtable online serving is the current choice, and Vector Search handles embeddings. Point in time lookups and shared definitions prevent leaks and training serving skew.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. A BigQuery table holds one row per policy per day, with a timestamp column. The claims app must get only the most recent values for each policy, with the least custom code. What should the team do?

    • Rebuild a latest-row table every night
    • Point a feature view at the raw table
    • Export the table to Cloud Storage
    • Register a feature group with the timestamp
    Show the answer

    Register a feature group with the timestamp

    A feature group with the timestamp column lets Feature Store serve only the latest values for each policy. “Rebuild a latest-row table every night” would add custom code to rebuild a table every night. “Point a feature view at the raw table” would fail, because without registration, each row must have a unique ID. And “Export the table to Cloud Storage” would move the data out of BigQuery, with nothing to pick the latest row.

  2. Fraud features for 12 million policies change in BigQuery all day, and the scoring service must see each change within minutes. What should the team set up?

    • Bigtable online serving, continuous sync
    • Optimized online serving, scheduled sync
    • Bigtable online serving, daily cron sync
    • Vector Search for the fraud features
    Show the answer

    Bigtable online serving, continuous sync

    Bigtable online serving handles this volume, and continuous sync brings BigQuery changes into the feature view in near real time. “Optimized online serving, scheduled sync” is deprecated, and it only supports scheduled sync. “Bigtable online serving, daily cron sync” would leave the values up to a day old. And “Vector Search for the fraud features” only serves embeddings, not these feature values.

  3. The fraud model scored well offline, but poorly in production. The claims count is computed in SQL for training and in Java inside the scoring service, with different rules. What is the best fix?

    • Retrain the model on the Java values only
    • Add a year of training data
    • Define it once in BigQuery, serve it from Feature Store
    • Add nodes to the scoring service
    Show the answer

    Define it once in BigQuery, serve it from Feature Store

    One definition in BigQuery, served by Feature Store for both training and inference, removes the mismatch. “Retrain the model on the Java values only” would keep training on values that production never sees. “Add a year of training data” would add data, not fix the mismatch. And “Add nodes to the scoring service” would only speed up the wrong values.