Learning Objectives
By the end of this chapter, you will be able to:
- Explain Snowflake security model and principles
- Define data governance features and how they are used
- Explain monitoring and cost management
Executive Summary
- Snowflake enforces access using a hybrid model combining Role-Based Access Control (RBAC) with Discretionary Access Control (DAC): every securable object has one owning role, and that role grants privileges to other roles, which are then granted to users or other roles.
- Authentication is layered across passwords, Multi-Factor Authentication, Federated SSO via SAML 2.0, OAuth, and key-pair authentication. Network Policies wrap the perimeter by allow-listing IP ranges or VPC endpoints.
- Data governance is enforced through column-level masking policies, row access policies, object tags, privacy policies, Trust Center checks, and tag-based lineage. Replication and failover groups extend governance across regions and clouds.
- Cost is governed by Resource Monitors that suspend warehouses at credit thresholds, by warehouse credit rules (1 credit per minute for X-Small, doubling per size), and by ACCOUNT_USAGE views that report consumption, query history, and lineage with up to 365 days of retention.
Assumptions
- The reader has completed Chapter 1 and is familiar with the object hierarchy (Organization, Account, Database, Schema), virtual warehouse sizes, and editions (Standard, Enterprise, Business Critical, Virtual Private Snowflake).
- Examples assume Enterprise Edition unless a feature explicitly requires Business Critical or Virtual Private Snowflake.
- Role names, user names, warehouse names, and object names are fictional and use a consistent prefix pattern (
ACME_*) for clarity. - Region and cloud platform identifiers in code samples are illustrative; production deployments must substitute the values shown in the account URL.
