This domain is about 10% of the exam, roughly 10 of its 100 questions.
Every point below comes from Snowflake's official documentation; each section lists its sources.
Domain 5 · Overview
This domain is about 10% of the exam, roughly 10 of its 100 questions.
Every point below comes from Snowflake's official documentation; each section lists its sources.
Up next: Explain data collaboration and protection · 11 steps + check · 7 min
Domain 5 · Topic 1 of 3
Step 1 of 11
Think first How do Time Travel, Fail-safe, cloning, sharing and replication each protect or share data, and when would you reach for each one?
Why it matters: Questions describe a recovery, sharing or disaster-recovery need and ask which feature, limit or command fits it.
Time Travel and Fail-safe protect an object's history, one after the other. Secure Data Sharing gives other accounts read-only access without copying data. Replication and failover keep copies in other accounts so you can switch over.
Step 2 of 11
| Term | Meaning |
|---|---|
| Retention period | The length of an object's Time Travel window: 1 day as standard, 0 to 90 days for permanent objects. |
| Fail-safe | A fixed 7-day window after Time Travel when only Snowflake can recover data. |
| Share | An object a provider creates to give consumer accounts read-only access to its data. |
| Primary database | The database where all changes run; secondary copies in other accounts refresh from it. |
| Failover group | A group of objects replicated together that a target account can promote to primary. |
Step 3 of 11
Every account gets 1 day of Time Travel by default. Permanent databases, schemas and tables can keep history for 0 to 90 days on Enterprise Edition and higher. You cannot turn Time Travel off for an account. An ACCOUNTADMIN can still set DATA_RETENTION_TIME_IN_DAYS to 0 at account level.
Exam trap Setting an object's retention to 0 does not always remove its history. If
MIN_DATA_RETENTION_TIME_IN_DAYSis set on the account, the larger of the two values applies.
Step 4 of 11
AT or BEFORE picks a point in time three ways. Use TIMESTAMP for a moment, OFFSET for a number of seconds back, or STATEMENT with a query ID. You can also clone an object as it was at that point. Such a clone leaves out external tables and internal stages.
Exam trap A historical clone of a schema will not bring back its internal stages or external tables; those object types are skipped.
Step 5 of 11
Fail-safe adds 7 days that you cannot change. The window opens right after the Time Travel period ends. It exists for Snowflake to recover data lost in extreme operational failures. A recovery can take several hours or several days.
Time Travel and Fail-safe compared
| Feature | Time Travel | Fail-safe |
|---|---|---|
| Length | 1 day by default, up to 90 days for permanent objects | Fixed 7 days, not configurable |
| Who recovers data | You, with AT or BEFORE queries | Only Snowflake |
| When it is available | Enabled automatically for all accounts | Only after the Time Travel period ends |
Exam trap Fail-safe is not a self-service backup. You cannot recover from it yourself; only Snowflake uses it after extreme failures, and recovery is slow.
Step 6 of 11
Sharing copies no data between accounts. Shared data adds nothing to the consumer's storage bill. The consumer pays only for the warehouses that query it. A consumer can accept many shares but creates just 1 database from each share. Creating a share needs ACCOUNTADMIN or the global CREATE SHARE privilege.
Exam trap Consumers cannot change shared objects. They cannot insert rows, modify tables or drop objects, because everything shared is read-only.
Step 7 of 11
Share secure views or secure UDFs, not raw tables. Snowflake strongly recommends this so sensitive data stays hidden from consumer accounts. Before sharing, test what a consumer will see. Set the session parameter SIMULATED_DATA_SHARING_CONSUMER to that consumer's account, then query the secure view.
Step 8 of 11
All changes run on the primary; secondaries are read-only. You can enable replication on any permanent or transient database, which makes it the primary. Secondary copies can live in other accounts of the same organization, in other regions or clouds. Each refresh brings a snapshot of data and DDL. With scheduled refreshes, a secondary lags at most 2x the refresh interval.
Step 9 of 11
Stages, pipes and grants need account replication. Database replication copies data and object definitions, but some things stay behind. A database created from a share cannot be replicated at all. Replicating from Business Critical to a lower edition is blocked unless you add IGNORE EDITION CHECK.
Database replication and account replication compared
| Feature | Database replication | Account replication |
|---|---|---|
| Stages and pipes | Not supported | Supported |
| Privilege grants, including future grants | Not replicated | Needed to replicate them |
Exam trap A secondary database does not arrive with the primary's grants. Privileges on its objects, including future grants, are not copied with the data.
Step 10 of 11
Run the promote command in the target account. Replication and failover groups copy a set of objects with point-in-time consistency. To fail over, a role with the FAILOVER privilege signs in to the target account. Snowflake blocks the promotion while a refresh is running. Client Redirect gives clients one connection URL that can point to another account.
Example: Promotes a secondary failover group to primary, run while signed in to the target account.
ALTER FAILOVER GROUP my_fg PRIMARY;
PRIMARY: makes this target account serve as the source accountExam trap Failover suspends scheduled refreshes on every secondary failover group. They stay off until RESUME runs in each target account.
Step 11 of 11
ALTER FAILOVER GROUP … RESUME.Sources: Understanding and viewing Fail-safe | Snowflake Documentation · About Secure Data Sharing | Snowflake Documentation · Introduction to business continuity & disaster recovery | Snowflake Documentation · Understanding & using Time Travel | Snowflake Documentation · Use secure objects to control data access | Snowflake Documentation · Introduction to database replication across multiple accounts | Snowflake Documentation · Failing over account objects | Snowflake Documentation
Check
Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.
Up next: Explain Snowflake's data sharing capabilities · 9 steps + check · 7 min
Domain 5 · Topic 2 of 3
Step 1 of 9
Think first When would a provider choose a direct share, a listing, a reader account or a clean room to share data?
Why it matters: Questions describe a sharing need and ask which account type, share method, privilege or limit applies to it.
A provider places database objects in a share, and consumer accounts in the same region query them. Reader accounts are consumers the provider creates and pays for. Listings reach other regions, and clean room partners return aggregated results without directly querying raw data.
Step 2 of 9
| Term | Meaning |
|---|---|
| Provider | The account that shares its data with other accounts. |
| Consumer | The account that receives and queries the shared data. |
| Share | A named object that holds everything needed to share a database. |
| Reader account | An account the provider creates, owns and pays for, which reads data from that provider only. |
| Database role | A role inside a database, granted to a share, that exposes a subset of its objects. |
Step 3 of 9
A provider shares data with consumers through a share. The share is a named object that carries everything needed to expose a database. When the provider adds an object to the share, every consumer can use it at once.
Exam trap Adding a table to a share needs no refresh or new share: all consumers see it immediately.
Step 4 of 9
Database roles let consumers give groups different subsets of a share. Without them, a consumer grants the single IMPORTED PRIVILEGES privilege, which opens every shared object. Direct grants can combine several databases, but only from one account. A shared database role takes no future grants.
Two ways to put objects into a share
| Feature | Database roles | Privileges granted directly |
|---|---|---|
| Consumer access | Groups can get different subsets of objects | IMPORTED PRIVILEGES gives access to every object |
| Several databases in one share | Not possible: the REFERENCE_USAGE privilege that multi-database shares need cannot go to a database role |
Allowed when the databases belong to the same account |
Exam trap A share that spans several databases cannot use database roles, because a database role cannot receive the
REFERENCE_USAGEprivilege.
Step 5 of 9
The provider creates, owns and pays for each reader account. Use ACCOUNTADMIN or a role with the global CREATE ACCOUNT privilege. A reader account can consume data only from the provider that created it. By default, a provider can create 75 reader accounts in total.
Example: Creates a reader account with its first administrator user.
USE ROLE ACCOUNTADMIN;
CREATE MANAGED ACCOUNT my_reader_acct
ADMIN_NAME = my_admin,
ADMIN_PASSWORD = 'my_password',
TYPE = READER;
TYPE = READER: makes the managed account a reader accountStep 6 of 9
A new reader account has one admin user and no data. The admin creates a database from each share, and queries need a virtual warehouse. Its credits are billed to the provider with no monthly cap. Set a resource monitor to limit them.
Example: Turns a share from the provider into a database the reader account can query.
CREATE DATABASE my_shared_db
FROM SHARE my_provider_acct.my_share;
Exam trap A reader account cannot load or change data:
INSERT,UPDATE,DELETE,MERGEandCOPY INTO <table>are not allowed there.
Step 7 of 9
A direct share reaches only accounts in the same region. To reach another region or cloud platform, publish a listing that uses cross-cloud auto-fulfillment. Resharing works differently for the two methods.
Direct shares and listings compared
| Feature | Direct share | Listing |
|---|---|---|
| Reach | Accounts in the same region only | Other regions and clouds through cross-cloud auto-fulfillment |
| Allowing resharing | Possible for views, tables and dynamic tables only | Set resharing.enabled to true in the manifest |
Exam trap A direct share cannot reach an account in another region, even on the same cloud platform. That consumer needs a listing with cross-cloud auto-fulfillment.
Step 8 of 9
Collaborators return aggregated results but cannot query raw data directly. Each role has its own edition needs, and the party that runs an analysis pays for it. Trial accounts cannot use Snowflake Data Clean Rooms.
Exam trap Only data providers need Enterprise Edition. Standard Edition is enough for clean room owners and analysis runners.
Step 9 of 9
INSERT, UPDATE, DELETE, MERGE or COPY INTO <table>.Sources: About Secure Data Sharing | Snowflake Documentation · Manage reader accounts | Snowflake Documentation · About Snowflake Data Clean Rooms | Snowflake Documentation · Share secure database objects | Snowflake Documentation · Configure a reader account | Snowflake Documentation · Using resharing as a provider | Snowflake Documentation · Overview of Snowflake Data Clean Rooms | Snowflake Documentation
Check
Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.
Up next: Share data using the Snowflake Marketplace and listings · 9 steps + check · 6 min
Mixed quiz
10 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Flashcards
6 cards with this domain's key facts. Flip each one and check what you knew. No account needed.
Thank you. It goes straight to the people who write these notes.
Free to start: the study path, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.