Sub topic 1
How Unity Catalog Governs Data and AI Assets
Unity Catalog is Databricks’ centralized governance layer. It controls who can find, use, create, and manage data and AI assets. Access is evaluated through identities, privileges, object ownership, and the object hierarchy.
Prerequisites
Assume you know basic SQL, including SELECT and CREATE, and have used Databricks notebooks or the SQL editor. You should also understand users, groups, and service principals.
The object hierarchy and securable objects
A Unity Catalog metastore contains catalogs. Catalogs contain schemas. Schemas contain securable objects such as tables, views, volumes, functions, and registered models. A fully qualified table name uses this form:
catalog.schema.object
The hierarchy gives permissions a clear scope. For example, a permission on a catalog can affect objects inside its schemas, while a permission on one table affects only that table.
| Securable object | Typical purpose |
|---|---|
| Schema | Groups related tables, views, volumes, and functions |
Who gets access: users, service principals, and groups
A principal is an identity that can receive permissions. It can be a user, a service principal used by an application or job, or a group containing users and service principals.
Grant access to groups whenever possible. Group-based access is easier to review and change than permissions assigned directly to individuals. A service principal should receive only the permissions required by its workload.
Privilege types and what they allow
A privilege is a named action on a securable object. USE CATALOG and USE SCHEMA allow a principal to work through the hierarchy. SELECT permits reading table or view data. Other privileges include MODIFY, CREATE TABLE, CREATE VOLUME, and EXECUTE on functions.
GRANT USE CATALOG ON CATALOG main TO `data-analysts`;
GRANT USE SCHEMA ON SCHEMA main.sales TO `data-analysts`;
GRANT SELECT ON TABLE main.sales.orders TO `data-analysts`;The principal needs the parent USE privileges as well as permission on the target object. A SELECT grant alone may not be enough to query a table if the principal cannot use its catalog and schema.
Exercise
Which principal type is usually the best recipient for access shared by an analytics team?
Show answer
A group, because membership can change without rewriting grants on every governed object.