Learning Objectives
By the end of this chapter, you will be able to:
- Apply object tagging, data classifications, data lineage tracking, and dependency monitoring.
- Monitor data quality using data metric functions.
- Implement column-level security with Dynamic Data Masking, external tokenization, and projection policies.
- Combine data masking with RBAC; implement row-level security using row access policies and aggregation policies.
- Manage governance policies through DDL and apply masking best practices.
- Use Snowflake Data Clean Rooms through both the Snowsight UI and the developer APIs.
- Use the Snowflake Horizon Catalog for governed external data sharing.
Executive Summary
- Object tagging, classifications, Access History, and Object Dependencies form the discovery layer that all downstream policy enforcement depends on.
- Data Metric Functions evaluate quality on a schedule or change trigger, store results in
SNOWFLAKE.LOCAL.DATA_QUALITY_MONITORING_RESULTS, and drive Alerts through notification integrations. - Column-level security distinguishes three primitives with different mechanics: Dynamic Data Masking rewrites the projection at query time, external tokenization performs the same rewrite through an external function call, and projection policies block raw column values from appearing in SELECT lists while allowing aggregate use.
- Row access policies bind on table read with a per-row UDF that returns a boolean, aggregation policies enforce group-size or NO_AGGREGATION_CONSTRAINT semantics, and the two combine with masking policies and functional RBAC into a layered enforcement model.
- Data Clean Rooms run as Native Apps on Snowgrid, expose a Snowsight UI for low-code workflows, and a Python developer API (the
samooha_by_snowflake_local_testingand the productionSAMOOHA_BY_SNOWFLAKEpackages) for templated joins, differential privacy, and approval flows. - Snowflake Horizon Catalog unifies discovery, classification, access control, lineage, monitoring, and interoperability across internal data, Iceberg externals, Marketplace listings, and private listings under one governance plane.
Assumptions
- Concepts already defined in earlier chapters (Streams, Tasks, Dynamic Tables, Time Travel, zero-copy clone, Replication Group, Snowpark Session, Cortex functions, Data Metric Function) are used here without re-definition.
- All examples assume a SnowPro Advanced practitioner with
ACCOUNTADMIN,SECURITYADMIN, or a delegated governance role available for policy DDL. - Edition-tier callouts are inline where Enterprise or Business Critical is required; treat Standard Edition as insufficient for any policy DDL discussed here.
