What you will be able to do
- Name the three technologies a Databricks lakehouse is built from and the job each one does
- Explain how an account, its workspaces and a regional Unity Catalog metastore relate
- Say whether a resource runs in the control plane, the serverless compute plane or the classic compute plane, and use that to pick a SQL warehouse type or cluster
- Address data as catalog.schema.object and tell which securable objects sit outside that namespace
- Describe how the Delta Lake transaction log makes writes atomic and gives each table a version history
Key concept
Control plane and compute plane — Databricks splits into a control plane, which holds the backend services and web application Databricks runs in its own account, and a compute plane, where your data is actually processed. Serverless compute runs in a compute plane inside the Databricks account. Classic compute runs in a compute plane inside your own cloud account.
1.What the Data Intelligence Platform is built from
Databricks is built as a data lakehouse: one system that combines the cheap, open storage of a data lake with the reliability of a data warehouse. Both older designs fall short in their own way. A warehouse delivers clean, structured data for BI, but many warehouses rely on proprietary formats that limit machine learning. A data lake stores data of any kind cheaply, but organisations tend not to use it for BI reporting because its contents are unvalidated. The lakehouse closes that gap by putting an optimized metadata layer over validated data kept in standard formats in cloud object storage, so BI, data engineering and ML all work from the same copy of the data.
Three technologies make up that design on Databricks. Apache Spark is the processing engine, and it runs on compute that is separate from storage. That separation shapes the whole platform: you can start, resize or stop compute without moving the data. On top of Spark, Delta Lake supplies table storage with transactions, and Unity Catalog supplies governance. The rest of this page covers where these pieces run and how each one works.
| Technology | Role in the lakehouse |
|---|---|
| Apache Spark | Massively scalable engine running on compute resources decoupled from storage |
| Delta Lake | Optimized storage layer supporting ACID transactions and schema enforcement |
| Unity Catalog | Unified, fine-grained governance solution for data and AI |
Checkpoint 1 of 9· Match them up
Match each part of the lakehouse picture to the role or limitation the lesson gives it.
Tap a term, then the definition that fits it.
On Databricks, Spark provides the processing, Delta Lake provides transactional table storage and Unity Catalog provides governance. The lakehouse combines the cheap open storage of a data lake with the reliability of a data warehouse, which addresses the weakness of each.
“Delta Lake: an optimized storage layer that supports ACID transactions and schema enforcement.”Source: docs.databricks.com
Sources1
2.Accounts, workspaces and the regional metastore
The account is the top-level construct an organisation uses to manage Databricks. Four kinds of administration happen at this level:
- identity and access, meaning users, groups, service principals and SSO
- creating and deleting workspaces, which can be in several regions
- creating Unity Catalog metastores and attaching them to workspaces
- usage management, including billing
One account can contain many workspaces and many metastores.
A workspace is a Databricks deployment in the cloud where a team works. Users run ingestion, interactive exploration, scheduled jobs and ML training there, and the workspace organises notebooks, libraries, dashboards and experiments into folders. An organisation can run one workspace or several, depending on how it wants to separate teams or environments.
A Unity Catalog metastore is the top-level regional container for metadata and permissions. Unity Catalog allows a single metastore per region, and that metastore can only be used in its own region. Every workspace is assigned to exactly one metastore. If you attach one metastore to several workspaces in the same region, each of those workspaces sees the same data, and you manage access controls across all of them in one place. For example, a dev workspace and a prod workspace in us-east-1 can share one metastore, so a table registered from prod is visible in dev to anyone holding the grant. A workspace in eu-west-1 cannot attach to that metastore.
Two metastores, one for each region. The two us-east-1 workspaces share a metastore and therefore see the same data. The eu-west-1 workspace has its own metastore, because a metastore can only be used in its assigned region.
A workspace also has its own storage, and that storage is not where your tables live. The workspace file system holds what users create in the UI: notebooks, SQL queries and dashboards, alerts, Git folders and libraries. Workspace system data holds things Databricks generates, such as query results, job run results, notebook revisions and cluster logs. Both are separate from your data objects, such as Unity Catalog tables and volumes. In a classic workspace this storage is a workspace storage bucket in your AWS account. A serverless workspace uses fully managed default storage instead.
Checkpoint 2 of 9· Check yourself
A company's dev and prod workspaces in us-east-1 share one Unity Catalog metastore. The company adds an analytics workspace in eu-west-1 and wants it governed alongside the other two. What is the correct setup?
A metastore can only be used in its own region, and each workspace is assigned to exactly one metastore. The eu-west-1 workspace therefore needs an eu-west-1 metastore, while the two us-east-1 workspaces can keep sharing theirs. Being managed at account level does not let a metastore cross regions.
“You can link a single metastore to multiple Databricks workspaces in the same region, giving each workspace the same data view.”Source: docs.databricks.com
3.Control plane and compute plane
Databricks runs as two planes. The control plane contains the backend services Databricks manages, including the web application. It sits in the Databricks account, not in your cloud account. The Unity Catalog metastore lives there too, as a multi-tenant service. The compute plane is where your data is processed, and there are two kinds.
Which compute plane a resource uses depends on whether it is serverless or classic. Serverless resources run in a serverless compute plane inside your Databricks account. That plane is in the same AWS region as the workspace and sits inside a network boundary for the workspace, with isolation between customers. Classic resources run in your AWS account, inside each workspace's virtual network. They are isolated by default because they run in your own account. Clusters and SQL warehouses are the compute-plane resources you will meet most often. The full catalogue of compute types is covered in Classic vs serverless compute (all-purpose, jobs, pipeline). This section only looks at what each one's plane means in practice.
| Warehouse type | Compute runs in | Startup | Performance features | Chosen when |
|---|---|---|---|---|
| Serverless | Your Databricks account | Typically 2–6 seconds; downscales quickly when demand is low | All Databricks SQL performance features, including Intelligent Workload Management | BI, ETL and exploratory analysis |
| Pro | Your AWS account | Typically about 4 minutes | Photon and Predictive IO, no Intelligent Workload Management | Serverless is not available in the region, or you need custom networking to reach cloud or on-premises databases |
| Classic | Your AWS account | Typically about 4 minutes | Photon only, no Predictive IO or Intelligent Workload Management | Basic interactive exploration when serverless and pro are not options |
Where a warehouse runs explains how it behaves. A serverless warehouse uses capacity Databricks already holds, so it starts in seconds and scales down quickly when queries stop. That suits dashboards that are busy in the day and idle at night. Pro and classic warehouses launch instances in your own account, so each takes several minutes to start and scales less responsively. Running in your own account has one benefit: the compute sits in your network. That is why pro is the type to use when a warehouse must reach databases over your own network, including on-premises databases in a federation or hybrid setup. Classic also runs in your account, but it is the entry-level type. It lacks Predictive IO, and Intelligent Workload Management is not available on classic or pro.
Clusters show the same split between their two lifecycles. You create an all-purpose cluster yourself, terminate and restart it by hand, and several users can share it for interactive analysis. A job cluster is created by the job scheduler when a job runs, is terminated when the job finishes, and cannot be restarted. A nightly ETL job that needs its own isolated compute and should stop paying once it finishes therefore fits a job cluster. Running a scheduled job on an existing all-purpose cluster still counts as an interactive workload, and the guidance for automated jobs on classic all-purpose compute is to generally avoid it. SQL warehouses are compute for SQL tasks, not a home for a non-SQL ETL job.
Checkpoint 3 of 9· Check yourself
Which of these statements about where Databricks components run is wrong?
Serverless compute runs in a serverless compute plane inside the Databricks account, not in your AWS account. Only classic compute, such as classic clusters and pro or classic SQL warehouses, runs in your account's virtual network.
“For serverless compute, the serverless compute resources run in a serverless compute plane in your Databricks account.”Source: docs.databricks.com
Checkpoint 4 of 9· Check yourself
Your nightly Python ETL job needs its own isolated classic compute, and you want to stop paying for that compute as soon as the run finishes. What should the job run on?
The job scheduler creates a job cluster for the run and terminates it when the job completes, so you get isolated compute that stops when the job does. A scheduled run on an all-purpose cluster is still treated as an interactive workload, and SQL warehouses are compute for SQL tasks, not for a non-SQL ETL job.
“creates a job cluster when you run a job on a new job cluster and terminates the cluster when the job is complete.”Source: docs.databricks.com
Checkpoint 5 of 9· Exam question
A BI team runs ad hoc dashboard queries that spike heavily during business hours and drop to almost nothing overnight. Leadership wants queries to start almost instantly when a user opens a dashboard, but does not want to pay for idle compute overnight. Which SQL warehouse type best fits this pattern?
Correct answer: A — A serverless SQL warehouse, which starts in a few seconds and scales down rapidly when query volume drops
- A. Serverless SQL warehouses run in Databricks-managed capacity in the same region as the workspace and typically start in a few seconds, and they scale down aggressively during idle periods, matching a bursty, cost-sensitive BI workload.
- B. Classic SQL warehouses take several minutes to start and only provide the Photon engine without predictive I/O or intelligent workload management, so they cannot meet the near-instant startup requirement.
- C. Pro SQL warehouses run in the customer's own cloud account and also take several minutes to spin up, which fails the near-instant startup requirement even though they support more advanced features than classic.
- D. All-purpose clusters are built for collaborative notebook and job development, not for serving low-latency SQL dashboard queries, so they are not the right compute type here.
Checkpoint 6 of 9· Exam question
A data engineering team must connect a SQL warehouse to an on-premises database over a private network link and needs the compute to run inside their own AWS account to satisfy a networking review. Which SQL warehouse type satisfies this requirement?
Correct answer: A — A pro SQL warehouse, since its compute runs in the customer's own AWS account and supports custom networking for hybrid connectivity
- A. Pro SQL warehouses run compute in the customer's own AWS account, which allows the custom networking configurations, such as VPC peering or private connectivity, needed to reach an on-premises database.
- B. Serverless SQL warehouses run in Databricks-managed infrastructure with built-in customer isolation, so they do not expose the customer's own account networking needed for this hybrid connectivity requirement.
- C. Classic SQL warehouses do not include intelligent workload management at all, and having compute in a customer account is a property of pro warehouses, not a networking feature specific to classic.
- D. All-purpose clusters are separate compute resources for notebooks and jobs; they are not attached to SQL warehouses and do not provide hybrid networking for SQL warehouse traffic.
Checkpoint 7 of 9· Exam question
A nightly ETL pipeline runs a single Lakeflow Job on a schedule, and the team wants compute that spins up only for that run, is not shared with any other workload, and automatically terminates once the job finishes to avoid paying for idle time. What compute choice fits this pattern?
Correct answer: A — A job cluster created and managed by the job itself, which is provisioned for the run and torn down on completion
- A. A job cluster is created specifically for a job run and is automatically terminated when the run completes, which gives isolated, non-shared compute with no idle cost between runs.
- B. An all-purpose cluster left running continuously and shared across the team is billed for idle time and is exposed to other users' workloads, which contradicts the isolation and cost goals.
- C. SQL warehouses are designed for SQL query workloads such as dashboards and ad hoc analytics, not for running notebook or Spark-based ETL job tasks, and pro warehouses are not the mechanism for isolated per-job compute.
- D. Consolidating a scheduled ETL job onto a shared serverless SQL warehouse used by dashboards mixes unrelated workloads and does not give the dedicated, terminate-on-completion behavior the team wants.
4.Unity Catalog securable objects and the three-level namespace
Unity Catalog is the governance layer that runs beneath every data and AI interaction in a workspace. It enforces access control when you query a table or call a model, tracks lineage as assets are used, and logs activity for auditing. It is enabled automatically for workspaces created after November 8, 2023. Workspaces that have not adopted it fall back on the legacy Hive metastore.
Data in a metastore is addressed through a three-level namespace. Each part narrows the scope. A catalog is the highest-level container for organising and isolating data, and can be shared across workspaces in the same region and account. A schema, also called a database, sits inside a catalog. The data and AI assets themselves sit inside a schema. A query against prod.finance.invoices therefore names a catalog, then a schema, then a table.
<catalog-name>.<schema-name>.<object-name>| Object | Where it sits | What it organises or governs |
|---|---|---|
| Catalog | Top of the namespace | Highest-level container for organising and isolating data |
| Schema (database) | Inside a catalog | A more granular grouping of tables, volumes, functions and models |
| Table | Inside a schema | Structured data queried with Spark SQL and Spark APIs |
| View | Inside a schema | A read-only saved query over tables and views |
| Volume | Inside a schema | Non-tabular data in a cloud object storage location |
Every governed asset is a securable object, meaning something you can grant permissions on to users, service principals or groups. Tables, views, volumes, functions, models and services follow the three-level namespace. Some securables sit outside it, directly under the metastore: storage credentials, external locations, connections and shares. An external location is therefore never addressed as catalog.schema.name. It belongs to the metastore itself.
Tables and volumes can also be managed or external. With a managed object, Unity Catalog governs it and also controls the life of its storage. With an external object, Unity Catalog only governs it. Managed vs external tables in Unity Catalog covers that choice. Older patterns that bypass the catalog, such as DBFS root and DBFS mounts, are deprecated. The recommendation is to manage access to all data through Unity Catalog, using volumes for non-tabular files.
Checkpoint 8 of 9· Match them up
For each Unity Catalog object, pick where it sits in the hierarchy and what it governs.
Tap a term, then the definition that fits it.
Catalogs, schemas and the assets inside schemas (such as tables, views and volumes) make up the catalog.schema.object namespace. Storage credentials, external locations, connections and shares sit directly under the metastore, outside that namespace.
“Other objects, such as storage credentials, external locations, connections, and shares, sit directly under the metastore.”Source: docs.databricks.com
5.Delta Lake tables and the transaction log
Delta Lake is the default table format on Databricks: any table created without specifying a format is a Delta table. A Delta table is a directory of Parquet data files plus a file-based transaction log, all stored in cloud object storage. The table's metadata is registered in the metastore under its catalog and schema. That link is how Unity Catalog governs a table whose bytes sit in object storage. The log follows an open protocol, so any system can read it.
The transaction log is what makes each write atomic. While a transaction runs, it writes data files into the table directory, but readers do not see them yet. When the transaction completes, it commits one new log entry listing the paths of every file it wrote. That commit increments the table version and makes the files visible. The table's current state is simply the set of files the log marks as valid. A file the log never recorded is not part of the table, so a crashed job leaves only orphaned files behind, not half-written data. VACUUM deletes untracked files in the table directory, including leftovers from failed transactions.
The other ACID properties also come from the log and from object storage. Concurrent writers are kept apart by optimistic concurrency control. A read that touches several tables gets the current version of each table at the moment it accesses it, and it does not block transactions that are changing those tables. Durability comes from storage: transactions either succeed or fail completely, and the log sits next to the data files in cloud object storage, so tables get that storage's durability.
Because every write creates a new version, the log is also the table's history. DESCRIBE HISTORY lists the operation, user and timestamp of each write, newest first. Two separate retention settings apply. History is kept according to logRetentionDuration, which defaults to 30 days. Time travel to earlier versions should only be relied on for the past 7 days, unless both data retention and log retention have been raised. Neither is a substitute for a long-term backup.
Writes are also checked against the table's schema. Delta validates schema on write, so a batch whose columns or types do not match the table's requirements is rejected rather than quietly mixed in. When the table's shape really does need to change, schema evolution updates the schema, either manually or automatically, without rewriting existing data.
Checkpoint 9 of 9· Match them up
Pair each Delta Lake mechanism with the effect it has on a table.
Tap a term, then the definition that fits it.
Each write commits a new version to the transaction log, and the log decides which files make up the table. DESCRIBE HISTORY reads that history. VACUUM removes files the log never recorded. Schema enforcement rejects mismatched writes, and schema evolution changes the schema on purpose without rewriting data.
“Each write to a Delta Lake table creates a new table version. You can use the transaction log to review modifications to your table”Source: docs.databricks.com
Sources
(10)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.https://docs.databricks.com/aws/en/lakehouseOfficial docs
“Apache Spark enables a massively scalable engine that runs on compute resources decoupled from storage.”
↩︎ What the Data Intelligence Platform is built from“Delta Lake: an optimized storage layer that supports ACID transactions and schema enforcement.”
↩︎ What the Data Intelligence Platform is built from“Unity Catalog: a unified, fine-grained governance solution for data and AI.”
↩︎ What the Data Intelligence Platform is built from“Many data warehouses rely on proprietary formats, which often limit support for machine learning.”
↩︎ What the Data Intelligence Platform is built from“but not for BI reporting due to its unvalidated nature”
↩︎ What the Data Intelligence Platform is built from“By combining an optimized metadata layer with validated data stored in standard formats in cloud object storage”
↩︎ What the Data Intelligence Platform is built from - 2.
“A Databricks account is the top-level construct that you use to manage Databricks across your organization.”
↩︎ Accounts, workspaces and the regional metastore“An account can contain multiple workspaces and Unity Catalog metastores.”
↩︎ Accounts, workspaces and the regional metastore“Workspaces are the collaboration environment where users run compute workloads”
↩︎ Accounts, workspaces and the regional metastore“link a single metastore to multiple Databricks workspaces in the same region, giving each workspace the same data view”
↩︎ Accounts, workspaces and the regional metastore“Both are separate from your own data objects (such as Unity Catalog tables and volumes).”
↩︎ Accounts, workspaces and the regional metastore“Classic Databricks workspaces have an associated storage bucket known as the workspace storage bucket.”
↩︎ Accounts, workspaces and the regional metastore“The control plane is located in the Databricks account, not your cloud account.”
↩︎ Control plane and compute plane“The web application is in the control plane.”
↩︎ Control plane and compute plane“For classic Databricks compute, the compute resources are in your AWS account in what is called the classic compute plane.”
↩︎ Control plane and compute plane“serverless compute runs within a network boundary for the workspace”
↩︎ Control plane and compute plane“New compute resources are created within each workspace's virtual network in the customer's AWS account.”
↩︎ Control plane and compute plane“The compute plane is where your data is processed.”
↩︎ Key concept“For serverless compute, the serverless compute resources run in a serverless compute plane in your Databricks account.”
↩︎ Exam trap 1“You can link a single metastore to multiple Databricks workspaces in the same region, giving each workspace the same data view.”
↩︎ Checkpoint“For serverless compute, the serverless compute resources run in a serverless compute plane in your Databricks account.”
↩︎ Checkpoint - 3.https://docs.databricks.com/aws/en/lakehouse-architecture/deployment-guide/unity-catalogOfficial docs
“Unity Catalog allows a single metastore per region and only allows you to use that metastore in its assigned region.”
↩︎ Accounts, workspaces and the regional metastore“Each workspace must be assigned to exactly one metastore.”
↩︎ Accounts, workspaces and the regional metastore“The metastore is hosted as a multi-tenant service in the Databricks control plane.”
↩︎ Control plane and compute plane“Unity Catalog allows a single metastore per region and only allows you to use that metastore in its assigned region.”
↩︎ Exam trap 3 - 4.
“Rapid startup time (typically between 2 and 6 seconds).”
↩︎ Control plane and compute plane“Quick downscaling to minimize costs when demand is low”
↩︎ Control plane and compute plane“A pro SQL warehouse takes several minutes to start up (typically approximately 4 minutes)”
↩︎ Control plane and compute plane“A pro SQL warehouse supports Photon and Predictive IO, but does not support Intelligent Workload Management.”
↩︎ Control plane and compute plane“A classic SQL warehouse supports Photon but does not support Predictive IO or Intelligent Workload Management.”
↩︎ Control plane and compute plane“want to connect to databases in your network in the cloud or on-premises”
↩︎ Control plane and compute plane“want to connect to databases in your network in the cloud or on-premises”
↩︎ Exam trap 2“the compute layer exists in your AWS account account rather than in your Databricks account”
↩︎ Prediction - 5.
“Multiple users can share such clusters to do collaborative interactive analysis.”
↩︎ Control plane and compute plane“terminates the cluster when the job is complete. You cannot restart a job cluster.”
↩︎ Control plane and compute plane“running a job on an existing all-purpose cluster is also treated as an interactive workload”
↩︎ Control plane and compute plane“Catalogs are the highest level container for organizing and isolating data on Databricks.”
↩︎ Unity Catalog securable objects and the three-level namespace“Storing and accessing data using DBFS root or DBFS mounts is a deprecated pattern and not recommended by Databricks.”
↩︎ Unity Catalog securable objects and the three-level namespace“registers table metadata to the metastore within a catalog and schema”
↩︎ Delta Lake tables and the transaction log“creates a job cluster when you run a job on a new job cluster and terminates the cluster when the job is complete.”
↩︎ Checkpoint - 6.
“Generally avoid. Not optimized for automated workloads.”
↩︎ Control plane and compute plane - 7.
“tracking lineage as data and AI assets are used, logging activity for auditing”
↩︎ Unity Catalog securable objects and the three-level namespace“Unity Catalog is automatically enabled for all Databricks workspaces created after November 8, 2023.”
↩︎ Unity Catalog securable objects and the three-level namespace“modeled as a securable object, an object on which you can grant permissions to users, service principals, or groups”
↩︎ Unity Catalog securable objects and the three-level namespace“Other objects, such as storage credentials, external locations, connections, and shares, sit directly under the metastore.”
↩︎ Unity Catalog securable objects and the three-level namespace“Other objects, such as storage credentials, external locations, connections, and shares, sit directly under the metastore.”
↩︎ Exam trap 5 - 8.https://docs.databricks.com/aws/en/deltaOfficial docs
“Unless otherwise specified, all tables on Databricks are Delta Lake tables.”
↩︎ Delta Lake tables and the transaction log“extends Parquet data files with a file-based transaction log for ACID transactions and scalable metadata handling”
↩︎ Delta Lake tables and the transaction log“The Delta Lake transaction log has a well-defined open protocol that can be used by any system to read the log.”
↩︎ Delta Lake tables and the transaction log“Delta Lake validates schema on write, ensuring that all data written to a table matches the requirements you've set.”
↩︎ Delta Lake tables and the transaction log“Each write to a Delta Lake table creates a new table version. You can use the transaction log to review modifications to your table”
↩︎ Checkpoint - 9.https://docs.databricks.com/aws/en/lakehouse/acidOfficial docs
“a new entry is committed to the transaction log that includes the paths to all files written during the transaction”
↩︎ Delta Lake tables and the transaction log“Each commit increments the table version and makes new data files visible to read operations.”
↩︎ Delta Lake tables and the transaction log“The VACUUM operation deletes all untracked data files in a table directory, including remaining uncommitted files from failed transactions.”
↩︎ Delta Lake tables and the transaction log“Delta Lake uses optimistic concurrency control to provide transactional guarantees between writes.”
↩︎ Delta Lake tables and the transaction log“Read operations referencing multiple tables return the current version of each table at the time of access”
↩︎ Delta Lake tables and the transaction log“tables on Databricks inherit the durability guarantees of the cloud object storage on which they're stored”
↩︎ Delta Lake tables and the transaction log“Data files are not tracked unless the transaction log records a new version.”
↩︎ Exam trap 4“If a transaction fails after writing data files to a table, these data files will not corrupt the table state”
↩︎ Prediction - 10.https://docs.databricks.com/aws/en/tables/historyOfficial docs
“retrieve information including the operations, user, and timestamp for each write to a table”
↩︎ Delta Lake tables and the transaction log“Table history retention is determined by the table setting logRetentionDuration, which is 30 days by default.”
↩︎ Delta Lake tables and the transaction log“Use only the past 7 days for time travel operations”
↩︎ Delta Lake tables and the transaction log“Don't use table history as a long-term backup solution for data archival.”
↩︎ Delta Lake tables and the transaction log