CertSafari
    Snowflake SnowPro Core Certification (COF-C03)· Lessons

    Domain 5 · Lesson 18/19

    Secure Data Sharing: shares, reader accounts and clean rooms

    Explain Snowflake's data sharing capabilities

    18 min read
    3.33% of exam
    7 sources
    Published 20 Oct 2026
    Docs as of 4 Oct 2026

    What you will be able to do

    • Describe the provider and consumer roles and what a share object records
    • Set up a share with the correct sequence of grants and add consumer accounts
    • Explain what a consumer pays for and why shared data is read-only and live
    • Use secure views, including CURRENT_ACCOUNT() filtering, to control what each consumer sees
    • Decide when to use a reader account, a direct share, a listing or a data clean room
    • State the resharing limits of a direct share

    Key concept

    Share — A named Snowflake object that a provider creates. It records which databases, schemas and objects are granted to it and which consumer accounts may import them. Consumers query the provider's data in place. Nothing is copied.

    1.Providers, consumers and the share object

    Secure Data Sharing lets one Snowflake account give another account live, read-only access to selected database objects, and no data is copied between them. The account that shares the data is the provider. The account that receives it is the consumer. These are roles, not account types. Any full Snowflake account can provide some data and consume other data, and one provider can serve many consumers, including other accounts in its own organization.

    The share sits between them. It is a named object in the provider account. It holds two things: the privileges the provider has granted on its objects, and the list of accounts allowed to use them. A share is not a copy of a database. It is not an export job, and it is not a login into the provider's account. A consumer becomes a consumer by creating a database from the share. Its users then query that database like any other database, and access is controlled by the consumer's own role-based access control.

    Everything about the bill follows from that design. Sharing runs through Snowflake's services layer and metadata store, so shared data takes up no storage in the consumer account and adds nothing to the consumer's storage charges. The consumer still pays for compute, because its own virtual warehouses run the queries against the imported database. No replication fee applies, and the provider does not pay for the consumer's queries. The exception is a reader account, covered below, where the provider pays for everything.

    Every shared object is read-only for the consumer. The consumer cannot insert, update or delete rows in it, and cannot drop it. The provider stays in control the whole time. Updates to shared objects reach consumers immediately, and the provider can revoke access to the share, or to any object in it, at any time.

    Checkpoint 1 of 10· Check yourself

    A provider shares a 5 TB sales database with a partner's full Snowflake account. The partner creates a database from the share and runs daily reports against it on its own warehouse. What does the partner account pay for?

    Checkpoint 2 of 10· Exam question

    A retail analytics team creates a database from a share provided by a supplier. The retail team wants to know what costs to expect on its own Snowflake bill purely from using the shared data. What should it expect?

    Checkpoint 3 of 10· Exam question

    Which statement accurately describes what a Snowflake share is?

    Sources1

    2.Granting objects to a share and adding consumers

    Setting up a share follows the same order every time. Each step depends on the one before it:

    1. Create the share.
    2. Grant USAGE on the database to the share.
    3. Grant USAGE on the schema to the share.
    4. Grant SELECT on each table or secure view you want to expose.
    5. Run ALTER SHARE … ADD ACCOUNTS to name the consumers.

    The container grants come first because a consumer cannot reach a table whose database and schema it has no usage on. SHOW GRANTS TO SHARE lists what has been granted, and SHOW GRANTS OF SHARE lists the accounts on the share and which of them are using it.

    The complete provider flow: create the share, grant database, schema and table privileges, then add two consumer accountssql
    USE ROLE accountadmin; CREATE SHARE sales_s; GRANT USAGE ON DATABASE sales_db TO SHARE sales_s; GRANT USAGE ON SCHEMA sales_db.aggregates_eula TO SHARE sales_s; GRANT SELECT ON TABLE sales_db.aggregates_eula.aggregate_1 TO SHARE sales_s; SHOW GRANTS TO SHARE sales_s; ALTER SHARE sales_s ADD ACCOUNTS=xy12345, yz23456; SHOW GRANTS OF SHARE sales_s;

    Privileges go to the share, never to a role in the consumer account. The provider cannot see the consumer's roles and has no way to grant to them. Ownership of a table never moves to the share either. The provider keeps owning its objects, and the share holds only USAGE and SELECT grants. Instead of granting directly, a provider can also grant privileges to a database role and then grant that database role to the share. Any role can prepare the objects. Creating the share and adding accounts needs ACCOUNTADMIN or a role with the global CREATE SHARE privilege. One share can include objects from several databases, as long as all of them belong to the same provider account.

    Two kinds of change behave differently. New and modified rows in an object that is already shared reach existing consumers immediately. A new object, or one that was dropped and recreated, stays invisible until the provider runs GRANT <privilege> … TO SHARE for it. A nightly job that rebuilds a shared table with CREATE OR REPLACE therefore drops it out of the share every night unless the job also re-grants it.

    Checkpoint 4 of 10· Match them up

    A provider is setting up and auditing a share. Match each command to what it does.

    Tap a term, then the definition that fits it.

    Checkpoint 5 of 10· Exam question

    A data platform team at a provider organization has already run CREATE SHARE and now wants to expose two tables in one schema to a named consumer account. Which sequence correctly finishes this setup?

    Sources231

    3.Secure views decide what each consumer sees

    Sharing a whole database or whole tables needs almost no preparation. Sharing a subset of rows or columns needs secure objects. A secure view hides its definition and base tables from the people who query it. The full comparison is in Standard and secure views. For sharing, the rule is strict: a share accepts only secure views. Adding a standard view to a share returns an error. To filter or limit what consumers can access, use secure views, secure materialized views or secure UDFs.

    One secure view can show every consumer a different slice of the same table. The view joins the data to a mapping table of account names and filters on CURRENT_ACCOUNT(). When a consumer queries it, the function returns that consumer's own account, so the consumer gets only the rows mapped to it. One share can then serve many consumers without one view per customer.

    Test the filter before you share it. The SIMULATED_DATA_SHARING_CONSUMER session parameter lets a provider query a secure view as if it were one of the target consumer accounts. It works with secure views and secure materialized views, but not with secure UDFs.

    Simulate querying a secure view as consumer account xy12345sql
    ALTER SESSION SET SIMULATED_DATA_SHARING_CONSUMER = xy12345;

    Checkpoint 6 of 10· Check yourself

    One provider needs a single share to serve 40 customer accounts, and each customer must see only its own rows of a shared orders table. Which design does that?

    Sources34

    4.Consuming a share, and why consumers cannot pass it on

    On the consumer side, a share turns into a read-only database. A consumer can import as many shares as it likes, but it can create only one database from each share. Users cannot see that database until someone grants it to their roles. The role that owns the imported database, or a role with MANAGE GRANTS, grants IMPORTED PRIVILEGES on it to roles in the consumer account. If the provider grouped objects into database roles, the consumer grants those database roles to its own roles instead.

    A consumer creates a database from a provider's sharesql
    CREATE DATABASE c1 FROM SHARE provider1.share1;

    On the exam, the rule to remember is that a consumer cannot reshare data it received through a direct share. The documentation is more precise: a direct share can be reshared only within the consumer's own organization. Sending the data to another company is the provider's decision, made through its own share or listing. Even within an organization, a consumer cannot just re-grant an imported object. The consumer reshares by building a view on the imported data, and that view must be owned by the role that creates the outgoing share.

    Checkpoint 7 of 10· Check yourself

    Your company's account imports a supplier's table through a direct share. A partner at another company, in a separate Snowflake organization, now wants that same data. What is the supported way to get it to them?

    Sources153

    5.Reader accounts for consumers without Snowflake

    Data sharing works only between Snowflake accounts. That leaves a gap: a partner who has no Snowflake account and does not want to become a customer. A reader account fills it. The provider creates the reader account, owns it and manages it, and then shares data to it with ordinary shares, the same way as to any consumer. The partner signs no licensing agreement with Snowflake and has no setup or usage costs.

    The provider pays for that convenience in three ways:

    • Credits. Every credit used by warehouses in the reader account is billed to the provider, and there is no monthly cap. A resource monitor on the reader account's warehouse is the way to limit the cost.
    • Support. The reader account has no support agreement of its own, so its users bring questions to the provider. The provider handles them, or opens a Snowflake Support ticket and passes the answer back.
    • Permissions. Creating reader accounts takes ACCOUNTADMIN or a role with the global CREATE ACCOUNT privilege.
    Creating a reader account (a managed account of TYPE = READER)sql
    CREATE MANAGED ACCOUNT <account_name>
        ADMIN_NAME = <username> , ADMIN_PASSWORD = '<password>' ,
        TYPE = READER;

    A reader account is built for querying, and its limits follow from that. It can consume data only from the provider that created it. It uses the provider's Snowflake edition and is created in the provider's region. Its users cannot load or change data, and INSERT, UPDATE, DELETE, MERGE, COPY INTO <table>, CREATE STAGE and CREATE SHARE all fail. They can still work with the data, for example by creating materialized views. A provider can create up to 75 reader accounts by default. Dropping one deletes everything in it and cannot be undone.

    Checkpoint 8 of 10· Fill the gap

    Which keyword completes this statement so that it creates an account for a partner who has no Snowflake account?

    CREATE  ?  ACCOUNT <account_name>
        ADMIN_NAME = <username> , ADMIN_PASSWORD = '<password>' ,
        TYPE = READER;

    Sources16

    6.Direct shares among the other ways to share

    Everything above describes a direct share: the provider grants specific objects to a share and names the consumer accounts in its own region. It is the simplest option, and it carries only data. It has no descriptive metadata, and nobody can find it unless the provider adds their account. Snowflake offers three other ways to share, and each adds something a direct share lacks.

    Sharing options compared
    OptionWhat it deliversWhen it wins
    Direct shareSpecific database objects shared to named accounts in your regionA few known consumers in the same region
    ListingA share plus extra metadata, offered as a data productMany consumers, or consumers who need to find and evaluate the data
    Data exchangeA share offered to a group of accounts you set up and manageA fixed group of partners who share the same data
    Clean roomShared data where you control which queries may runJoint analysis where neither party may see the other's raw rows

    A provider can add as many accounts to a share as it wants. Once the list of consumers grows long, though, Snowflake points providers to a listing or a data exchange instead. A direct share can also be converted to a listing later. Discovery, monetization and distribution across regions are covered in Listings and the Snowflake Marketplace.

    Checkpoint 9 of 10· Match them up

    Each scenario below needs a different way to share data. Match each sharing option to the scenario it fits best.

    Tap a term, then the definition that fits it.

    Sources1

    7.Data clean rooms: analysis without exposing raw data

    A share shows the consumer every row it is granted. A data clean room does not. Parties put their data into a collaboration, but they can run only approved queries against it. Two companies can match their customer lists, for example, without either one reading the other's table. Results are either returned directly or written to a chosen collaborator's account. Policies on the shared data, such as the ones in Privacy policies and privacy budgets, can keep each result aggregate enough to stay private.

    A YAML specification defines each collaboration. It lists the collaborators, the roles each one holds, and the resources available to them. Clean rooms have three collaboration roles:

    • Owner. Creates the collaboration, invites collaborators, assigns roles, decides who can share data with whom, and tears the clean room down. Each collaboration has exactly one owner. Being owner does not make an account an analysis runner or a data provider, and it gives no extra run privileges.
    • Data provider. Adds data offerings and decides which analysis runners can use them.
    • Analysis runner. Runs permitted templates on permitted data offerings, and pays for the compute those analyses use.

    One collaborator can hold several roles. Every collaborator, the owner included, must join the collaboration before anything they registered can be used.

    Clean rooms work with three kinds of resources:

    • Templates are the approved queries: JinjaSQL that analysis runners fill in with values at run time.
    • Data offerings are packages of one or more tables. Each is a live view of the source data, not a snapshot, and its specification controls which columns are exposed and which policies apply.
    • Code specs are custom Python functions or procedures that templates can call.

    Edition limits matter here. Data providers need Enterprise Edition, while owners and analysis runners can use Standard Edition. Trial accounts cannot use clean rooms at all.

    Checkpoint 10 of 10· Match them up

    In a clean room collaboration between two retailers, each account is given one collaboration role in the YAML specification. Match each role to what it allows that account to do.

    Tap a term, then the definition that fits it.

    Sources17

    Sources

    (7)

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

    1. 1.
      “the account that shares data is called a provider, and the account that is a recipient of the data is called a consumer.”
      ↩︎ Providers, consumers and the share object
      “With Secure Data Sharing, no actual data is copied or transferred between accounts.”
      ↩︎ Providers, consumers and the share object
      “The only charges to consumers are for the compute resources (i.e. virtual warehouses) used to query the imported data.”
      ↩︎ Providers, consumers and the share object
      “All database objects shared between accounts are read-only”
      ↩︎ Providers, consumers and the share object
      “Any full Snowflake account can both provide and consume imported data.”
      ↩︎ Providers, consumers and the share object
      “New objects added to a share become immediately available to all consumers, providing real-time access to imported data.”
      ↩︎ Granting objects to a share and adding consumers
      “You can consume as many shares as you want from data providers, but you can only create one database per share.”
      ↩︎ Consuming a share, and why consumers cannot pass it on
      “Data sharing is only supported between Snowflake accounts.”
      ↩︎ Reader accounts for consumers without Snowflake
      “a Direct Share, in which you directly share specific database objects (a share) to another account in your region,”
      ↩︎ Direct shares among the other ways to share
      “a Listing, in which you offer a share and additional metadata as a data product to one or more accounts,”
      ↩︎ Direct shares among the other ways to share
      “If you want to provide a share to many accounts, you might want to use a listing or a data exchange.”
      ↩︎ Direct shares among the other ways to share
      “a clean room, in which you can share data and control which queries can be run against your data.”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “Shares are named Snowflake objects that encapsulate all of the information required to share a database.”
      ↩︎ Key concept
      “a Data Exchange, in which you set up and manage a group of accounts and offer a share to that group,”
      ↩︎ Checkpoint
    2. 2.
      “Use ALTER SHARE to add one or more accounts to the share.”
      ↩︎ Granting objects to a share and adding consumers
    3. 3.
      “require the ACCOUNTADMIN role or a role granted the global CREATE SHARE privilege.”
      ↩︎ Granting objects to a share and adding consumers
      “only secure views are supported in shares at this time. If a standard view is added to a share, Snowflake returns an error.”
      ↩︎ Secure views decide what each consumer sees
      “you can decide to use a single share to partition shared data for different consumer accounts”
      ↩︎ Secure views decide what each consumer sees
      “The contextual values returned by these functions have no relevance in a consumer’s account and will cause the object to fail when queried/used.”
      ↩︎ Secure views decide what each consumer sees
      “The SIMULATED_DATA_SHARING_CONSUMER session parameter only supports secure views and secure materialized views, but does not support secure UDFs.”
      ↩︎ Secure views decide what each consumer sees
      “A direct share is enabled for resharing within the consumer’s organization only.”
      ↩︎ Consuming a share, and why consumers cannot pass it on
      “only secure views are supported in shares at this time. If a standard view is added to a share, Snowflake returns an error.”
      ↩︎ Exam trap 1
      “A new object created or recreated in a database granted to a share is not automatically available to consumers.”
      ↩︎ Exam trap 3
      “A new object created or recreated in a database granted to a share is not automatically available to consumers.”
      ↩︎ Prediction
      “SHOW GRANTS OF SHARE … — lists all accounts for the share and indicates the accounts that are using the share”
      ↩︎ Checkpoint
      “Do not include secure objects that use the CURRENT_USER or CURRENT_ROLE functions in their definition.”
      ↩︎ Checkpoint
    4. 4.
      “CURRENT_ACCOUNT() gives your account access to the AAPL and MSFT data.”
      ↩︎ Secure views decide what each consumer sees
    5. 5.
      “granting the IMPORTED PRIVILEGES privilege on an imported database to one or more roles in your account.”
      ↩︎ Consuming a share, and why consumers cannot pass it on
      “the reshared view must be owned by the role that creates the outgoing share from your account.”
      ↩︎ Consuming a share, and why consumers cannot pass it on
    6. 6.
      “which assumes all responsibility for credit charges incurred by users in the reader account.”
      ↩︎ Reader accounts for consumers without Snowflake
      “To limit usage, set up a resource monitor for the warehouse.”
      ↩︎ Reader accounts for consumers without Snowflake
      “a reader account can only consume data from the provider account that created it.”
      ↩︎ Reader accounts for consumers without Snowflake
      “The reader account utilizes the same Snowflake Edition as the provider account and is created in the same region.”
      ↩︎ Reader accounts for consumers without Snowflake
      “By default, the total number of reader accounts a provider can create is 75.”
      ↩︎ Reader accounts for consumers without Snowflake
      “which assumes all responsibility for credit charges incurred by users in the reader account.”
      ↩︎ Exam trap 2
    7. 7.
      “Template: A JinjaSQL query that analysis runners can execute in the collaboration.”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “A data offering is a live view of the source data, not a snapshot”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “The analysis runner bears the cost of the analysis.”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “Data Providers must use Snowflake Enterprise Edition. Owners and Analysis runners can use Standard Edition.”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “All collaborators, including the owner, must join the collaboration.”
      ↩︎ Data clean rooms: analysis without exposing raw data
      “An owner isn’t automatically an analysis runner or a data provider, and doesn’t have any elevated run privileges.”
      ↩︎ Exam trap 4
      “An owner isn’t automatically an analysis runner or a data provider, and doesn’t have any elevated run privileges.”
      ↩︎ Checkpoint

    Ready to test yourself?

    Practise the 13 questions on this subdomain.

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