Question 1
Which statement about PII protection in Databricks is a recommended practice?
- Keep PII only in workspace files so that Unity Catalog does not see it
- Tag PII with governed tags and enforce column masks or ABAC policies — Correct
- Grant ALL PRIVILEGES on PII tables to analysts to simplify auditing
- Store PII in temporary views so that it is never written to storage
Correct answer
Tag PII with governed tags and enforce column masks or ABAC policies
Explanation
Classifying sensitive columns with tags and applying column masks, row filters or tag-based ABAC policies are recommended ways to protect PII in Unity Catalog.
Question 2
Who can grant privileges on a table in Unity Catalog?
- Any user who has SELECT on the table
- Only account-level billing administrators
- The owner, a user with MANAGE, or a catalog or metastore admin — Correct
- Any user who has CAN USE on the SQL warehouse
Correct answer
The owner, a user with MANAGE, or a catalog or metastore admin
Explanation
Owners (and principals with MANAGE, plus metastore or catalog owners) can grant privileges. SELECT allows reading, not granting.
Question 3
A table is owned by a user who is leaving the company. What is the recommended practice?
- Transfer ownership to a group, for example with ALTER TABLE ... OWNER TO `data-owners` — Correct
- Drop and recreate the table under a new user before the account is removed
- Leave it unchanged, because ownership transfers to the metastore automatically
- Make the table external so that ownership no longer applies
Correct answer
Transfer ownership to a group, for example with ALTER TABLE ... OWNER TO `data-owners`
Explanation
Best practice is to assign ownership to groups rather than individuals. ALTER ... OWNER TO transfers ownership without recreating the object.
Question 4
A data steward applies a governed tag pii=email to email columns across hundreds of tables. What is the benefit of governed tags compared with free-text tags?
- Governed tags make the columns immutable
- Keys and values are centrally controlled, so tags stay consistent and can drive policies — Correct
- Governed tags encrypt the column automatically
- Governed tags prevent the table from appearing in Catalog Explorer
Correct answer
Keys and values are centrally controlled, so tags stay consistent and can drive policies
Explanation
Governed tags have centrally managed keys and values with permissions on who can assign them, which makes them reliable for classification and policy enforcement.
Question 5
Regional managers should only see rows for their own region in sales.gold.orders. Which Unity Catalog feature enforces this on the table itself?
- A comment on the table describing the rule
- A materialized view per region with no permissions
- A column mask on the region column
- A row filter function applied to the table — Correct
Correct answer
A row filter function applied to the table
Explanation
Row filters attach a SQL function to a table that decides which rows a user can see. It is applied to every query against the table.
Question 6
Users in the marketing group report that they can see the catalog 'mkt' in Catalog Explorer but get a permission error when running SELECT on mkt.campaigns.results. They already have SELECT on the table. What is the most likely missing privilege?
- CREATE TABLE on mkt.campaigns
- ALL PRIVILEGES on the metastore that holds the mkt catalog
- USE CATALOG on mkt and USE SCHEMA on mkt.campaigns — Correct
- MODIFY on mkt.campaigns.results, because SELECT alone cannot read data
Correct answer
USE CATALOG on mkt and USE SCHEMA on mkt.campaigns
Explanation
To query a table a principal needs SELECT on the table plus USE CATALOG on its catalog and USE SCHEMA on its schema. MODIFY and CREATE TABLE are write privileges and are not required for reading.
Question 7
A group needs read access to every current and future table in the schema sales.gold. What is the most efficient grant?
- GRANT SELECT on each table individually and repeat when tables are added
- GRANT CREATE TABLE ON SCHEMA sales.gold TO `analysts`
- GRANT MODIFY ON CATALOG sales TO `analysts`
- GRANT SELECT ON SCHEMA sales.gold TO `analysts` (plus USE privileges) — Correct
Correct answer
GRANT SELECT ON SCHEMA sales.gold TO `analysts` (plus USE privileges)
Explanation
Privileges in Unity Catalog are inherited: SELECT granted on a schema applies to all current and future tables and views in it.
Question 8
An analyst creates a view in Unity Catalog. Which privilege is needed on the schema to do this?
- CREATE TABLE, USE SCHEMA and USE CATALOG — Correct
- SELECT on the schema
- MODIFY on the schema
- CREATE VOLUME on the schema
Correct answer
CREATE TABLE, USE SCHEMA and USE CATALOG
Explanation
In Unity Catalog, CREATE TABLE on a schema allows creating tables and views. USE SCHEMA and USE CATALOG are also needed. MODIFY is a table-level write privilege.
Question 9
An analyst must remove a contractor group's access to a schema immediately. Which command is correct?
- ALTER SCHEMA hr.payroll SET OWNER NULL
- DENY ALL ON SCHEMA hr.payroll
- DROP GROUP contractors FROM hr.payroll
- REVOKE the privileges on hr.payroll FROM `contractors` — Correct
Correct answer
REVOKE the privileges on hr.payroll FROM `contractors`
Explanation
REVOKE removes previously granted privileges from a principal. Owners cannot be set to NULL.
Question 10
A data steward needs one policy that masks every column tagged pii=ssn across all tables in a catalog, including tables created next month. Which feature fits best?
- A dynamic view for every table
- A row filter on the catalog
- An ABAC policy that masks columns carrying that governed tag — Correct
- A column mask set individually on each existing table
Correct answer
An ABAC policy that masks columns carrying that governed tag
Explanation
ABAC policies use governed tags to apply row filters or column masks centrally, including to new objects that carry the tag.