Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Machine Learning Professional

Data profiling and monitoring pipelines

Databricks Machine Learning Professional · Lesson 18 of 22 · 2:11:24

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 Databricks Certified Machine Learning Professional exam. In this lesson: data profiling (formerly Lakehouse Monitoring), the snapshot, time series, and inference profile types and their metric tables, matching a need to a feature, creating a profile in code, and a monitoring pipeline from inference logging to alerts. Includes three original practice questions.

Study notes

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

A healthy endpoint

Pebblecove's cancellation endpoint answered every request last month, quickly and without errors, and yet its predictions got worse: guests from the new country booked much further ahead than in the training data. A healthy endpoint does not mean a healthy model, so the data and the predictions must be watched too. This lesson covers data profiling, formerly Lakehouse Monitoring: the three profile types, how to build a profile, and the parts of a monitoring pipeline.

Three profile types

Data profiling attaches a profile to a Unity Catalog table, and offers three profile types. A time series profile suits a table with a timestamp column, and computes its metrics over time windows. An inference profile suits the request log of a model, with its inputs and predictions, and adds model quality metrics once labels are present. A snapshot profile computes its metrics over the full contents of the table at each refresh, for tables up to four terabytes. Each profile writes two metric tables, the profile metrics and the drift metrics, and creates a dashboard.

Matching a need to a feature

Each need maps to a profile type, and to a feature of data profiling. To compare production with what the model learned, set a baseline table, like the training data. To see the metrics per country or per device, add slicing expressions, and each value becomes a slice. To measure quality, choose an inference profile with a label column, and for a classifier, a boolean slice also gives fairness metrics between two groups. And when a business measure is missing, like the share of stays longer than a week, a custom metric adds it to the metric tables.

Building a profile

A profile is attached to a table with create_monitor, from the data quality client of the Databricks SDK. For an inference profile, the configuration names the problem type, the prediction column, the timestamp column, the model id column, and the granularities, like one day; the label column is optional. An output schema for the metric tables and the slicing expressions complete it, and create_refresh computes the metrics on serverless compute. A time series profile needs only the timestamp column and the granularities, and a snapshot profile needs neither. The first run only looks at the last thirty days, and enabling the change data feed on the table lets each refresh process only the new rows.

The monitoring pipeline

A monitoring pipeline for a served model has a few standard components. Logging comes first: the inference table of the serving endpoint logs every request and response, and a scheduled job unpacks them into columns. Drift detection compares the inputs and the predictions with a baseline, or with the previous window, even before any label exists. Model performance follows when the labels arrive, through a join on a request id, so quality metrics can be tracked over time. Model health watches the endpoint itself, with latency, error rates, and resource use, and alerts on all of these lead to people, or to retraining.

Recap

Let's recap. Data profiling offers three profile types: time series, inference, and snapshot. Each profile writes profile metrics, drift metrics, and a dashboard. Baselines, slices, labels, and custom metrics each answer a specific need. A profile is created with create_monitor, and refreshed on serverless compute. And a monitoring pipeline covers logging, drift, model performance, model health, and alerts.

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. The hosts reference table is rewritten in full each night, and has no timestamp column. Which profile type fits?

    • Time series, with a daily granularity
    • Snapshot
    • Inference, with the host id as the model id
    • None: only appended tables can be profiled
    Show the answer

    Snapshot

    A snapshot profile computes its metrics over the whole table at each refresh, with no timestamp needed. “Time series, with a daily granularity” would require a timestamp column. “Inference, with the host id as the model id” is for the request log of a model, with a prediction column. And “None: only appended tables can be profiled” is wrong, since a snapshot profile handles a table that is rewritten.

  2. Two model versions serve traffic, and the team wants quality metrics for each version. What provides them?

    • The model id column of an inference profile
    • A snapshot profile of the request log
    • A separate profile for each model version
    • A granularity of one model version
    Show the answer

    The model id column of an inference profile

    An inference profile slices its metrics automatically by each distinct value of the model id column. “A snapshot profile of the request log” would profile the whole table, without any notion of a model. “A separate profile for each model version” is not possible, since a table can only have a single profile. And “A granularity of one model version” is not a granularity, which is always a length of time.

  3. Cancellation labels arrive weeks after each prediction. Which component still gives an early warning?

    • Model performance from the joined labels
    • Latency metrics of the endpoint
    • Unit tests of the model code
    • Drift on the inputs and the predictions
    Show the answer

    Drift on the inputs and the predictions

    Drift on the inputs and the predictions needs no label, so it warns before quality can be measured. “Model performance from the joined labels” would have to wait for the labels. “Latency metrics of the endpoint” would watch the endpoint, not the data. And “Unit tests of the model code” would run before deployment, not in production.