What you will be able to do
- Distinguish a replication group from a failover group and describe what promotion does
- Identify which replication features need Business Critical Edition
- Predict which objects are missing in a target account after replication or failover
- Explain how a provider shares data with consumers in another region
1.Replication groups and failover groups
Replication copies objects from a source account to one or more target accounts in the same organization. It works across regions and across cloud platforms, and every Snowflake region on AWS, Google Cloud and Azure supports it. The originals are called primary objects. The copies in each target account are secondary objects. Snowflake sorts its regions into region groups: the commercial regions form one group, and the government and Virtual Private Snowflake (VPS) regions fall into different groups from them. You can replicate freely between any regions inside the same region group. Replicating across groups, for example from a commercial region to a government or VPS region, requires contacting Snowflake Support.
Objects are replicated in groups, and the two kinds of group differ in one respect: whether the copy can take over. A replication group is a set of objects in a source account that replicate together as a unit, and its secondary objects are read-only. A failover group is a replication group that can also fail over. Its secondary is also read-only until you promote it to be the primary, at which point it accepts writes. You can promote any target account on the failover group's list of allowed accounts. Both kinds of group keep the replicated objects consistent with each other at a single point in time. Each refresh of a replicated database brings over the changes to its objects and data since the previous refresh.
Choose the group type by what the target account is for. If you only need a read-only copy, such as reporting in another region or a source for sharing, a replication group is enough. If the target must be able to take over writes when the primary region goes down, you need a failover group.
Checkpoint 1 of 4· Check yourself
Your company runs its primary Snowflake account in one region and wants a target account in another region. If the primary region goes down, the target account must take over and accept writes from the applications. What should you configure?
A replication group only ever gives read-only access to its replicated objects. Only a failover group's secondary can be promoted to primary, and only on a target account in the group's allowed list. After promotion, it accepts writes.
“When a secondary failover group is promoted to become the primary failover group, read-write access is available.”Source: docs.snowflake.com
Sources1
2.What each edition can replicate
Edition decides how much you can replicate (Snowflake editions (Standard, Enterprise, Business Critical, VPS)). Every edition can replicate databases and shares, and every edition can use replication groups. Failing over an account requires Business Critical, because failover groups are only available on Business Critical and VPS. The same tier applies to replicating account objects such as users, roles, warehouses, network policies, resource monitors, integrations and account-level parameters.
| Feature | Standard | Enterprise | Business Critical / VPS |
|---|---|---|---|
| Database replication | Yes | Yes | Yes |
| Share replication | Yes | Yes | Yes |
| Replication Group | Yes | Yes | Yes |
| Account object (other than database and share) replication | No | No | Yes |
| Failover Group | No | No | Yes |
Roles bring their grants with them. Replicating roles includes the privileges granted to them, the role hierarchy and, if users are replicated too, the roles granted to users. Two privileges are not carried over: REPLICATE and FAILOVER.
Checkpoint 2 of 4· Check yourself
A Standard Edition account needs a read-only copy of its sales database, and of the shares it provides from that database, in another region for reporting. Nothing needs to fail over. What is required?
Every edition can replicate databases and shares, and every edition can use replication groups. Business Critical is needed only for account objects such as users, roles and warehouses, and for failover groups. A read-only reporting copy needs neither.
“Database replication and share replication are available on all editions.”Source: docs.snowflake.com
Sources1
3.What does and doesn't replicate
Replicating a database includes the objects inside it, but not every kind of object. This matters most at failover time. Unsupported objects are skipped without fuss during replication, so they are simply absent in the target account after you fail over. Check the gaps before you depend on the secondary.
| Object | Replicated? |
|---|---|
| Permanent tables, transient tables, dynamic tables | Yes |
| Temporary tables, external tables, hybrid tables, event tables | No |
| Apache Iceberg™ tables | Only Snowflake-managed; requires external volume replication |
| Views, materialized views, secure views | Yes (both databases must replicate if a view references another database) |
| Stages and pipes | Only through replication and failover groups, not database replication |
| Temporary stages | No |
| Streams, tasks, sequences, UDFs, stored procedures, policies, tags | Yes |
Shares follow a rule of their own. A provider can replicate the shares it created, but inbound shares, meaning shares received from other providers, do not replicate. A consumer that fails over to another region therefore has to get its imported data again in that region. It cannot bring the inbound share along.
The view's dependency is not met. If a view references any object in another database, both databases must be replicated, so add REF to the same group or to another replication or failover group.
Checkpoint 3 of 4· Match them up
You are checking what a secondary account in another region will contain after failover. Match each object to how replication treats it.
Tap a term, then the definition that fits it.
Transient tables replicate, but external tables are skipped without an error. Pipes need a replication or failover group, and Iceberg tables need to be Snowflake-managed with external volume replication. Inbound shares cannot be replicated at all. Only shares the account itself provides can be replicated.
“Replication of inbound shares (shares from providers) is not supported.”Source: docs.snowflake.com
Sources1
4.Sharing data with consumers in another region
Secure Data Sharing gives consumer accounts read-only access to a provider's objects without copying any data (Secure Data Sharing (providers, consumers, shares)). A direct share, however, reaches only accounts in the provider's own region. Because sharing works without copying data, a consumer in another region has no local copy to read from. Replication supplies that copy.
To reach a consumer in another region, the provider sets up replication first:
- Create an account in the consumer's region and link it to the local account in the same organization.
- Have an organization administrator enable replication for the source account and the target account.
- Create a replication group in the source account and add the databases and shares to it.
- Replicate the group to the target region.
- Add the consumer accounts to the secondary shares in that region.
In step 5 the provider is sharing within one region again, using the secondary shares it replicated from the source account. A replication group is all this needs, and database and share replication are available on every edition. A Standard Edition provider can therefore share across regions without upgrading.
Checkpoint 4 of 4· Check yourself
Which approach lets a provider in AWS US East give a consumer account in Azure West Europe read-only access to its shared sales data?
A direct share only reaches accounts in the provider's own region. To reach another region, the provider replicates the databases and shares to its own account there, using a replication group, which every edition supports. It then shares from that account within the region. Consumers cannot replicate inbound shares, and no failover group is needed.
“a Direct Share, in which you directly share specific database objects (a share) to another account in your region,”Source: docs.snowflake.com
Sources
(3)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“Replication is supported across regions and across cloud platforms.”
↩︎ Replication groups and failover groups“Replication groups provide read-only access for the replicated objects.”
↩︎ 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“Customers can replicate across all regions within a region group.”
↩︎ Replication groups and failover groups“from a Snowflake commercial region to a Snowflake government or Virtual Private Snowflake region”
↩︎ Replication groups and failover groups“Note that some replication features are only available for Business Critical Edition (or higher).”
↩︎ What each edition can replicate“The REPLICATE and FAILOVER privileges are not replicated.”
↩︎ What each edition can replicate“Objects that are not supported for replication are skipped during replication and won’t be available in the target account after failover.”
↩︎ What does and doesn't replicate“If a view references any object in another database (for example, table columns, other views, UDFs, or stages), both databases must be replicated.”
↩︎ What does and doesn't replicate“A failover group is a replication group that can also fail over.”
↩︎ Exam trap 1“Replication of inbound shares (shares from providers) is not supported.”
↩︎ Exam trap 2“Replication of all other objects is only available for Business Critical Edition (or higher).”
↩︎ Prediction“Database replication and share replication are available on all editions.”
↩︎ Checkpoint“Replication of inbound shares (shares from providers) is not supported.”
↩︎ Checkpoint - 2.
“directly share specific database objects (a share) to another account in your region”
↩︎ Sharing data with consumers in another region“With Secure Data Sharing, no actual data is copied or transferred between accounts.”
↩︎ Sharing data with consumers in another region“a Direct Share, in which you directly share specific database objects (a share) to another account in your region,”
↩︎ Checkpoint - 3.
“you must create an account in a region where you wish to share data”
↩︎ Sharing data with consumers in another region“Create a replication group and add databases and shares.”
↩︎ Sharing data with consumers in another region“adding one or more consumer accounts to the secondary shares that you replicated from the source account”
↩︎ Sharing data with consumers in another region