Databricks Machine Learning Associate · Section 1 · 38% of the exam
Write data to a feature store table
One of the objectives of the Databricks Certified Machine Learning Associate exam, in the section “Databricks Machine Learning”. Here is what it covers, the points to remember and a question to try.
What it covers
In Unity Catalog, any Delta table with a primary key can be a feature table, governed and shared like any other table. This lesson compares it with the legacy workspace feature store, then shows how to create feature tables with Python and SQL and how to write to them with merge semantics.
Points to remember
- In Unity Catalog any Delta table with a primary key constraint is a feature table.
- Unity Catalog feature tables are reachable from every workspace on the metastore, governed by Unity Catalog privileges and audit logs, with automatic lineage and discovery; the Workspace Feature Store is deprecated.
- Client:
from databricks.feature_engineering import FeatureEngineeringClient(pre-installed on 13.3 LTS ML+;%pip installon serverless). fe.create_table(name, primary_keys, df= or schema=, timeseries_column=, partition_columns=, description=, tags=)fails if the table exists.- SQL:
CONSTRAINT pk PRIMARY KEY (id)with NOT NULL key columns; addts TIMESERIESfor time series keys.
Try a question
Three teams in different workspaces each recompute the same customer features, because their feature tables were created in each workspace's legacy feature store. The workspaces share one Unity Catalog metastore. What is the main benefit of creating the feature tables in Unity Catalog instead?
- AUnity Catalog feature tables are automatically published to an online store, so they are ready for real-time serving
- BUnity Catalog feature tables do not need primary keys, so any table can be shared
- CUnity Catalog feature tables are cached in memory, so training jobs read them faster
- DAll workspaces on the metastore can discover and reuse the same governed tables, with UC permissions and lineage
Show the answer
D. A feature table in Unity Catalog is accessible to every workspace assigned to the table's metastore (and to other metastores through OpenSharing). Teams share one copy with central access control, auditing, lineage and discovery, instead of duplicating features per workspace.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Feature tables in Unity Catalog teaches this objective (about 35 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Identify the best practices of an MLOps strategy
- Identify the advantages of using ML runtimes
- Identify how AutoML facilitates model/feature selection.
- Identify the advantages AutoML brings to the model development process
- Identify the benefits of creating feature store tables at the account level in Unity Catalog in Databricks vs at the workspace level
- Create a feature store table in Unity Catalog
- Train a model with features from a feature store table.
- Score a model using features from a feature store table.
- Describe the differences between online and offline feature tables
- Identify the best run using the MLflow Client API.
- Manually log metrics, artifacts, and models in an MLflow Run.
- Identify information available in the MLflow UI