Snowflake - SnowPro Advanced Architect Study Guide

    2: Snowflake Architecture

    This chapter covers the architectural decisions that ride on top of an established account, identity, and edition foundation. It walks through data-model selection, secure-sharing topology, environment promotion, the organization-to-object hierarchy, and the recovery surface that combines Time Travel, Fail-safe, and replication.

    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_analytics account hosting a finance database, a marketing database, and a sandbox database, with functional roles named data_engineer, analyst, and ml_engineer and access roles named db_finance_ro, db_finance_rw, and so on.
    • Region examples use aws_us_east_1 as the primary and aws_us_west_2 plus azure_west_europe as targets.

    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