CertLumen

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

Apply anonymization and pseudonymization methods — such as hashing, tokenization, suppression, and generalization — to confidential data (e.g., using column masks and related Unity Catalog features).

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

Protecting personal data means choosing the right de-identification technique, applying it at write time or read time, detecting PII as batch and streaming data arrives, and erasing a person completely from Delta tables, their history and every downstream copy.

Points to remember

  • Pseudonymised data (salted hash, token, ciphertext) is still personal data under the GDPR; anonymised data is not, and usually needs generalisation plus suppression.
  • Hashing: sha2(concat(secret_salt, value), 256) keeps joins; an unsalted hash of an email is guessable. Tokenisation: random token plus a restricted vault, reversible by compliance.
  • Generalisation lowers precision (year(), decade buckets, left(postcode, 3), date_trunc); suppression removes values; ai_mask (Public Preview) redacts entities in free text.
  • Write-time de-identification creates a safer copy; read-time column masks or ABAC policies decide per reader, with one tiered UDF.
  • Data Classification scans tables, streaming tables and materialized views incrementally; with auto-tagging it applies class.* tags that ABAC policies can match.

Try a question

A company wants every column containing email addresses or phone numbers to be masked automatically for everyone except compliance, across all current and future tables in catalog prod, including streaming tables and materialized views produced by Lakeflow pipelines. Teams must not tag or configure tables themselves. Which design meets the requirement?

  1. AEnable tag propagation for a governed pii tag, tag the bronze source columns once, and let all derived tables inherit it
  2. BEnable Data Classification auto-tagging for email and phone classes, plus a catalog mask policy on those class.* tags
  3. CHave owners accept AI-generated comments on every table, then mask the columns whose comments mention email or phone
  4. DAdd ai_mask() around every column in every pipeline query so that no output ever stores contact data
Show the answer

B. Data Classification scans tables, streaming tables and materialized views incrementally and, with automatic tagging on, applies system tags such as class.email_address and class.phone_number to current and future detections. A catalog-level ABAC policy matching those tags (exempting compliance and the pipeline identities) then masks the columns without per-table work.

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

In the course

The lesson Anonymisation, PII Pipelines and GDPR Erasure teaches this objective (about 60 minutes), and 16 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 →