Data Engineer Professional · Domain 7: Data Governance · 5% of the exam
Task 7.1: Demonstrate understanding of Unity Catalog tags and comments as mechanisms for adding metadata to securable objects to improve data discoverability.
Tags and governed tags, COMMENT ON and AI-generated comments, the privileges to set them, searching by tag, and the information schema views.
Study it
Tags and comments for discovery
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Databricks documentation page that proves it.
Question 1 · choose 2
A data steward plans to tag the table sales.orders and 30 of its columns with domain and sensitivity tags to make them easier to find. Which TWO statements about these tags are correct? (Choose TWO.)
ATag keys are case-insensitive: Domain and domain are one tag
BA single table or column can carry at most 50 tags
CA tag key such as data-domain is valid
DTag values can hold up to 4,096 characters
EEach column must be tagged with its own ALTER TABLE statement
Show the answer and why
ATag keys are case-insensitive: Domain and domain are one tag
Incorrect
Tag keys are case-sensitive.
BA single table or column can carry at most 50 tags
Correct
Unity Catalog allows a maximum of 50 tags on a single securable object, such as a table or column.
CA tag key such as data-domain is valid
Incorrect
Hyphens are among the characters not allowed in tag keys.
DTag values can hold up to 4,096 characters
Incorrect
Tag keys and values are limited to 256 characters.
EEach column must be tagged with its own ALTER TABLE statement
Correct
Tags cannot be assigned to several columns in one ALTER TABLE command, unlike comments.
Tags are key and optional value pairs on securable objects that improve search and discovery. Their constraints include case-sensitive keys, 50 tags per object, 1,000 column tags per table, 256-character keys and values, banned characters in keys and one column per tagging command.
A data steward who does not own main.sales.orders must add tags to it. Which privileges do they need?
ASELECT on the table, with USE SCHEMA and USE CATALOG
BAPPLY TAG on the table plus USE SCHEMA and USE CATALOG
CMODIFY on the table, with USE SCHEMA and USE CATALOG
DBROWSE on the catalog and USE SCHEMA on the schema
Show the answer and why
ASELECT on the table, with USE SCHEMA and USE CATALOG
Incorrect
Reading data does not allow changing tags.
BAPPLY TAG on the table plus USE SCHEMA and USE CATALOG
Correct
Non-owners need APPLY TAG on the object and usage on the parent schema and catalog.
CMODIFY on the table, with USE SCHEMA and USE CATALOG
Incorrect
MODIFY lets users change the table's data, not its tags.
DBROWSE on the catalog and USE SCHEMA on the schema
Incorrect
BROWSE lets users see metadata, not change it.
To add tags, you must own the object or have APPLY TAG on it plus USE SCHEMA and USE CATALOG on its parents. Governed tags also need ASSIGN on the tag.