Databricks Lakehouse Architecture: Delta Lake and Unity Catalog
Introduction
Databricks lakehouse architecture connects reliable Delta Lake tables with Unity Catalog governance. This lesson belongs to the first section of the official exam outline, Databricks Intelligence Platform, which carries about 6% of the scored questions (roughly three of the 45 questions). That is a small share, but the ideas here are the foundation for everything else: every later lesson assumes that you understand where your code runs, how a Delta table stores data, and how Unity Catalog names and protects objects. Governance questions (15% of the exam) and ingestion and transformation questions (43% together) reuse the vocabulary you learn now.
After this lesson you will be able to explain the lakehouse idea and the role of the Data Intelligence Platform, separate what lives in the control plane from what lives in the compute plane, describe how the Delta Lake transaction log gives you ACID transactions and time travel, and navigate the Unity Catalog object model with fully qualified names.
Exam reference: this lesson follows the guide updated on August 6, 2026 for the exam published on May 4, 2026. Its domain weights remain unchanged. Product documentation can evolve faster than the exam outline; check the current guide before your exam. Lakeflow Spark Declarative Pipelines was formerly Delta Live Tables, and Lakeflow Jobs was formerly Workflows.
Learning objectives
- Describe the lakehouse architecture and why the Data Intelligence Platform unifies data engineering, analytics and AI.
- Distinguish control-plane services, compute resources and persistent data storage.
- Explain how the Delta Lake transaction log provides ACID guarantees, and use time travel,
DESCRIBE HISTORYandRESTORE. - Name the Unity Catalog securable objects and write three-level names (
catalog.schema.object). - Explain what lineage shows and why one governed copy of data serves BI and AI.
1. The lakehouse and the Data Intelligence Platform
The problem the lakehouse solves
Before the lakehouse, many companies ran two systems. A data lake (files in cloud object storage such as S3, ADLS Gen2 or GCS) was cheap and flexible and held raw logs, JSON and images, but it had no transactions, weak schema control and poor SQL performance. A data warehouse gave fast SQL and strong consistency, but only for structured data, at a higher price, and with a copy of the data that quickly drifted from the lake. Teams spent their time copying data between the two and reconciling the differences.
A lakehouse keeps the data in open formats in cheap cloud storage and adds the warehouse features on top: ACID transactions, schema enforcement, indexing and statistics, governance and fast SQL. On Databricks, the storage layer is Delta Lake (Parquet data files plus a transaction log), and the governance layer is Unity Catalog.
The Data Intelligence Platform
The Databricks Data Intelligence Platform is the umbrella for the lakehouse plus the services around it. For the exam, think of it as one place where the following work happens against the same governed data:
| Capability | What it does | Typical user |
|---|---|---|
| Data engineering | Ingestion (Auto Loader, Lakeflow Connect), transformation, Lakeflow Spark Declarative Pipelines, Lakeflow Jobs | Data engineer |
| Analytics and BI | Databricks SQL, SQL warehouses, dashboards | Analyst |
| Data science and AI | Notebooks, ML, model serving, AI functions | Data scientist, ML engineer |
| Governance | Unity Catalog: access control, lineage, audit, discovery | Admin, data steward |
The "intelligence" part means that the platform uses AI to help with tasks such as search, code assistance, and tuning. The exam focuses on the practical value: a single copy of the data, one permission model, and one set of tools, so the analyst and the ML engineer read the same table that the data engineer produced.
Example. A retailer, Northwind Outdoor, collects 40 million click events per day as JSON files in cloud storage. Previously a nightly job copied a cleaned subset into a warehouse for the BI team and a second copy into a separate lake for the data scientists. After moving to the lakehouse, the pipeline writes one Delta table prod.sales.clicks_silver. The BI team queries it from a SQL warehouse, the data scientists read it from notebooks, and Unity Catalog grants control who can see it. Those duplicate distribution jobs can be retired; validation and reconciliation of source data are still necessary.
2. Control plane, compute plane, and workspace
Databricks separates the platform into two planes. This is a favorite exam topic because the answer to "where is my data?" depends on it.
- The control plane is managed by Databricks in Databricks' own cloud account. It hosts the web application and workspace UI, the REST APIs, notebook and job definitions, cluster management, and the job scheduler. Do not treat it as the storage layer for your business tables; service metadata and results can still contain sensitive information.
- The compute plane is where data is processed. In classic compute, the compute plane lives in your cloud account (your VPC or VNet): the virtual machines of your clusters and pools run there, and they read your data from your own storage. In serverless compute, the compute resources run in a serverless compute plane managed by Databricks, and Databricks handles provisioning, scaling and patching.
For classic workspaces, tables commonly use storage in your cloud account. Serverless workspaces can instead use Databricks-managed default storage for Unity Catalog assets, or connect your own storage. Identify the workspace and storage configuration before making a data-residency claim. For workload choices, continue with Databricks compute selection.
A workspace is the environment in which users work: it contains notebooks, Git folders, jobs, pipelines, dashboards and compute. A Databricks account can contain several workspaces (for instance dev, test and prod), and a single Unity Catalog metastore can be attached to many workspaces in the same region, which is how teams share governed data across workspaces.
Exam tip. If a question asks where customer data resides for a classic cluster, the answer is your cloud account's storage; the control plane stores metadata, notebook source and job definitions.
Files, DBFS and volumes
Older material talks about DBFS (the Databricks File System) and the DBFS root. For new work, the recommended place for non-tabular files is a Unity Catalog volume, a governed object that points to a location in cloud storage and is addressed as /Volumes/catalog/schema/volume/path. Volumes can be managed (storage handled by Unity Catalog) or external (you point at an existing location). Because volumes are securables, you use GRANT READ VOLUME and GRANT WRITE VOLUME rather than sharing storage credentials. You will use volumes again in the ingestion lessons.
3. Delta Lake: transactions, history, and time travel
What a Delta table is
A Delta table is a folder in cloud storage that contains two things:
- Data files in Parquet format (columnar, compressed).
- A transaction log in the
_delta_logsubfolder: an ordered series of JSON commit files (00000000000000000000.json,00000000000000000001.json, and so on), with periodic checkpoint files in Parquet that summarize the state.
A successful table-changing transaction publishes a new version through the log. Readers resolve the snapshot from a checkpoint and subsequent commits. Existing Parquet files are immutable: without deletion vectors, row changes rewrite affected files; with deletion vectors, Delta can record removed rows separately and apply that information while reading. Not every update rewrites every affected Parquet file.
ACID guarantees
| Property | What Delta Lake gives you |
|---|---|
| Atomicity | A commit is a single new log entry. A single transaction becomes visible together or remains uncommitted. Earlier successful transactions in a multi-step job can remain committed if a later step fails. |
| Consistency | Schema enforcement rejects writes that do not match the table schema; constraints such as NOT NULL and CHECK are validated. |
| Isolation | Readers see a consistent snapshot of the table as of the log version they started with. Concurrent writers use optimistic concurrency control: a conflicting transaction can fail; handle the error and retry safely rather than assuming every conflict is retried automatically. |
| Durability | Once the commit file is written to cloud storage, the change is durable. |
A first Delta table
CREATE TABLE prod.sales.orders (
order_id BIGINT NOT NULL,
customer_id BIGINT,
amount DECIMAL(10,2),
order_ts TIMESTAMP
);
INSERT INTO prod.sales.orders VALUES (1, 100, 25.50, current_timestamp());
UPDATE prod.sales.orders SET amount = 27.00 WHERE order_id = 1;In Unity Catalog, tables created with CREATE TABLE use Delta by default, so you do not need USING DELTA (older notebooks still write it).
Time travel, history and restore
Because old data files remain until they are removed by VACUUM, you can query earlier versions:
DESCRIBE HISTORY prod.sales.orders; -- list versions, operations, users, timestamps
SELECT * FROM prod.sales.orders VERSION AS OF 1; -- by version number
SELECT * FROM prod.sales.orders TIMESTAMP AS OF '2026-10-20 08:00:00';
RESTORE TABLE prod.sales.orders TO VERSION AS OF 1; -- roll the table back (creates a new commit)In PySpark the same read is spark.read.option("versionAsOf", 1).table("prod.sales.orders").
Important limits:
- Time travel needs the historical files and log entries. Defaults are 7 days for deleted-file retention and 30 days for log retention. Current runtimes also enforce the deleted-file retention age for time travel; retained files alone are insufficient.
RESTOREis itself a new commit, so it appears in the history and can be undone.- Time travel is not a backup strategy for long retention; it is meant for audits, debugging and quick recovery.
Worked example: recovering from a bad update
Scenario. At 09:05 an engineer runs UPDATE prod.sales.orders SET amount = 0 and forgets the WHERE clause. At 09:20 the finance team notices zero revenue. What is the fastest safe recovery?
Reasoning.
- Run
DESCRIBE HISTORY prod.sales.orders. Suppose it shows version 14 asUPDATEat 09:05 and version 13 as aMERGEat 06:00. - Confirm the data is still correct in version 13 with
SELECT count(*), sum(amount) FROM prod.sales.orders VERSION AS OF 13. - Check that a whole-snapshot restore will not discard legitimate later writes, then run
RESTORE TABLE prod.sales.orders TO VERSION AS OF 13. This creates version 15. - Verify totals and coordinate streaming consumers: restored changes can be processed again.
Why not the alternatives? Re-running the nightly pipeline would reload everything and take hours, and would not recover rows changed manually since. Dropping and recreating the table loses the history, grants and lineage. Restoring from a copy in another system would be slow and probably stale. RESTORE keeps the table object and publishes another version. Its duration depends on the table and operation; recovery also requires the referenced files.
4. Unity Catalog object model
Unity Catalog is the unified governance layer of the platform. It stores metadata and permissions centrally at the account level, so one definition applies in every attached workspace.
The hierarchy
Metastore (one per region, top-level container)
└─ Catalog
└─ Schema (also called database)
├─ Table (managed or external)
├─ View
├─ Materialized view / Streaming table
├─ Volume (managed or external)
├─ Function
└─ Registered ML modelOther securable objects sit beside this hierarchy: storage credentials, external locations, connections, shares and recipients (Delta Sharing), and service credentials.
| Level | What it is | Example |
|---|---|---|
| Metastore | Top-level container of metadata, normally one per cloud region | eu-west-metastore |
| Catalog | First level of data organization, often per environment or business unit | prod, dev, finance |
| Schema | Groups tables, views and volumes | prod.sales |
| Table / view / volume | The data and file objects | prod.sales.orders |
Use the three-level namespace catalog.schema.object. You can set defaults to avoid repeating them:
USE CATALOG prod;
USE SCHEMA sales;
SELECT * FROM orders; -- resolves to prod.sales.orders
SELECT * FROM prod.sales.orders; -- fully qualified, always unambiguousTables, views and other objects
- A managed table uses a managed storage location and Unity Catalog controls its lifecycle. After
DROP TABLE, the default recovery window is 7 days forUNDROP TABLE; purge is asynchronous afterward. A configurable recovery window is in Public Preview, so inspect the applicable setting. - An external table points to data in a location you control; dropping it removes the metadata only. You will study both in lesson 14.
- A view is a saved query; it stores no data. A materialized view stores precomputed results that are refreshed, and a streaming table incrementally ingests an append-only source. Both are produced by Lakeflow Spark Declarative Pipelines or by SQL (lesson 8).
- A volume holds files (CSV, JSON, images, PDFs, libraries) rather than tables.
Privileges follow the hierarchy
Privileges are granted to users, groups or service principals. Applicable catalog and schema grants inherit to child objects; do not assume every privilege on the metastore inherits. To read prod.sales.orders a principal needs USE CATALOG on prod, USE SCHEMA on prod.sales, and SELECT on the table (or inherited SELECT on the schema or catalog).
GRANT USE CATALOG ON CATALOG prod TO `analysts`;
GRANT USE SCHEMA ON SCHEMA prod.sales TO `analysts`;
GRANT SELECT ON TABLE prod.sales.orders TO `analysts`;Granting SELECT on the table alone is not enough: without USE CATALOG and USE SCHEMA the user cannot reach the object. This is a very common exam trap. Apply these rules in the lesson on Unity Catalog tables and access control.
Lineage and the single governed source of truth
Unity Catalog captures lineage for supported Databricks queries at table level and, where it can resolve column mappings, at column level. RDD workloads and some transformations have coverage limitations. In Catalog Explorer you can see which upstream tables and jobs produced a table, which downstream tables, dashboards and models consume it, and which notebook wrote it. Lineage helps with:
- Impact analysis: before dropping a column, see which dashboards depend on it.
- Root-cause analysis: when a number is wrong, trace it upstream to the faulty step.
- Audit and compliance: show where sensitive data flows. Lineage respects permissions, so users only see the parts they are allowed to see.
Together with the audit logs, discovery and tagging features, this gives the organization one governed copy of the data that both BI dashboards and AI models read, instead of separate, inconsistent copies.
Comparison: traditional architecture patterns
These are historical tendencies, not absolute limits of every modern product; governance, formats, AI support and cost depend on the implementation.
| Aspect | Data warehouse | Data lake | Lakehouse |
|---|---|---|---|
| Data types | Mostly structured | Any | Any |
| Storage format | Proprietary | Open files, no table layer | Open files plus Delta table layer |
| Transactions | Yes | No | Yes (ACID) |
| Governance | Strong | Weak | Strong (Unity Catalog) |
| Typical cost | Higher | Low | Low storage, pay for compute |
| AI and ML workloads | Limited | Possible but ungoverned | Native |
Common pitfalls and exam tips
- Pitfall: equating control, compute and storage. Verify the storage configuration, including serverless default storage; service metadata can also be sensitive.
- Pitfall: two-level names. In Unity Catalog the name has three parts. The legacy
hive_metastoreis exposed as a catalog of that name, with two-level tables beneath it. - Pitfall: forgetting
USE CATALOGandUSE SCHEMA.SELECTalone is insufficient. - Pitfall: believing time travel is permanent. After
VACUUMremoves old files, the old versions are gone. - Pitfall:
DROP TABLEon a managed table deletes the data, whereas on an external table it does not. - Exam tip. When two answers both "work", prefer the one that keeps data governed in Unity Catalog and avoids copies.
- Exam tip.
DESCRIBE HISTORYshows what happened;DESCRIBE DETAILshows table properties such as location, number of files and size.
Mini case study
Case. Contoso Energy has two workspaces, dev and prod, in the same cloud region. Analysts in prod complain that the meter_readings table shows a sudden drop in daily totals starting on Tuesday. The data engineer notices that an engineer ran a DELETE on Tuesday afternoon that removed readings from one substation. Auditors also ask which dashboards consume the table.
Tasks.
- How do you find out exactly what changed and when?
- How do you recover the deleted rows?
- How do you identify the affected dashboards?
- Both workspaces must use the same permissions model. How is that achieved?
Solution.
DESCRIBE HISTORY prod.energy.meter_readingslists each version with operation, user, timestamp and operation parameters (including theDELETEpredicate). Compare counts withVERSION AS OFon the version before the delete.- If the required historical files and log remain available, restore the previous snapshot only after checking later valid writes. Otherwise stage the deleted readings from that version and reconcile them against current data by their unique reading keys before inserting missing rows. A blind insert of all historical
S-17readings could duplicate records that survived or were reloaded. - Open the table in Catalog Explorer and use the lineage tab to list downstream dashboards, tables and notebooks.
- Attach both workspaces to the same Unity Catalog metastore (same region). Privileges are defined once at the account level and apply in both workspaces; the engineers use different catalogs (
dev,prod) with explicit least-privilege grants and, where needed, workspace bindings. Catalog names alone do not prevent production writes.
Key terms
- Lakehouse: open-format storage with warehouse-grade management and governance.
- Control plane / compute plane: Databricks-managed services versus the resources that process your data.
- Delta Lake: Parquet files plus a
_delta_logtransaction log. - Time travel: querying or restoring earlier table versions.
- Metastore, catalog, schema: the top three levels of the Unity Catalog hierarchy.
- Volume: a governed location for files.
- Lineage: automatically captured data flow between objects.
Summary checklist
- I can explain why a lakehouse removes the need to copy data between a lake and a warehouse.
- I can distinguish control-plane services, classic/serverless compute and configured data storage.
- I can describe how the Delta transaction log gives atomic commits and snapshot isolation.
- I can use
DESCRIBE HISTORY,VERSION AS OF,TIMESTAMP AS OFandRESTORE. - I know data retention, log availability and runtime rules limit time travel.
- I can write three-level names and the grants needed to read a table (
USE CATALOG,USE SCHEMA,SELECT). - I can explain what lineage shows and how it helps governance.
For table maintenance after ingestion, see liquid clustering and predictive optimization.
Official sources
- Exam guide: https://www.databricks.com/sites/default/files/2026-10/Databricks-Certified-Data-Engineer-Associate-Exam-Guide-August-2026.pdf (opens in a new tab)
- Certification page: https://www.databricks.com/learn/certification/data-engineer-associate (opens in a new tab)
- Architecture: https://docs.databricks.com/aws/en/getting-started/high-level-architecture (opens in a new tab)
- Delta history and recovery: https://docs.databricks.com/aws/en/tables/history (opens in a new tab)
- Deletion vectors: https://docs.databricks.com/aws/en/tables/features/deletion-vectors (opens in a new tab)
- Managed tables: https://docs.databricks.com/aws/en/tables/managed (opens in a new tab)
- Privileges: https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference (opens in a new tab)
- Lineage: https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-lineage (opens in a new tab)
