Databricks - Data Engineer Professional Study Guide

    7: Ensuring Data Security and Compliance

    This chapter covers the production data-security and compliance contract on the Databricks Data Intelligence Platform: workspace and Unity Catalog access controls, row filters and column masks, anonymisation and pseudonymisation, PII-aware batch and streaming pipelines, and retention-driven purging. It maps each control to the catalog of Databricks primitives a Data Engineer Professional has to wire up in production.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Apply data security mechanisms across workspace assets, Unity Catalog securables, compute, and secrets.
    • Use ACLs to secure workspace objects under least-privilege policy, including cluster policies and personal access token controls.
    • Use row filters and column masks to restrict access to sensitive table data at query time.
    • Apply hashing, tokenisation, suppression, and generalisation to confidential data.
    • Frame the compliance surface: audit, classification, residency, and security profiles.
    • Implement a compliant batch and streaming pipeline that detects and masks PII before persistence.
    • Develop a data purging solution that satisfies retention policies through DELETE, VACUUM, and predictive optimisation interactions.

    Executive Summary

    • Unity Catalog and the workspace ACL plane are two distinct authorisation surfaces. Workspace ACLs control who can see and run notebooks, jobs, clusters, and secrets. Unity Catalog controls who can read, modify, and govern data assets. Both must agree before a principal can act on a dataset.
    • Row filters and column masks attach Unity Catalog SQL functions to tables. They evaluate at query time, propagate to every reader, and pair with is_member() and current_user() for identity-aware redaction.
    • Hashing, tokenisation, suppression, and generalisation are not interchangeable. Each maps to a specific reversibility, joinability, and disclosure profile that the certification tests directly.
    • PII-aware pipelines push detection upstream into Bronze-to-Silver promotion. Lakeflow SDP expectations route raw PII into a quarantine flow, and a Silver projection writes only the masked or tokenised columns to downstream Gold.
    • Retention compliance requires DELETE plus VACUUM plus deletion vector purge. Predictive optimisation on Unity Catalog managed tables runs OPTIMIZE and VACUUM automatically, which means engineers govern retention windows through table properties, not cron jobs.

    Assumptions

    • The workspace runs on Unity Catalog as the primary catalog. Hive Metastore content is treated as legacy.
    • Storage layer is cloud object storage (S3, ADLS Gen2, GCS) with managed table data under Unity Catalog managed storage locations.
    • Identity federation is in place: SCIM provisions users and groups from the IdP into the account, and groups are the unit of grant assignment, not individual users.
    • Region pinning is out of scope for this chapter beyond a reference in compliance framing. Cross-region replication is covered through Delta Sharing in the prior chapter.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account