CertLumen

Databricks Data Engineer Professional · Section 6 · 8% of the exam

Apply attribute-based access control (ABAC) policies with governed tags to enforce row filters and column masks at scale.

One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Ensuring Data Security and Compliance”. Here is what it covers, the points to remember and a question to try.

What it covers

Production security combines Unity Catalog privileges on data securables with workspace ACLs on jobs, pipelines, compute and secrets. This lesson builds least-privilege designs for both planes, then scales row and column protection across hundreds of tables with governed tags and ABAC policies.

Points to remember

  • Least privilege spans two planes: Unity Catalog privileges on securables and workspace ACLs on notebooks, jobs, pipelines, compute, warehouses and secret scopes.
  • Reading needs USE CATALOG + USE SCHEMA + SELECT; grant at the schema level to groups; ALL PRIVILEGES excludes MANAGE, READ METADATA, EXTERNAL USE SCHEMA and EXTERNAL USE LOCATION.
  • Unity Catalog has no DENY SELECT: revoke where granted, restructure groups, or filter and mask; ABAC DENY policies (Beta) cover only MANAGE ACCESS CONTROL.
  • Jobs run as their Run as identity whoever triggers them: use a service principal, CAN MANAGE RUN for operators and CAN MANAGE only for release owners; a group cannot be IS OWNER.
  • ABAC = governed tags + policies on a catalog, schema or table (metastore in Beta); policies cover current and future matching tables and owners cannot override them.

Try a question

After governance adds an ABAC column mask policy to catalog prod, a nightly job that reads prod.crm.customers on dedicated compute with Databricks Runtime 15.4 LTS starts failing. Its service principal still has SELECT on the table. Workloads on serverless compute read the same table and see masked values. What should the engineer do?

  1. AGrant the service principal EXECUTE on the mask function so that the older runtime is able to apply it
  2. BSwitch the cluster to standard access mode on Runtime 15.4 LTS, which evaluates ABAC policies
  3. CGive the service principal MANAGE on the catalog so that its queries skip the policy checks
  4. DRun the job on serverless, or on dedicated Runtime 16.4+ with fine-grained access control filtering
Show the answer

D. Reading ABAC-secured tables needs serverless compute, standard compute on Databricks Runtime 16.4 or above, or dedicated compute on 16.4 or above with fine-grained access control filtering. Standard and dedicated compute on older runtimes can't access these tables at all. If a workload truly can't be upgraded, the docs suggest scoping the policy so that its principal is in EXCEPT.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Least Privilege and ABAC at Scale teaches this objective (about 55 minutes), and 12 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.

More in this section

← Previous objective · All 45 objectives · Next objective →