CertSafari
    Snowflake SnowPro Advanced: Data Engineer (DEA-C02)· Lessons

    Domain 3 · Lesson 11/22

    Cross-region and cross-cloud replication and failover in Snowflake

    Implement and manage data recovery features in Snowflake.

    6 min read
    4.67% of exam
    3 sources
    Published 20 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Choose between a replication group and a failover group, and know which edition each needs
    • Describe how primary and secondary databases are refreshed and which objects and parameters are replicated
    • Predict what Time Travel and Fail-safe history a secondary database holds

    1.Replication groups and failover groups

    Groups are how you decide what gets copied to another region or cloud, and whether the copy can ever take over. The first choice in a disaster-recovery design is which kind of group to define in the source account.

    There are two kinds of group. A replication group is a set of objects copied as a unit, and the target sees them read-only. A failover group is a replication group that can also be promoted. When a secondary failover group becomes the primary, its objects become read-write, which is what you need when the original region goes down. Both kinds of group keep the objects on the target consistent to a single point in time.

    Replication features by Snowflake edition
    FeatureStandardEnterpriseBusiness Critical and VPS
    Database replicationYesYesYes
    Share replicationYesYesYes
    Replication GroupYesYesYes
    Failover GroupNoNoYes
    Account object (other than database and share) replicationNoNoYes

    Edition matters for disaster recovery. A Standard or Enterprise account can replicate its databases to another region, but it cannot fail over. Promoting a secondary to read-write needs Business Critical or higher. So do users, roles, warehouses and network policies, so these are not in the target account to rely on unless the account is on Business Critical.

    Checkpoint 1 of 3· Check yourself

    A company on Snowflake Enterprise Edition replicates its sales database to an account in another region on a different cloud. They need to be able to make the copy read-write if the primary region goes down. What do they need?

    Sources1

    2.Primary and secondary databases, refreshes and parameters

    All writes go to the primary database. Each secondary is read-only and catches up when it is refreshed. A refresh carries the changes to objects and data made since the previous refresh, so the secondary moves forward in steps, one snapshot of the primary at a time. How often you refresh decides how much data you could lose in a failover.

    Not every object is copied. In a replicated database, permanent and transient tables are replicated, but temporary, external and hybrid tables are not. Unsupported objects are skipped, so they will not exist in the target account after a failover. Streams are replicated, with two exceptions. Append-only streams are not supported on replicated source objects. A refresh fails if the source object of any stream has been dropped.

    Retention settings are replicated too, with one rule about which side wins. Snowflake replicates DATA_RETENTION_TIME_IN_DAYS and MAX_DATA_EXTENSION_TIME_IN_DAYS when they are explicitly set on a schema or table. Those values overwrite the matching objects on the secondary. A value set at the database level on the secondary itself is never overwritten. If the primary sets 10 days on schema s1 and the secondary database is set to 1, s1 on the secondary ends up at 10. The secondary database's own setting stays at 1.

    Checkpoint 2 of 3· Check yourself

    On the primary account, an engineer runs ALTER TABLE orders SET DATA_RETENTION_TIME_IN_DAYS = 30. In the target account, the secondary database has DATA_RETENTION_TIME_IN_DAYS = 1 set at the database level. After the next refresh, what retention does orders have on the secondary?

    Sources21

    3.Time Travel and Fail-safe on a secondary

    A secondary keeps its own Time Travel and Fail-safe history, and none of it is copied from the primary. Each refresh writes one new version of each changed table. Those versions are the only history the secondary has. With an hourly refresh, every hourly version within the retention window can be queried, but the versions in between cannot. The same Time Travel query can therefore return different results on the primary and on the secondary.

    The retention clock on the secondary starts when a refresh applies the change, not when the change happened on the primary. After a failover, the newly promoted primary therefore has history only from the refreshes it received. If you need to look back to a moment before your last refresh, the old primary's Time Travel history is the only source for it.

    Checkpoint 3 of 3· Check yourself

    After a regional outage, a team promotes its secondary failover group. The primary had been refreshing the secondary at 08:00 and 12:00 each day. The next morning they need a table's exact state at 10:30 yesterday, from before the outage. Where can they get it?

    Sources3

    Sources

    (3)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Replication is supported across regions and across cloud platforms.”
      ↩︎ Replication groups and failover groups
      “When a secondary failover group is promoted to become the primary failover group, read-write access is available.”
      ↩︎ Replication groups and failover groups
      “Replication and failover groups provide point-in-time consistency for the objects on the target account.”
      ↩︎ Replication groups and failover groups
      “Replication of all other objects is only available for Business Critical Edition (or higher).”
      ↩︎ Replication groups and failover groups
      “The refresh operation for a database includes changes to the objects and data since the previous refresh for that database.”
      ↩︎ Primary and secondary databases, refreshes and parameters
    2. 2.
      “All DML/DDL operations are executed on the primary database.”
      ↩︎ Primary and secondary databases, refreshes and parameters
      “Append-only streams are not supported on replicated source objects.”
      ↩︎ Primary and secondary databases, refreshes and parameters
      “Parameters explicitly set at the database level on secondary databases are not overwritten.”
      ↩︎ Primary and secondary databases, refreshes and parameters
      “Snowflake strongly recommends using the account replication feature to replicate and failover databases.”
      ↩︎ Primary and secondary databases, refreshes and parameters
      “Parameters explicitly set on objects in the primary database overwrite parameters set on objects in the secondary database.”
      ↩︎ Checkpoint
      “Each read-only, secondary database can be refreshed periodically with a snapshot of the primary database”
      ↩︎ Checkpoint
    3. 3.
      “Time Travel and Fail-safe data is maintained independently for a secondary database and is not replicated from a primary database.”
      ↩︎ Time Travel and Fail-safe on a secondary
      “The data retention period for tables in a secondary database begins when the secondary database is refreshed”
      ↩︎ Time Travel and Fail-safe on a secondary
      “Time Travel and Fail-safe data is maintained independently for a secondary database and is not replicated from a primary database.”
      ↩︎ Exam trap 1
      “The refresh operation only replicates the latest version of the table.”
      ↩︎ Prediction

    Ready to test yourself?

    Practise the 18 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.