Learning Objectives
By the end of this chapter, you will be able to:
- Outline the benefits and limitations of various data models in a Snowflake environment.
- Design data sharing solutions, based on different use cases.
- Design an architecture to support development lifecycles as well as workload requirements.
- Given a scenario, outline how objects exist within the Snowflake object hierarchy and how the hierarchy impacts an architecture.
- Determine the appropriate recovery solution given a scenario.
Executive Summary
- Data-model choice in Snowflake is decoupled from physical storage; micro-partitions and metadata pruning make wide, denormalised tables competitive with classical 3NF and dimensional designs, while Data Vault still earns its keep for auditable, slowly-changing source-of-truth layers.
- Secure Data Sharing exposes a provider's micro-partitions directly to a consumer account in the same region without copying bytes; cross-region or cross-cloud sharing requires Database or Account Replication, which trades zero-byte sharing for transfer cost and an RPO budget.
- Promoting code and data across dev, test, and prod environments leans on zero-copy CLONE, schema-level Git integration, and account-or-database replication for higher-tier accounts; warehouse separation and multi-cluster sizing isolate workload classes from one another.
- Recovery design splits into recoverable user actions (Time Travel up to 90 days on Enterprise+), provider-side recovery (Fail-safe, 7 days, not user-queryable), and disaster recovery (Failover Groups with client redirect), each with distinct RPO and RTO trade-offs.
Assumptions
- The account topology, identity fabric, and Snowflake edition mix were chosen during the design discussion in Chapter 1; this chapter consumes those decisions rather than revisits them.
- Terms defined previously (Organization, ORGADMIN, Tri-Secret Secure, network policy, masking policy, row access policy, Reader Account, Failover Group, Time Travel, Fail-safe, DATA_RETENTION_TIME_IN_DAYS) are used here without redefinition.
- Code samples use the fictional
acme_analyticsaccount hosting afinancedatabase, amarketingdatabase, and asandboxdatabase, with functional roles nameddata_engineer,analyst, andml_engineerand access roles nameddb_finance_ro,db_finance_rw, and so on. - Region examples use
aws_us_east_1as the primary andaws_us_west_2plusazure_west_europeas targets.
