Sample questions with answers and explanations
Question 1
An analyst writes: SELECT * FROM finance.reporting.invoices. What do the three parts of this name represent in Unity Catalog?
- schema.catalog.view
- workspace.database.table
- metastore.catalog.table
- catalog.schema.table — Correct
Correct answer
catalog.schema.table
Explanation
Unity Catalog uses a three-level namespace: catalog.schema.object (table, view, volume, function or model). The metastore sits above catalogs and is not part of the name.
Question 2
A data analyst needs to store a set of PDF reports and CSV extracts next to governed tables so that access to the files is controlled by Unity Catalog. Which object should be used?
- A temporary view
- A Unity Catalog volume — Correct
- The DBFS root
- A managed table with a BINARY column
Correct answer
A Unity Catalog volume
Explanation
Volumes are Unity Catalog objects for non-tabular files. Access is governed with privileges such as READ VOLUME and WRITE VOLUME, and files are addressed as /Volumes/catalog/schema/volume/path.
Question 3
An auditor asks for the exact contents of a gold table at the time the Q3 board report was produced, which was version 310. VACUUM retention is the default. Version 310 was written 45 days ago. What is the most likely outcome?
- The query will succeed only on a classic SQL warehouse
- It may fail because VACUUM may have removed the needed files — Correct
- The query will always succeed, because time travel keeps every version forever
- The query will return the current data with a warning
Correct answer
It may fail because VACUUM may have removed the needed files
Explanation
By default VACUUM removes unreferenced files older than 7 days, so old versions may not be readable. For audit retention, keep snapshots (for example with CTAS or deep clone) or extend retention settings.
Question 4
A retail company shares a curated Delta table with a subsidiary that runs its own Databricks workspace on a different Unity Catalog metastore. Which sharing model is the most direct?
- Exporting the table to CSV in a shared volume
- Open sharing with a bearer token emailed to the subsidiary
- Lakehouse Federation from the subsidiary's workspace into your SQL warehouse
- Databricks-to-Databricks Delta Sharing using the recipient's sharing identifier — Correct
Correct answer
Databricks-to-Databricks Delta Sharing using the recipient's sharing identifier
Explanation
Databricks-to-Databricks sharing uses the recipient metastore's sharing identifier; no tokens need to be managed, and the shared data appears as a catalog for the recipient.
Question 5
What does Predictive Optimization do for Unity Catalog managed tables?
- Rewrites analysts' SQL queries to use materialized views automatically
- Predicts future values of numeric columns and stores them in a separate table
- Scales SQL warehouses up before the morning dashboard refresh
- Automatically runs OPTIMIZE, VACUUM and ANALYZE when they are likely to help — Correct
Correct answer
Automatically runs OPTIMIZE, VACUUM and ANALYZE when they are likely to help
Explanation
Predictive Optimization identifies managed tables that would benefit from maintenance and runs OPTIMIZE, VACUUM and ANALYZE automatically, removing the need for manual maintenance jobs.