Create and Organize Objects in Unity Catalog
Address every object as catalog.schema.object
A production table in Unity Catalog has a name like prod.sales.orders, and that same three-part name identifies it from SQL, Python, or any BI tool attached to the workspace. Every governed object follows this three-level namespace, catalog.schema.object, which replaces the legacy two-level hive_metastore.schema.table layout. The metastore is the top-level container for a region; a catalog is the first level you create inside it; a schema (also called a database) is the second level; and the object itself, a table, view, volume, function, or model, is the third (Unity Catalog object model[1]).
The catalog is not just an organizational folder. It is the primary unit of data isolation in Unity Catalog, and schemas add a finer layer of organization beneath it (Unity Catalog best practices[2]). Because isolation lives at the catalog level, the common convention is one catalog per environment, for example dev, test, and prod. Separating environments only by schema inside a single shared catalog is the misread to avoid: it organizes the data but leaves every environment inside the same isolation boundary, so a grant on the catalog reaches all of them. Put each environment in its own catalog instead. Whoever runs the CREATE statement becomes the object's first owner, so Databricks recommends reassigning production catalogs and schemas to a group rather than leaving an individual as owner.
When data and its processing environment share the same isolation requirement, you can go further and bind a catalog to specific workspaces. Workspace-catalog binding restricts a catalog so only the workspaces you assign can reach it; access from an unbound workspace is denied even for a user who holds an explicit SELECT grant on a table inside it (Workspace-catalog binding[3]). That is how you keep a prod catalog reachable only from production workspaces. The figure below shows the full hierarchy from the metastore down to the object level.
Create catalogs and schemas, and pin their storage
Two CREATE statements stand up the containers, and each carries a privilege gate and a storage decision. Start at the top: CREATE CATALOG makes a top-level container inside the metastore, and only a metastore admin or a principal granted the CREATE CATALOG privilege on the metastore can run it (Create catalogs[4]). A frequent slip is expecting CREATE CATALOG to give you a place to put tables directly; it does not. A catalog holds schemas, so a table needs a schema first, created with the two-level name CREATE SCHEMA catalog.schema (Create schemas[5]). A schema cannot be a top-level object.
The storage decision is where a Hive-metastore habit trips people up. In Unity Catalog you set a schema's managed storage with the MANAGED LOCATION clause, not LOCATION. LOCATION is the legacy Hive-metastore syntax; on a Unity Catalog schema it is rejected, and MANAGED LOCATION is the supported form (Create schemas[5]). Setting a MANAGED LOCATION requires the CREATE MANAGED STORAGE privilege on the external location (the Unity Catalog object that registers a cloud storage path) that covers the path. Omit the clause and the object inherits managed storage from the level above: managed storage resolves at the lowest level that sets it, the schema first, then the catalog, then the metastore (Managed storage best practices[2]).
Create a catalog, then a schema inside it
This pair creates a prod catalog and a sales schema, each with its own managed storage; the bracketed keyword is optional and other clauses are omitted:
CREATE CATALOG IF NOT EXISTS prod
MANAGED LOCATION 'abfss://managed@company.dfs.core.windows.net/prod';
-- ...
CREATE SCHEMA IF NOT EXISTS prod.sales
MANAGED LOCATION 'abfss://managed@company.dfs.core.windows.net/prod/sales';
Each MANAGED LOCATION path must sit under a Unity Catalog external location you hold CREATE MANAGED STORAGE on. Drop the clause and that object inherits managed storage from its parent instead.
Managed vs external: who owns the files and the drop
One distinction decides who owns your data files and what a DROP destroys, and it applies the same way to tables and to volumes: managed versus external. In a managed object, Unity Catalog owns both the governance and the underlying files, which live in managed storage. In an external object, Unity Catalog governs access to the metadata, but the files stay in a cloud location you manage (Managed vs external assets[2]).
For tables, a managed table is the default and recommended type. It stores rows in the Delta Lake format unless you request USING iceberg, and you can create one empty, with CREATE TABLE AS SELECT (CTAS), or with CREATE OR REPLACE TABLE (Managed tables[6]). Dropping a managed table deletes both the metadata and the data files; Unity Catalog keeps them recoverable with UNDROP for a default of seven days, then removes them from cloud storage. An external table is created with a LOCATION clause pointing at a path under a Unity Catalog external location, and DROP TABLE removes only the metadata and leaves the files untouched (External tables[7]). That difference is the exam's favorite table trap: if the files must survive the drop, the answer is an external table.
Volumes extend the same model to non-tabular data. A volume is a Unity Catalog object under a schema that governs files of any format, such as images, CSVs, and model artifacts, reached through the path /Volumes/catalog/schema/volume (Volumes[8]). A managed volume stores its files in the schema's managed storage; an external volume, created with CREATE EXTERNAL VOLUME ... LOCATION, registers an existing path under an external location (Create volumes[9]). The drop rule mirrors tables exactly: dropping a managed volume marks its files for deletion, while dropping an external volume leaves them in place. The figure groups the four objects by the only question that matters at drop time.
Views and materialized views
A view and a materialized view read almost the same in SQL, but one stores data and one does not, and that single fact drives every question about them. A standard view is a read-only object that saves the text of a SELECT query; creating it writes no data, and only the query text is registered to the schema (Views[10]). Each time you read the view, Unity Catalog re-runs its query against the base tables, so the results are always current, and the view can restrict or reshape the columns it exposes without copying anything.
A materialized view precomputes and stores its results in an underlying managed table, then keeps them up to date as the source tables change (Views[10]). When you create one, Unity Catalog automatically provisions a serverless pipeline to build and refresh it, billed as serverless Lakeflow Spark Declarative Pipelines usage; the refresh runs incrementally, merging only changed rows when the query allows, and falls back to a full recompute when it cannot (Standalone materialized views[11]). You refresh it on a schedule or on update. The trade the exam probes: a materialized view spends storage and a scheduled refresh to make repeated reads fast, while a standard view spends nothing and recomputes on every read. So a materialized view stores data and must be refreshed; a standard view does neither.
Precompute a daily aggregate as a materialized view
This materialized view stores a per-day sales total so a dashboard reads it instantly; the refresh schedule and other options are omitted:
CREATE OR REPLACE MATERIALIZED VIEW prod.sales.daily_totals AS
SELECT date, sum(amount) AS total
FROM prod.sales.orders
GROUP BY date;
-- ...
Because daily_totals is materialized, the sum is computed once per refresh and stored, not recomputed on every dashboard load.
Query external systems in place with federation
Suppose an operational PostgreSQL database holds live order status, and an analyst needs to join it against lakehouse tables for a quick report without waiting for an ingestion pipeline to copy it in. Lakehouse Federation is the Azure Databricks feature for exactly this: governed, read-only access to an external system that you query in place (Lakehouse Federation[12]).
It takes two objects, created in order. First a connection, a Unity Catalog securable that stores the source's host, JDBC URL, and credentials. Then a foreign catalog, created from that connection, which mirrors the external database's schemas and tables as Unity Catalog objects so they appear alongside your other catalogs (Lakehouse Federation[12]). Once you grant privileges on the foreign catalog, queries against it are pushed down to the source and run in place; no data is copied into Unity Catalog managed storage. PostgreSQL is one of many supported sources here, alongside MySQL, SQL Server, Oracle, Snowflake, Amazon Redshift, Azure Synapse, Google BigQuery, and other Databricks workspaces.
The contrast to hold onto: only a foreign catalog queries the source in place. An ingestion pipeline (Lakeflow Connect, Auto Loader, or COPY INTO) or a managed table built from the source would copy the data into Databricks storage instead. When higher data volumes and lower latency matter more than avoiding a copy, Databricks actually recommends ingesting with Lakeflow Connect over federating. The figure traces the connection, the foreign catalog, and the in-place query.
Self-service discovery with AI/BI Genie
Business users often need an answer, not a query editor. An AI/BI Genie Agent (formerly called a Genie space) is a domain-specific, natural-language interface where a user asks a question in plain English and Genie returns the generated SQL, a results table, and a visualization (Genie[13]). It runs over a curated set of Unity Catalog tables that a data analyst registers to the agent, which turns ad hoc data discovery into self-service without anyone writing SQL.
Accuracy comes from curation, not magic. The analyst who builds the agent supplies general instructions in plain language, example SQL queries, SQL expressions that encode business semantics, and verified answers to trusted questions; together these steer how Genie interprets domain terms and business logic (Tune Genie Agent quality[14]). A vague metric like active customer becomes reliable only once an instruction or example pins down what it means.
One boundary is worth stating plainly, because it is a natural misread. Genie answers from the curated tables it was given plus those instructions, and access is still governed by the querying user's Unity Catalog permissions; it does not roam the whole metastore looking for data (Genie Agents concepts[15]). Widening what Genie can answer means adding tables and instructions to the agent, not granting it blanket access.
Exam-pattern recognition
Most questions on creating and organizing Unity Catalog objects reduce to picking the right object or clause under a stated constraint. Read the constraint in the stem, then match it.
- Isolate production data from development: create a separate catalog per environment, and bind it to the production workspaces if the environment itself must be restricted. The catalog is the isolation unit; separating environments by schema inside one catalog does not isolate them (best practices[2]).
- Set a schema's managed storage: use
MANAGED LOCATION.LOCATIONis Hive-metastore syntax and is rejected on a Unity Catalog schema (create schemas[5]). - The files must survive a drop: choose an external table or external volume, defined with
LOCATION. A managedDROPdeletes the underlying files (managed tables[6]). - Speed up an expensive, repeated query: a materialized view precomputes and stores results and refreshes them; a standard view recomputes on every read (materialized views[11]).
- Query an external database without copying it: create a connection, then a foreign catalog, and query in place. An ingestion pipeline or managed table would copy the data (Lakehouse Federation[12]).
- Govern images, CSVs, or model artifacts: register a volume and reach files at
/Volumes/catalog/schema/volume(volumes[8]). CREATE CATALOGversusCREATE SCHEMA:CREATE CATALOGbuilds a top-level container; a table needs a schema created asCREATE SCHEMA catalog.schema(create catalogs[4]).- Self-service natural-language questions for business users: an AI/BI Genie Agent over a curated set of Unity Catalog tables, steered by instructions and examples (Genie[13]).
Managed vs external tables and volumes: storage and DROP
| Object | Where data lives | Created with | On DROP |
|---|---|---|---|
| Managed table | Catalog or schema managed storage | CREATE TABLE (Delta by default) or CTAS | Deletes metadata and data files |
| External table | A path under a Unity Catalog external location | CREATE TABLE ... LOCATION | Deletes metadata only; files remain |
| Managed volume | Schema managed storage | CREATE VOLUME | Marks the volume's files for deletion |
| External volume | A path under a Unity Catalog external location | CREATE EXTERNAL VOLUME ... LOCATION | Removes the volume; files remain |
Decision tree
Sharp facts the exam loves — give these one last read before exam day.
Cheat sheet
Sharp facts the exam loves — scan these before test day.
- Unity Catalog addresses data as catalog.schema.object
Unity Catalog organizes every data object in a three-level namespace of catalog.schema.object (tables, views, volumes, functions, and models), replacing the legacy two-level hive_metastore.schema.table layout.
5 questions test this
- You have an Azure Databricks workspace enabled for Unity Catalog. A project team needs a set of managed Delta tables, several views, a volume for raw ingestion files, a SQL UDF, and a registered ML mo
- You have two Unity Catalog catalogs named dev and prod that contain identically named schemas and tables. A notebook currently reads a table using the two-level reference sales.orders, and depending o
- You have an Azure Databricks workspace enabled for Unity Catalog and attached to a shared metastore. A curated lookup table is registered as reference.geo.regions in a shared catalog, and daily sales
- You have an Azure Databricks workspace attached to a Unity Catalog metastore named metastore1. Legacy pipelines still reference their tables with the two-level pattern hive_metastore.schema.table. You
- In the prod catalog you must create two tables that both need to be named customers: one owned by the sales domain and one owned by the marketing domain. Both tables must coexist without a naming coll
- Use a separate catalog per environment for data isolation
The catalog is the primary unit of data isolation in Unity Catalog, so a common naming convention creates a distinct catalog per environment (for example dev, test, and prod) to segregate data and permissions.
Trap Separating environments only by schema inside one shared catalog weakens the isolation boundary.
7 questions test this
- Contoso, Inc. has a single Unity Catalog metastore that is shared by three Azure Databricks workspaces belonging to its development, test, and production teams. The design must meet the following requ
- You are defining the naming and isolation convention for a new Azure Databricks lakehouse that will host development, test, and production data in one Unity Catalog metastore. The design must ensure t
- A retailer stores highly sensitive customer PII alongside non-customer reference data in one Unity Catalog metastore. Compliance requires that the sensitive customer data be isolated from the rest of
- You have two Unity Catalog catalogs named dev and prod that contain identically named schemas and tables. A notebook currently reads a table using the two-level reference sales.orders, and depending o
- You operate in a single Azure Databricks region with one Unity Catalog metastore that is shared by all workspaces. You must isolate development, test, and production data. The solution must ensure tha
- You have a Unity Catalog metastore shared by a development workspace and a production workspace. A catalog named prod_catalog holds production data. The solution must ensure that: prod_catalog is acce
- You maintain ETL notebooks that must be promoted unchanged from dev to test to prod in Unity Catalog. The solution must ensure that: the same schema and table names exist in every environment so the c
- Bind a catalog to specific workspaces to restrict its access
Workspace-catalog binding restricts a catalog so it is accessible only from designated workspaces, enforcing environment isolation and controlled external sharing across a metastore shared by several workspaces.
5 questions test this
- Your Unity Catalog metastore is attached to a development workspace and a production workspace. A catalog named prod_catalog must be accessible only from the production workspace. Some data engineers
- An hr_catalog contains sensitive HR data that, per compliance policy, may be processed only in a dedicated secure workspace. The catalog is in a metastore shared by several other workspaces whose user
- You have a Unity Catalog metastore shared by a development workspace and a production workspace. A catalog named prod_catalog holds production data. The solution must ensure that: prod_catalog is acce
- A single Unity Catalog metastore is shared by a finance workspace and a sales workspace. The solution must ensure that: finance_catalog is not discoverable or queryable from the sales workspace, so th
- You have a Unity Catalog metastore shared by several workspaces. A catalog named reference_catalog holds curated lookup tables. The solution must ensure that: analysts in every workspace can read refe
- CREATE CATALOG makes a top-level container in the metastore
CREATE CATALOG creates the top-level container within the metastore; an optional MANAGED LOCATION sets where its managed tables and volumes store data, otherwise they inherit managed storage from the metastore.
Trap CREATE CATALOG builds a catalog, not a schema; a contained schema needs CREATE SCHEMA catalog.schema.
16 questions test this
- You have an Azure Databricks workspace that was in service before it was enabled for Unity Catalog, so it still exposes a legacy per-workspace Hive metastore as the hive_metastore catalog. A regulated
- Your team has already registered a Unity Catalog external location named ext_curated that covers abfss://curated@lake.dfs.core.windows.net/, and you hold the CREATE MANAGED STORAGE privilege on it. Yo
- Your Azure Databricks workspace was enabled for Unity Catalog automatically, so its metastore has no metastore-level managed storage location. You need to create a new standard catalog named ops that
- You have an Azure Databricks workspace attached to a Unity Catalog metastore named metastore1. metastore1 does not yet contain a catalog named lakehouse. You need to create a schema named bronze that
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog and attached to a metastore named metastore1. The data platform team is onboarding a Payments business unit an
- You have an Azure Databricks workspace whose Unity Catalog metastore was configured with a metastore-level managed storage location. A data engineer runs CREATE CATALOG reporting without specifying a
- A data engineer on your team was asked to provision a new, independent top-level container in an existing Unity Catalog metastore named metastore1 to hold all of the Marketing department's schemas and
- You have an Azure Databricks workspace whose Unity Catalog metastore has a metastore-level managed storage location configured. A colleague runs CREATE CATALOG sales; with no MANAGED LOCATION clause a
- You have an Azure Databricks workspace attached to a Unity Catalog metastore. You need to create a new catalog named sales whose managed tables and managed volumes are physically stored in abfss://gol
- You have a Unity Catalog catalog named ops that was created with MANAGED LOCATION 'abfss://ops@lake.dfs.core.windows.net/ops'. Inside ops you run CREATE SCHEMA ops.audit MANAGED LOCATION 'abfss://audi
- You maintain a setup notebook that provisions Unity Catalog objects and is re-run on every deployment. On the first run it succeeds, but on later runs the line CREATE CATALOG analytics; throws an exce
- You have an Azure Databricks workspace enabled for Unity Catalog. You run CREATE CATALOG finance MANAGED LOCATION 'abfss://data@contoso.dfs.core.windows.net/finance'; and it is rejected even though th
- You have two Azure Databricks workspaces named Workspace1 and Workspace2 that are both attached to the same Unity Catalog metastore named metastore1. A new analytics program must be governed as a sing
- Contoso, Inc. has an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore1 that already has a metastore-level managed storage location. The data pla
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore1. A team needs a new top-level container in metastore1 under which they will create
- Your Unity Catalog metastore has a metastore-level managed storage location that all existing catalogs use by default. A new regulated catalog named hr must keep its managed tables and volumes in a de
- Creating a catalog requires the CREATE CATALOG metastore privilege
Only a metastore admin or a principal granted the CREATE CATALOG privilege on the metastore can create a catalog, and the creator becomes its owner with full control over the new object.
- Set a schema's storage with MANAGED LOCATION, not LOCATION, in Unity Catalog
CREATE SCHEMA catalog.schema MANAGED LOCATION '' sets a schema's managed storage in Unity Catalog; the LOCATION clause is a Hive-metastore-only syntax and is rejected for Unity Catalog schemas.
Trap LOCATION is not supported for a Unity Catalog schema; use MANAGED LOCATION instead.
9 questions test this
- You have an Azure Databricks workspace attached to a Unity Catalog metastore that contains a catalog named analytics. A data engineer runs CREATE SCHEMA analytics.bronze LOCATION 'abfss://lake@adls1.d
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A catalog named research already has a managed storage location. You need to create several schemas in research whose managed
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A catalog named finance stores its managed tables in the metastore's default storage. Compliance requires that all managed tab
- You manage an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore_east. The metastore contains a catalog named retail_prod whose managed data curre
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore whose catalog named logistics_prod already stores its managed tables in the metastore's default roo
- You have an Azure Databricks workspace enabled for Unity Catalog. You create a schema named archive inside a catalog named cold_store without specifying any storage clause. The managed tables you late
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore. The metastore contains a catalog named sales_analytics that already uses the metastore's default m
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore1. metastore1 contains a catalog named sales_prod and an external location named fin
- You have an Azure Databricks workspace that is enabled for Unity Catalog. When you create a schema, you want its managed tables and volumes stored at an external-location path that differs from the ca
- A schema is created two-level as catalog.schema
A schema (database) groups tables, views, and volumes and must be created inside a catalog with the two-level name catalog.schema; it cannot be created as a top-level object.
13 questions test this
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A schema named sales_curated contains a table named orders. An analyst connected with no default catalog set runs SELECT * FRO
- You have an Azure Databricks workspace that is enabled for Unity Catalog. The metastore contains an enterprise catalog named corp that all business domains share. You need to organize each domain's De
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A catalog named research already has a managed storage location. You need to create several schemas in research whose managed
- You have a Unity Catalog metastore that contains a catalog named ops. You need to create a schema named telemetry that is contained in ops and will group streaming Delta tables, views, and volumes for
- You have an Azure Databricks workspace that is enabled for Unity Catalog and whose active session has no default catalog set. The metastore contains a catalog named ops. A junior engineer created a sc
- You have an Azure Databricks workspace that is enabled for Unity Catalog and a catalog named enterprise already exists. You need a single logical container inside enterprise that groups a project's re
- You have an Azure Databricks workspace that is enabled for Unity Catalog with a catalog named prod. Three teams must each get their own logical grouping of tables and views inside prod, and you must b
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore. A catalog named insurance_prod already exists and holds several production datasets. A new claims-
- You manage an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore_east. The metastore contains a catalog named retail_prod whose managed data curre
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore whose catalog named logistics_prod already stores its managed tables in the metastore's default roo
- You have an Azure Databricks workspace that is enabled for Unity Catalog. The metastore, named metastore_main, contains a catalog named prod_analytics. You are writing a deployment notebook that must
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore. The metastore contains a catalog named sales_analytics that already uses the metastore's default m
- You have an Azure Databricks workspace that is enabled for Unity Catalog and attached to a metastore named metastore1. metastore1 contains a catalog named sales_prod and an external location named fin
- MANAGED LOCATION requires CREATE MANAGED STORAGE on an external location
Setting a schema's MANAGED LOCATION requires the CREATE MANAGED STORAGE privilege on the external location that covers the path; without an explicit managed location the schema inherits managed storage from its catalog or the metastore.
- Volumes are Unity Catalog objects that govern non-tabular files
A volume is a Unity Catalog object under a schema that governs access to non-tabular data such as images, CSV files, and model artifacts, accessed through the path /Volumes/catalog/schema/volume.
15 questions test this
- You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a catalog named ml_prod with a schema named vision. A computer-vision team must store and govern large numbers of
- You have an Azure Databricks workspace that is enabled for Unity Catalog. Your notebooks currently read raw CSV and image files through a legacy DBFS mount that Unity Catalog does not govern. You need
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog and contains a catalog named catalog1 with a schema named ml_assets. A team must store and govern a large coll
- You have an Azure Databricks workspace enabled for Unity Catalog. A partner team already stores several terabytes of image files in an existing ADLS Gen2 directory that your workspace can reach throug
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A team has uploaded CSV files to a Unity Catalog volume. They now need to: query the data as governed tabular rows; apply colu
- You have an Azure Databricks workspace enabled for Unity Catalog. A team needs a governed location for non-tabular files that will be produced and consumed only by Databricks. The solution must let Un
- You have an Azure Databricks workspace enabled for Unity Catalog. A directory of shared reference files (lookup CSVs and reference images) must be exposed so that specific groups receive read-only acc
- You have an Azure Databricks workspace that is enabled for Unity Catalog. An upstream system drops raw JSON files that an Auto Loader pipeline must ingest. You need a governed landing area for the raw
- You have an Azure Databricks workspace that is enabled for Unity Catalog with a catalog named analytics and a schema named staging that already has a managed storage location. A data engineering team
- You have an Azure Databricks workspace enabled for Unity Catalog. A schema named raw contains a volume named landing that holds CSV and image files. Data engineers working in SQL, Python, and Apache S
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A partner system already writes Parquet and JSON files to an existing ADLS Gen2 directory and will keep reading and writing th
- You have an Azure Databricks workspace enabled for Unity Catalog. A team wants a governed volume for temporary non-tabular working files that Databricks alone produces. A key requirement is that when
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog and contains a catalog named Prod with a schema named Media. A surveillance system deposits millions of image,
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A partner analytics application that runs outside Databricks continuously writes sensor readings as Parquet and image files in
- You have an Azure Databricks workspace that is enabled for Unity Catalog, with a catalog and schema that already have a managed storage location. A team needs a governed location to store model artifa
- Managed volumes use Unity Catalog storage; external volumes point at a location
A managed volume stores its files in the schema's managed storage and is fully lifecycle-managed by Unity Catalog, whereas an external volume registers an existing path under an external location for data that Databricks does not own.
Trap Dropping a managed volume deletes its files; dropping an external volume leaves the files in place.
10 questions test this
- You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a catalog named ml_prod with a schema named vision. A computer-vision team must store and govern large numbers of
- You have an Azure Databricks workspace enabled for Unity Catalog. A partner team already stores several terabytes of image files in an existing ADLS Gen2 directory that your workspace can reach throug
- You have an Azure Databricks workspace enabled for Unity Catalog. A team needs a governed location for non-tabular files that will be produced and consumed only by Databricks. The solution must let Un
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A schema contains a managed volume named raw_managed and an external volume named raw_external that is registered on an ADLS G
- You have an Azure Databricks workspace that is enabled for Unity Catalog with a catalog named analytics and a schema named staging that already has a managed storage location. A data engineering team
- You have an Azure Databricks workspace enabled for Unity Catalog. You must register Unity Catalog governance over a set of audit files that another team owns in cloud storage. A strict requirement is
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A partner system already writes Parquet and JSON files to an existing ADLS Gen2 directory and will keep reading and writing th
- You have an Azure Databricks workspace enabled for Unity Catalog. A team wants a governed volume for temporary non-tabular working files that Databricks alone produces. A key requirement is that when
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A partner analytics application that runs outside Databricks continuously writes sensor readings as Parquet and image files in
- You have an Azure Databricks workspace that is enabled for Unity Catalog, with a catalog and schema that already have a managed storage location. A team needs a governed location to store model artifa
- A view is a stored read-only query that materializes no data
A view is a saved SELECT query that is evaluated each time it is read; it stores no data of its own and can restrict or reshape the columns exposed from its base tables.
16 questions test this
- Contoso, Inc. has an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. A managed Delta table named Orders in catalog1.sales holds billions of rows and receives new orders
- You have an Azure Databricks workspace that is enabled for Unity Catalog and contains a Delta table named Employees with a salary column. You need a single object that all analysts query, where member
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A Power BI dashboard repeatedly runs the same expensive aggregation over a large gold Delta table named Sales_Gold. You need a
- You have an Azure Databricks workspace enabled for Unity Catalog with a Pro SQL warehouse. You need a Unity Catalog object that: stores the precomputed results of a complex aggregation query so repeat
- You have an Azure Databricks workspace enabled for Unity Catalog. An engineer created a materialized view named customer_contacts to expose a subset of columns from a Delta table for a compliance team
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A data engineer maintains a daily sales summary by running a nightly job that fully recomputes and overwrites a managed Delta
- You have an Azure Databricks workspace that is enabled for Unity Catalog. You need a gold dataset that joins a fact table to a slowly changing dimension table and that: is reused by several BI dashboa
- You have an Azure Databricks workspace enabled for Unity Catalog. A managed Delta table named web_events is continuously appended by an ingestion pipeline. You need a Unity Catalog object that: presen
- You have an Azure Databricks workspace enabled for Unity Catalog. The catalog1.hr schema contains a managed Delta table named Employees with columns employee_id, full_name, department, salary, and ssn
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A heavy aggregation over a large gold Delta table named Web_Events is queried thousands of times per day by dashboards, while
- You have an Azure Databricks workspace enabled for Unity Catalog. A very large managed Delta table named ledger is queried by a reconciliation report only a few times per month, and each run must refl
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A view named Sales_Summary is defined over a managed Delta table named Sales1. A nightly job fails with an error when it attem
- You have an Azure Databricks workspace enabled for Unity Catalog. Analysts repeatedly write the same join of three Delta tables (customers, orders, and regions) with renamed and derived columns. You n
- You are developing in an Azure Databricks notebook. You compute an intermediate result that is referenced by several later cells in the same notebook. You need an object that: can be queried by the la
- You have an Azure Databricks workspace enabled for Unity Catalog. A data engineer defined a standard view named daily_sales_summary over a large Delta table to feed an analytics dashboard. Users repor
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A notebook defines a temporary view named Curated that reshapes columns from a base Delta table. A separate team's job in anot
- A materialized view stores precomputed results refreshed incrementally
A materialized view precomputes and stores query results and refreshes them incrementally through a Lakeflow declarative pipeline on serverless compute, speeding repeated reads at the cost of storage and scheduled refresh.
Trap A materialized view stores data and must be refreshed; a standard view does neither.
13 questions test this
- Contoso, Inc. has an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. A managed Delta table named Orders in catalog1.sales holds billions of rows and receives new orders
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A Power BI dashboard repeatedly runs the same expensive aggregation over a large gold Delta table named Sales_Gold. You need a
- You have an Azure Databricks workspace enabled for Unity Catalog with a Pro SQL warehouse. You need a Unity Catalog object that: stores the precomputed results of a complex aggregation query so repeat
- You have an Azure Databricks workspace enabled for Unity Catalog. An engineer created a materialized view named customer_contacts to expose a subset of columns from a Delta table for a compliance team
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A data engineer maintains a daily sales summary by running a nightly job that fully recomputes and overwrites a managed Delta
- You have an Azure Databricks workspace that is enabled for Unity Catalog. You need a gold dataset that joins a fact table to a slowly changing dimension table and that: is reused by several BI dashboa
- You have an Azure Databricks workspace enabled for Unity Catalog. A managed Delta table named web_events is continuously appended by an ingestion pipeline. You need a Unity Catalog object that: presen
- You have an Azure Databricks workspace enabled for Unity Catalog. The catalog1.hr schema contains a managed Delta table named Employees with columns employee_id, full_name, department, salary, and ssn
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A heavy aggregation over a large gold Delta table named Web_Events is queried thousands of times per day by dashboards, while
- You have an Azure Databricks workspace that is enabled for Unity Catalog. You maintain a materialized view named Daily_Revenue that aggregates a large managed Delta table with row tracking enabled. Yo
- You have an Azure Databricks workspace enabled for Unity Catalog. A very large managed Delta table named ledger is queried by a reconciliation report only a few times per month, and each run must refl
- You have an Azure Databricks workspace enabled for Unity Catalog. Analysts repeatedly write the same join of three Delta tables (customers, orders, and regions) with renamed and derived columns. You n
- You have an Azure Databricks workspace enabled for Unity Catalog. A data engineer defined a standard view named daily_sales_summary over a large Delta table to feed an analytics dashboard. Users repor
- A table persists data, defaulting to the Delta Lake format
A Unity Catalog table stores rows and columns using the Delta Lake format by default, and can be created empty, with CREATE TABLE AS SELECT (CTAS), or with CREATE OR REPLACE TABLE.
- Lakehouse Federation needs a connection first, then a foreign catalog
To federate an external database you first create a connection object that stores the server host and credentials, then create a foreign catalog that uses that connection to mirror the external database's schemas in Unity Catalog.
8 questions test this
- You are configuring Lakehouse Federation so that Azure Databricks can run federated queries against a Microsoft SQL Server database. Unity Catalog must be able to reach the SQL Server host and authent
- You have a new Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. An operational Teradata system named tdprod hosts a database named Billing. Analysts must query Billing's
- You have an Azure Databricks workspace enabled for Unity Catalog. A colleague has already created a Unity Catalog connection to an external MySQL database named Sales. You need to make the Sales schem
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. Your team runs an on-premises Teradata system named TeraWarehouse that hosts a production database named Anal
- You have an Azure Databricks workspace enabled for Unity Catalog. You must expose a live PostgreSQL database's tables in Unity Catalog and query them in place, without copying any data. A teammate pro
- You manage Lakehouse Federation for an Azure Databricks workspace. Three foreign catalogs mirror three databases on a single Oracle server, all created from one connection named oracle_conn. The Oracl
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. You need to make the schemas and tables of an external PostgreSQL database queryable in Workspace1 through La
- You have an Azure Databricks workspace enabled for Unity Catalog. A single PostgreSQL server hosts three separate databases named sales, hr, and ops. You need each database to appear as its own catalo
- Federated queries run in place with no data copy
A foreign catalog runs Lakehouse Federation queries directly against the source system so its schemas and tables appear alongside other Unity Catalog objects and are queried in place, with no data copied into Databricks-managed storage.
Trap An ingestion pipeline or a managed table would copy the data; only a foreign catalog queries the source in place.
13 questions test this
- You have a new Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. An operational Teradata system named tdprod hosts a database named Billing. Analysts must query Billing's
- You have an Azure Databricks workspace enabled for Unity Catalog. Analysts must query a Snowflake database named Finance from Databricks. The solution must expose Finance in Unity Catalog, must not st
- You have an Azure Databricks workspace enabled for Unity Catalog. A colleague has already created a Unity Catalog connection to an external MySQL database named Sales. You need to make the Sales schem
- You have an Azure Databricks workspace enabled for Unity Catalog. Data scientists need to query an external Oracle database from Databricks. The Oracle tables must be browsable in Catalog Explorer alo
- You have an Azure Databricks workspace enabled for Unity Catalog. A BI team needs to build Power BI reports directly on current data in a Google BigQuery dataset. Requirements: queries must run agains
- You have an Azure Databricks workspace enabled for Unity Catalog. Analysts need occasional, read-only reporting on live data in an Azure SQL Database named OrdersDB. Requirements: the data must NOT be
- You have an Azure Databricks workspace enabled for Unity Catalog. A Power BI dashboard built on Databricks must always reflect the very latest rows in an operational Microsoft SQL Server database. The
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog. Your team runs an on-premises Teradata system named TeraWarehouse that hosts a production database named Anal
- You have an Azure Databricks workspace enabled for Unity Catalog. You must expose a live PostgreSQL database's tables in Unity Catalog and query them in place, without copying any data. A teammate pro
- You have an Azure Databricks workspace enabled for Unity Catalog. You need Snowflake warehouse tables to be queryable from Databricks so that Unity Catalog governs access with data lineage and fine-gr
- You have an Azure Databricks workspace enabled for Unity Catalog. A nightly Lakeflow ingestion pipeline copies an operational Microsoft SQL Server database named Orders into managed Delta tables so an
- You have an Azure Databricks workspace enabled for Unity Catalog. For compliance reasons, the data from an external Azure Synapse (SQL Data Warehouse) database must never be copied into Databricks sto
- You have an Azure Databricks workspace enabled for Unity Catalog. Data analysts must query an operational Oracle database named Inventory whose tables and columns change frequently as developers ship
- Dropping a managed table deletes its underlying data
A managed table stores its data files in Unity Catalog managed storage, so DROP TABLE removes both the table metadata and the underlying data files.
Trap Dropping an external table removes only the metadata and leaves the files intact.
12 questions test this
- You have an Azure Databricks workspace named Workspace1 that is enabled for Unity Catalog and contains a catalog named etl_stage. A nightly Lakeflow job creates several intermediate staging tables in
- You have an Azure Databricks workspace enabled for Unity Catalog. Two days ago, a managed Delta table named Customers was dropped by accident. No backup or clone of Customers was ever created, and the
- You have an Azure Databricks workspace that is enabled for Unity Catalog. Two hours ago, an engineer accidentally ran DROP TABLE on a managed Delta table named finance.reporting.ledger. The recovery m
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A data governance policy requires that when a dataset is decommissioned by dropping its table, the underlying data files must
- You have an Azure Databricks workspace with a Unity Catalog external Delta table named analytics.gold.customer that was created with a LOCATION clause. You need to convert it to a Unity Catalog manage
- You have an Azure Databricks workspace enabled for Unity Catalog. A developer plans to run DROP TABLE on a managed Delta table named Archive to free the name, but the business still needs Archive's da
- You have an Azure Databricks workspace enabled for Unity Catalog. A Unity Catalog external Delta table named Curated is stored under an external location. To gain automatic optimization and let Databr
- You have an Azure Databricks workspace enabled for Unity Catalog. A nightly ETL job creates dozens of intermediate tables and drops them again at the end of each run. You need the underlying data file
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A catalog contains a managed Delta table named Orders and an external Delta table named ArchivedOrders, where ArchivedOrders w
- You have an Azure Databricks workspace enabled for Unity Catalog. A table named Sales is an external Delta table defined with a LOCATION clause over abfss://data@contoso.dfs.core.windows.net/sales, an
- You have an Azure Databricks workspace enabled for Unity Catalog. A partner delivers a large, continuously updated dataset as Avro files in abfss://partner@contoso.dfs.core.windows.net/feed, registere
- You have an Azure Databricks workspace that is enabled for Unity Catalog. Your team currently stores gold-layer tables as external tables and reports two problems: no automatic file-layout optimizatio
- An external table is defined with LOCATION and keeps its data on drop
An external table is created with a LOCATION clause pointing at a path under an external location, so Unity Catalog governs only its metadata and DROP TABLE leaves the underlying files untouched.
13 questions test this
- You have an Azure Databricks workspace enabled for Unity Catalog and an external location already registered for abfss://raw@contoso.dfs.core.windows.net/events. You are writing a CREATE TABLE stateme
- You have an Azure Databricks workspace that is enabled for Unity Catalog. An engineer runs CREATE TABLE ... LOCATION 'abfss://raw@adls.dfs.core.windows.net/events' to register existing files as an ext
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A data governance policy requires that when a dataset is decommissioned by dropping its table, the underlying data files must
- You have an Azure Databricks workspace that is enabled for Unity Catalog with a catalog named sales and a schema named curated. A Unity Catalog external location already grants access to abfss://data@
- You have an Azure Databricks workspace with a Unity Catalog external Delta table named analytics.gold.customer that was created with a LOCATION clause. You need to convert it to a Unity Catalog manage
- You have an Azure Databricks workspace that is enabled for Unity Catalog. To reduce ADLS Gen2 storage costs, an engineer ran DROP TABLE on a large external table named archive.cold.logs that had been
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A curated Parquet dataset in an ADLS Gen2 container is written and owned by a separate Azure service, and that service must ke
- You have an Azure Databricks workspace enabled for Unity Catalog. A developer plans to run DROP TABLE on a managed Delta table named Archive to free the name, but the business still needs Archive's da
- You have an Azure Databricks workspace enabled for Unity Catalog. A Unity Catalog external Delta table named Curated is stored under an external location. To gain automatic optimization and let Databr
- You have an Azure Databricks workspace enabled for Unity Catalog. A nightly ETL job creates dozens of intermediate tables and drops them again at the end of each run. You need the underlying data file
- You have an Azure Databricks workspace that is enabled for Unity Catalog. A catalog contains a managed Delta table named Orders and an external Delta table named ArchivedOrders, where ArchivedOrders w
- You have an Azure Databricks workspace enabled for Unity Catalog. A table named Sales is an external Delta table defined with a LOCATION clause over abfss://data@contoso.dfs.core.windows.net/sales, an
- You have an Azure Databricks workspace enabled for Unity Catalog. A partner delivers a large, continuously updated dataset as Avro files in abfss://partner@contoso.dfs.core.windows.net/feed, registere
- AI/BI Genie answers natural-language questions over a curated data set
An AI/BI Genie space lets business users ask natural-language questions that Genie converts to SQL over a curated set of Unity Catalog tables, enabling self-service data discovery without writing queries.
9 questions test this
- Your team already publishes an AI/BI dashboard of monthly KPIs from a curated Unity Catalog schema. Business users keep emailing the analytics team ad hoc follow-up questions that the fixed dashboard
- A colleague created an AI/BI Genie space by adding every table from a large Unity Catalog catalog. Business users now complain that Genie's answers are frequently wrong or irrelevant, and responses ar
- You share a single AI/BI Genie space with two sales teams that must each see only their own region's rows in a shared sales table. The space is configured with one author's serverless SQL warehouse. Y
- Analysts use an AI/BI Genie space over your curated Unity Catalog sales tables. Leadership now asks whether the same space can answer questions about the text inside scanned PDF contracts stored in a
- You have an Azure Databricks workspace enabled for Unity Catalog. A catalog named retail_sales contains curated Delta tables and views for weekly revenue, units sold, and returns by store and region.
- You are building an AI/BI Genie space for a finance team. The source data is spread across 45 highly normalized Unity Catalog tables, and early testing shows Genie generates inaccurate joins and strug
- An AI/BI Genie space for the marketing team returns inaccurate answers. A colleague proposes giving Genie everything by adding every table in the metastore to the space and removing the curated instru
- You have a single AI/BI Genie space shared with sales analysts from multiple regions. It is built on a curated Unity Catalog table named Sales that includes a region column. Every analyst must query t
- Contoso, Ltd. has an Azure Databricks workspace that is enabled for Unity Catalog and contains a catalog named sales_gold with a curated set of governed tables. The regional sales managers are busines
- Genie instructions and example queries steer accurate answers
Configuring Genie general instructions, example SQL queries, and trusted or certified answers guides how Genie interprets domain terms and business logic, improving the accuracy of the answers it generates for data discovery.
Trap Genie relies on the curated tables plus its instructions, not on unrestricted access to the whole metastore.
12 questions test this
- A colleague created an AI/BI Genie space by adding every table from a large Unity Catalog catalog. Business users now complain that Genie's answers are frequently wrong or irrelevant, and responses ar
- In your AI/BI Genie space, questions that combine an orders table and a customers table often return wrong numbers because Genie joins the tables on the wrong columns. You need Genie to generate the c
- In your AI/BI Genie space, users often ask a broad, ambiguous prompt, give me a breakdown of team performance, and Genie returns inconsistent SQL because the phrase maps to a specific multi-step calcu
- Compliance requires that when business users ask your AI/BI Genie space for the company's regulatory capital ratio, Genie must return an answer produced by logic that a data steward has already vetted
- In an AI/BI Genie space, executives repeatedly ask for quarter-to-date bookings by segment, a high-visibility figure that must be computed with one specific, analyst-verified query every time. You nee
- You manage an AI/BI Genie space built on a curated set of Unity Catalog sales tables. Business users frequently ask about net revenue, but Genie calculates it inconsistently, sometimes subtracting ret
- You curate an AI/BI Genie space for a sales team. When users ask about sales performance without specifying a time range or sales channel, you want Genie to pause and ask them to clarify those details
- You are building an AI/BI Genie space for a finance team. The source data is spread across 45 highly normalized Unity Catalog tables, and early testing shows Genie generates inaccurate joins and strug
- An AI/BI Genie space for the marketing team returns inaccurate answers. A colleague proposes giving Genie everything by adding every table in the metastore to the space and removing the curated instru
- Analysts using your AI/BI Genie space frequently ask about gross margin, but Genie computes it inconsistently because people define the formula differently. You need Genie to apply one exact, reusable
- Business users of your AI/BI Genie space ask questions using full state names, such as sales in Florida, but the underlying table stores two-letter codes such as FL. Genie generates SQL with a filter
- You manage an AI/BI Genie space in Azure Databricks that business analysts use to explore a curated set of sales tables. For several recurring questions, such as open pipeline by region, Genie generat
References
- What is Unity Catalog?
- Unity Catalog best practices
- Workspace-catalog binding
- Create catalogs
- Create schemas
- Unity Catalog managed tables for Delta Lake and Apache Iceberg
- Work with external tables
- What are Unity Catalog volumes?
- Create and manage Unity Catalog volumes
- What is a view?
- Use standalone materialized views
- Connect to external databases and catalogs
- Genie Agents
- Tune Genie Agent quality
- Genie Agents concepts