Microsoft Data Engineering with Azure Databricks (DP-750) · 17% practice allocation

Microsoft DP-750: Secure and govern Unity Catalog objects Practice Questions

5 free sample questions from the Secure and govern Unity Catalog objects domain, with answers and explanations. The full DP-750 bank has 229 questions across 4 domains. Questions are scenario-based and written from the official Microsoft exam guide.

1.

A data governance team wants to implement row-level security on a Unity Catalog table hr.employees so that each manager can only see rows where the manager_id column matches their own user identity. The solution must be maintainable without modifying the base table. Which Unity Catalog feature should they use?

  • A. A table property setting row_filter = current_user()
  • B. A dynamic view with a WHERE clause referencing current_user()
  • C. A column mask applied to the manager_id column
  • D. A row filter function assigned to the hr.employees table✓ Correct
Explanation

Row filter functions in Unity Catalog allow you to define a SQL function that is automatically applied as a WHERE clause whenever the table is queried, without modifying the table itself. The function can reference current_user() or is_member() to enforce per-user or per-group filtering, exactly meeting the requirement. A column mask applies a transformation to a column's value (e.g., masking PII) but does not filter rows; it cannot hide entire rows from a user. A dynamic view with current_user() works for row-level security but requires creating and maintaining a separate view object and does not meet the 'without modifying the base table' intent as cleanly as a row filter, and users must be directed to the view rather than the table. There is no built-in row_filter table property in Unity Catalog; row filters are registered as catalog functions and then assigned via ALTER TABLE ... SET ROW FILTER.

2.

A data steward wants to make a Unity Catalog table analytics.customer_metrics more discoverable. They need to add a business description to the table and label the lifetime_value column as containing 'revenue data'. Which two actions should the data steward take? (Select TWO)

  • A. Create a separate documentation table in the metastore that references analytics.customer_metrics
  • B. Grant the data steward the BROWSE privilege on the metastore to enable tagging
  • C. Add a tag with key column_type and value revenue data to the lifetime_value column using ALTER TABLE ... ALTER COLUMN ... SET TAGS✓ Correct
  • D. Use COMMENT ON TABLE analytics.customer_metrics IS '<description>' to add a table description✓ Correct
  • E. Use ALTER TABLE analytics.customer_metrics SET TBLPROPERTIES ('description' = '<text>') to set the description
Explanation

Using COMMENT ON TABLE ... IS '...' sets the human-readable description on the table that appears in Catalog Explorer and is returned by DESCRIBE TABLE, making the table discoverable. Using ALTER TABLE ... ALTER COLUMN ... SET TAGS attaches a key-value tag to the column, which supports attribute-based discovery and governance policies—this is the correct Unity Catalog mechanism for labeling columns. Creating a separate documentation table is not a Unity Catalog feature and does not integrate with Catalog Explorer or metadata search. While SET TBLPROPERTIES can store arbitrary key-value pairs, the official description field recognized by Unity Catalog's discovery features is set via COMMENT ON TABLE, not via a description table property. The BROWSE privilege allows users to view metadata without accessing data but is a privilege grant, not an action that enables tagging; the data steward needs appropriate ownership or APPLY TAG privilege to set tags, not BROWSE.

3.

A Databricks workspace is configured to use a Unity Catalog metastore. A data engineer runs the following command:

GRANT USE SCHEMA ON SCHEMA catalog1.schema1 TO analyst_group;

After this grant, members of analyst_group still cannot query any tables in catalog1.schema1. What is the most likely reason?

  • A. The group also needs USE CATALOG privilege on catalog1 and SELECT on the individual tables✓ Correct
  • B. USE SCHEMA must be replaced with USE DATABASE for Unity Catalog
  • C. The grant should target the metastore, not the schema
  • D. USE SCHEMA is only valid for the legacy Hive metastore and is not recognized in Unity Catalog
Explanation

