Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Databricks · Databricks Data Engineer Professional

OpenSharing, Clean Rooms, and Lakehouse Federation

Databricks Data Engineer Professional · Lesson 9 of 21 · 1:15:00

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 Data Engineer Professional exam. In this lesson: data beyond the workspace: OpenSharing (formerly Delta Sharing), Databricks Clean Rooms, and Lakehouse Federation. Includes three original practice questions.

Study notes

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

Data beyond the workspace

Quayside Eats must send daily delivery figures to a partner restaurant chain that runs Databricks, and to an insurer that does not. A grocery partner wants to count the customers that both companies share, without either side seeing the other's rows, and finance wants to query the PostgreSQL billing database without copying it. This lesson covers OpenSharing, Clean Rooms, and Lakehouse Federation, and when each one fits.

OpenSharing

OpenSharing, formerly Delta Sharing, shares data from Unity Catalog without copying it: a provider groups tables, views, volumes, and other assets into a share, and grants the share to recipients. Creating them takes the CREATE SHARE and CREATE RECIPIENT privileges on the metastore. Databricks-to-Databricks sharing targets a recipient on a Unity Catalog metastore, identified by the sharing identifier of that metastore, and Databricks manages the secure connection, with no token to handle. Databricks-to-Open sharing targets a recipient outside Databricks, with a bearer token in a credential file, or with OIDC federation, and the recipient reads through open connectors, like pandas or Apache Spark. Either way, recipients get read only access: they query the shared data, but they cannot write to it.

Clean Rooms

Clean Rooms let several organizations analyze their data together, without any of them seeing the others' rows, and they run on OpenSharing and serverless compute. Each collaborator shares tables, views, volumes, or notebooks into a central clean room, where the others see the column names and types, but never the data. Code runs only as notebooks, and every collaborator, except the one who uploaded a notebook, must approve it before it runs. A designated runner then runs the notebook in the central clean room, over the data of all the collaborators. Results can come back as read only output tables, saved for a limited time in the runner's Unity Catalog metastore.

Lakehouse Federation

Lakehouse Federation queries external databases, like PostgreSQL, MySQL, SQL Server, or Snowflake, without ingesting them first. A connection, created with CREATE CONNECTION, is a Unity Catalog object that stores the host, the port, and the credentials, and Databricks recommends secrets for them. A foreign catalog, created with CREATE FOREIGN CATALOG on that connection, mirrors a database of the source, so its tables appear in Unity Catalog. Creating it takes CREATE CATALOG on the metastore and CREATE FOREIGN CATALOG on the connection, and the usual Unity Catalog privileges then govern who reads what. Federated queries are read only, and Databricks pushes filters and other work down to the source when it can. For large data queried often, ingesting it with Lakeflow Connect usually costs less, and runs faster, than federation.

Recap

Let's recap. OpenSharing shares Unity Catalog data without copying it, and recipients get read only access. Databricks-to-Databricks uses the sharing identifier of a metastore, and Databricks-to-Open uses a bearer token or OIDC federation. Clean Rooms let collaborators analyze data together without seeing each other's rows, and every notebook needs the approval of the other collaborators. Lakehouse Federation reads external databases through a connection and a foreign catalog, governed by Unity Catalog. And for large data queried often, ingest it instead.

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. An insurer that does not use Databricks must query a daily table of Quayside Eats deliveries, without a copy sent by email. Which setup fits?

    • Databricks-to-Databricks sharing with a sharing identifier
    • A foreign catalog on the insurer’s database
    • Databricks-to-Open sharing with a bearer token
    • A clean room with the insurer
    Show the answer

    Databricks-to-Open sharing with a bearer token

    Databricks-to-Open sharing serves recipients outside Databricks, with a bearer token in a credential file. “Databricks-to-Databricks sharing with a sharing identifier” needs a recipient on a Unity Catalog metastore, which the insurer does not have. “A foreign catalog on the insurer’s database” would let Quayside Eats query the insurer's database, which is the opposite direction. And “A clean room with the insurer” is for joint analysis, where no side sees the other's rows.

  2. Quayside Eats uploads a notebook to a clean room that it shares with a grocery partner, and the notebook cannot run yet. What is missing?

    • A bearer token for the grocery partner
    • A foreign catalog on the partner’s tables
    • SELECT on the partner’s rows
    • The grocery partner’s approval of the notebook
    Show the answer

    The grocery partner’s approval of the notebook

    Every collaborator except the uploader must approve a notebook before it can run. “A bearer token for the grocery partner” belongs to Databricks-to-Open sharing, not to clean rooms. “A foreign catalog on the partner’s tables” belongs to Lakehouse Federation, which queries external databases. And “SELECT on the partner’s rows” is never possible, since collaborators never see each other's rows.

  3. Finance must query the PostgreSQL billing database a few times a month, joined with lakehouse tables, without copying the data. What should the data engineer set up?

    • A connection and a foreign catalog
    • A Lakeflow Connect ingestion pipeline
    • A Databricks-to-Open share
    • A clean room with the finance team
    Show the answer

    A connection and a foreign catalog

    A connection and a foreign catalog let Unity Catalog query the billing database in place, with the usual privileges. “A Lakeflow Connect ingestion pipeline” would copy the data into the lakehouse, which finance does not want. “A Databricks-to-Open share” would share Databricks data out, instead of reading a database in. And “A clean room with the finance team” is meant for analysis between organizations, not for a database.