CertSafari
    Snowflake SnowPro Advanced: Administrator (ADA-C02)· Lessons

    Domain 6 · Lesson 23/24

    Snowflake failover, failback and client redirect

    Manage data replication.

    9 min read
    4.5% of exam
    4 sources
    Published 20 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Promote a secondary failover group safely, including when a refresh is still running
    • Plan failback and predict what a promoted account contains, schema by schema
    • Redirect client connections through a connection object
    • Design a disaster recovery plan that includes backups replication cannot provide

    1.Promoting a secondary failover group

    Failover makes a target account the new source account. You promote its secondary failover groups to primary, and the objects in them become writable there. Everything else depends on a failover group already being in place: replication enabled on both accounts, a primary failover group in the source, and a scheduled secondary in the target. Failover groups need Business Critical edition or higher. Promotion needs the FAILOVER privilege on the group. That privilege is never replicated, so grant it in the target account before you need it.

    Run in the target account, once per secondary failover group to promotesql
    ALTER FAILOVER GROUP myfg PRIMARY;

    The statement itself is blunt: it returns an error while a refresh of that group is running, so the handling of in-flight refreshes belongs to the procedure you pick before you issue it.

    Checkpoint 1 of 6· Fill the gap

    You are signed in to the target account with a role that has the FAILOVER privilege. Which keyword completes the statement that promotes the secondary failover group so its objects become writable?

    ALTER FAILOVER GROUP myfg  ? ;

    Sources12

    2.After failover: refreshes, schemas, tasks and failback

    Failover reverses the roles of the two accounts. Objects in the promoted groups become writable in the new primary. In the old primary they become read-only, because that account is now a secondary. Every secondary failover group also stops its scheduled refreshes. You have to run ALTER FAILOVER GROUP myfg RESUME; in each target account, including the former primary, or no secondary receives changes again.

    The new primary holds what the last completed refresh delivered and nothing newer. Suppose a schema such as ORDERS_2025 was created on the old primary after the last refresh and before the outage. It never reached the target, so it does not exist on the promoted account. When the old primary becomes a secondary and is refreshed, it becomes a replica of the new primary. Failing back is just failover in the other direction. Once the original account is current again, promote its groups and connections, then resume refreshes on the side that is now secondary. With failover groups you can also choose which schemas in a database replicate, so a schema left out of the group is not on the target at all.

    Per-object behaviour after promotion, such as Automatic Clustering restarting on the new primary, follows the object rules already covered. The runbook step that remains is to check task state, because a task that arrived suspended stays suspended until someone resumes it, as described in Serverless vs user-managed tasks.

    Checkpoint 2 of 6· Check yourself

    A day after you failed over myfg from myaccount1 to myaccount2, writes made on myaccount2 still are not showing up in myaccount1, which is now the secondary. The primary group still has REPLICATION_SCHEDULE = '10 MINUTE'. What is the fix?

    Sources132

    3.Redirecting clients with connection objects

    Failing over the data does not move the applications. Clients still point at whichever account URL they were given. Client redirect solves this with a connection object, which has an organization-level connection URL such as myorg-myconnection.snowflakecomputing.com. That URL does not belong to any one account, unlike the account-specific identifiers in Account names vs account locators. Point applications, BI tools and drivers at the connection URL, and promoting the connection moves them all at once.

    Set it up the same way as a group. Create a primary connection in the source account, allow failover to the target accounts, and create a secondary connection in each target. A connection carries no data and lists no databases, roles or users. It only decides which account the URL resolves to, so you still need a failover group alongside it.

    Secondary connection in a target account, linked to the primary connectionsql
    CREATE CONNECTION myconnection AS REPLICA OF MYORG.MYACCOUNT1.MYCONNECTION;

    During a bulk failover you choose which connections to promote along with the failover groups. Once promoted, a connection resolves to the new primary account, and clients that reconnect land on the account where the data is now writable. Promote the data and the connection at the same moment. If you promote the data alone, writes go to a read-only account. If you promote the connection alone, users reach a primary whose groups were never promoted.

    Checkpoint 3 of 6· Check yourself

    Your BI tools connect through myorg-myconnection.snowflakecomputing.com. During a bulk failover from myaccount1 to myaccount2 you promoted failover group myfg but did not select the connection. Now the tools' write jobs fail. What is wrong, and what fixes it?

    Checkpoint 4 of 6· Exam question

    A company on Business Critical edition wants to replicate databases, roles, users and warehouses to a second account, and be able to promote that account if the primary region fails. Which object should the administrator create?

    Sources41

    4.Designing the disaster recovery plan and its backups

    A workable disaster recovery plan has these parts:

    1. Enable replication on every account involved.
    2. Group objects into failover groups, using more than one when some databases must refresh more often than others.
    3. Create secondaries in one or more target accounts in other regions or clouds.
    4. Set a schedule short enough for the data loss you can accept.
    5. Create a connection for clients.
    6. Grant FAILOVER and REPLICATE in each target to the roles that will run the plan.
    7. Rehearse a failover, including resuming refreshes and tasks and failing back.

    The target has to be rebuilt to the source's standard, not only filled with data. Tri-Secret Secure and private connectivity have to be enabled there yourself. Storage integrations need a new trust relationship with your cloud storage. API integrations need access to the remote service granted again. A failover that lands on an account whose integrations cannot reach storage is not a recovery.

    Replication is not a backup, because it copies mistakes as faithfully as it copies data. A table dropped or overwritten on the primary disappears from every secondary at the next refresh. A CREATE OR REPLACE on the source becomes a drop followed by a create on the target, and these two steps do not run atomically, so the object can briefly disappear there. Recovering from a bad change uses features that keep history, such as Time Travel retention. Snowflake backups are available on every edition, and backup sets and backup policies are replicated with their database. Retention lock and legal holds on backups need Business Critical.

    Checkpoint 5 of 6· Put it in order

    You are building a disaster recovery setup for a Business Critical account from scratch. Put these steps in the order they have to happen.

    1. 1.Refresh the secondaries and keep them current on a replication schedule
    2. 2.Create a secondary failover group as a replica in each target account
    3. 3.During an outage, promote the secondary with ALTER FAILOVER GROUP … PRIMARY, then RESUME refreshes on the remaining secondaries
    4. 4.Create a primary failover group in the source account that lists the objects and the allowed target accounts
    5. 5.An organization administrator enables replication on the source and target accounts

    Checkpoint 6 of 6· Check yourself

    An engineer accidentally runs DROP TABLE on a critical table in db1 on the primary account. db1 is in a failover group that refreshes a secondary in another region every 10 minutes. What should the recovery plan rely on?

    Sources132

    Sources

    (4)

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

    1. 1.
      “Snowflake prevents failover if a refresh operation is in progress.”
      ↩︎ Promoting a secondary failover group
      “Those objects become read-only on the account that formerly was the primary and is now a secondary account.”
      ↩︎ After failover: refreshes, schemas, tasks and failback
      “On failover, scheduled refreshes on all secondary failover groups are suspended.”
      ↩︎ After failover: refreshes, schemas, tasks and failback
      “After the failover, those connections connect to the account that you’re promoting to be the new primary account.”
      ↩︎ Redirecting clients with connection objects
      “You can optionally divide the replicated objects across multiple failover groups, for example if some databases should be replicated more frequently than others.”
      ↩︎ Designing the disaster recovery plan and its backups
      “ALTER FAILOVER GROUP … RESUME must be executed in each target account with a secondary failover group to resume automatic refreshes.”
      ↩︎ Exam trap 1
      “canceling a refresh operation in the SECONDARY_DOWNLOADING_METADATA or SECONDARY_DOWNLOADING_DATA phase might result in an inconsistent state on the target account”
      ↩︎ Exam trap 2
      “Create at least one secondary failover group (replica) of each primary failover group in one or more secondary accounts.”
      ↩︎ Checkpoint
    2. 2.
      “Grants the ability to promote a secondary failover group to serve as primary failover group.”
      ↩︎ Promoting a secondary failover group
      “Snowflake begins Automatic Clustering of the tables in this database while simultaneously suspending the monitoring of clustered tables in the previous primary database.”
      ↩︎ After failover: refreshes, schemas, tasks and failback
      “the object might disappear briefly from the target account while it is being recreated as a new object.”
      ↩︎ Designing the disaster recovery plan and its backups
    3. 3.
      “If you use failover groups, you can choose which schemas within a database are replicated.”
      ↩︎ After failover: refreshes, schemas, tasks and failback
      “When you replicate a storage integration, you must establish a new trust relationship for your cloud storage in the target accounts.”
      ↩︎ Designing the disaster recovery plan and its backups
      “Backups are available for all Snowflake editions.”
      ↩︎ Designing the disaster recovery plan and its backups
      “The refresh operation for a database includes changes to the objects and data since the previous refresh for that database.”
      ↩︎ Checkpoint
    4. 4.
      “Execute the CREATE CONNECTION … AS REPLICA OF command to create a secondary connection.”
      ↩︎ Redirecting clients with connection objects

    Ready to test yourself?

    Practise the 16 questions on this subdomain.

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