CertLumen

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 install on 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; add ts TIMESERIES for 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?

  1. AUnity Catalog feature tables are automatically published to an online store, so they are ready for real-time serving
  2. BUnity Catalog feature tables do not need primary keys, so any table can be shared
  3. CUnity Catalog feature tables are cached in memory, so training jobs read them faster
  4. 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

← Previous objective · All 48 objectives · Next objective →