In Unity Catalog, querying a table requires a chain of privileges: USE CATALOG on the parent catalog, USE SCHEMA on the parent schema, and SELECT on the table (or a higher privilege). Granting only USE SCHEMA on the schema is insufficient because the analysts also need USE CATALOG on catalog1 to navigate into the catalog and SELECT on the specific tables they want to query. USE DATABASE is a legacy Hive metastore alias and while Unity Catalog accepts it as a synonym for USE SCHEMA, the original command is syntactically valid—the problem is missing privileges, not syntax. Grants in Unity Catalog are applied at the object level (catalog, schema, table, etc.); there is no requirement to target the metastore for schema-level grants. USE SCHEMA is fully supported in Unity Catalog; it is not limited to the Hive metastore.

4.

A data platform team needs to track how data flows from a raw ingestion table bronze.raw_events through a transformation notebook to a curated table gold.event_summary. A compliance officer asks which tables were used to produce a specific gold table and which downstream tables or dashboards consume it. Which three actions correctly leverage Unity Catalog capabilities to answer the compliance officer's questions? (Select THREE)

  • A. Register the lineage relationship manually by executing ALTER TABLE gold.event_summary SET LINEAGE (bronze.raw_events)
  • B. Enable Delta Lake Change Data Feed on bronze.raw_events to expose its lineage to gold.event_summary
  • C. Run DESCRIBE HISTORY gold.event_summary to retrieve the full upstream lineage of the table
  • D. Ensure that transformation notebooks run on clusters with Unity Catalog-enabled compute so that lineage is automatically captured✓ Correct
  • E. Check the 'Downstream' section of the lineage graph in Catalog Explorer to identify dashboards and notebooks that read from gold.event_summary✓ Correct
  • F. Open Catalog Explorer, navigate to gold.event_summary, and view the 'Lineage' tab to see upstream sources and downstream consumers✓ Correct
Explanation

Catalog Explorer's Lineage tab provides a visual graph of upstream sources (tables, notebooks, jobs that produced the table) and downstream consumers (tables, dashboards, notebooks that read from it), directly answering the compliance officer's questions. Unity Catalog automatically captures lineage when queries run on Unity Catalog-enabled clusters (clusters using the Unity Catalog access mode), so using such clusters is a prerequisite for lineage to be populated. The Downstream section of the lineage graph shows which assets consume gold.event_summary, including notebooks and Databricks SQL dashboards. DESCRIBE HISTORY returns the Delta transaction log history (versions, timestamps, operations like WRITE or MERGE) for a table, but it does not show cross-table data lineage. There is no SET LINEAGE SQL command in Unity Catalog; lineage is captured automatically and cannot be manually registered via SQL. Enabling Change Data Feed on bronze.raw_events tracks row-level changes for incremental processing but has no relationship to lineage tracking between tables.

5.

A data engineer needs to grant a group of analysts read-only access to a table called sales.transactions in Unity Catalog. The analysts should be able to query the table but must not be able to modify its schema or data. Which privilege should be granted to the group on the table?

  • A. USE CATALOG
  • B. SELECT✓ Correct
  • C. MODIFY
  • D. READ FILES
Explanation

SELECT grants the ability to query (read) data from a table without allowing schema or data modifications, which is exactly what is needed. READ FILES is a privilege used for accessing files in external locations, not for querying tables. MODIFY allows INSERT, UPDATE, and DELETE operations on a table, which would exceed the required read-only access. USE CATALOG is required on the parent catalog to allow navigation but alone does not grant read access to tables; the analysts also need USE SCHEMA on the parent schema, but among these options SELECT is the direct and correct privilege for read-only table access.

Test yourself across every DP-750 domain

The free DP-750 practice test mixes about 20 questions weighted like the exam. The full 229-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Secure and govern Unity Catalog objects study guide (DP-750) →

Other DP-750 domains

← All Microsoft Data Engineering with Azure Databricks study resources