Databricks Data Analyst Associate · Section 9 · 8% of the exam
Apply best practices for storage and management to ensure data security, including table ownership and PII protection.
One of the objectives of the Databricks Certified Data Analyst Associate exam, in the section “Securing Data”. Here is what it covers, the points to remember and a question to try.
What it covers
Assign ownership of production objects to groups, store data in managed tables and volumes inside isolated managed storage, and protect PII with the right control: column masks, row filters, dynamic views, ABAC policies on governed tags, and data classification to find sensitive columns.
Points to remember
- Every securable has exactly one owner with all privileges; transfer with ALTER … OWNER TO or the Owner field in Catalog Explorer.
- Make groups the owners of production catalogs, schemas and tables; let service principals run jobs and hold MODIFY on production tables.
- MANAGE administers grants, renames, drops and ownership but gives no data access; ALL PRIVILEGES excludes MANAGE.
- Default to managed tables and volumes; isolate managed storage at the catalog level in buckets not reachable outside Unity Catalog.
- Only admins create external locations; avoid broad READ FILES/WRITE FILES, root-level external tables and DBFS mounts of external-location storage.
Try a question
The table crm.core.contacts has an email column. Everyone with SELECT should be able to query the table, but only members of support_leads should see full email addresses; everyone else should see a masked value. Which approach meets this on the table itself?
- AAttach a row filter that returns FALSE for every user outside
support_leads, so their rows are hidden - BGrant SELECT on every column except email with a column-level GRANT so other users cannot read it
- CSet the tag
pii = emailon the column, because Unity Catalog masks every tagged column automatically - DAttach a column mask UDF that shows the email only to
support_leadsmembers
Show the answer
D. A column mask is a SQL UDF attached with ALTER TABLE … ALTER COLUMN email SET MASK. It runs for every query and returns the real or a masked value depending on the logic, here group membership. Users keep querying the same table.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Ownership, secure storage and PII protection teaches this objective (about 45 minutes), and 10 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.