Secure Data Sharing and Data Clean Rooms
SnowPro Core · Lesson 26 of 27 · 3:18:22
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SnowPro Core Certification exam (COF-C03). In this lesson: Secure Data Sharing, shares, reader accounts and resharing, and data clean rooms. Follows Foxglove Apparel, a fictional online clothing retailer. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Three partners, three needs
Foxglove's shipping partner has a Snowflake account and wants live order data, a small supplier has no Snowflake account at all, and a marketing agency wants to measure how their customer lists overlap. Nobody wants nightly file exports, or copies that drift out of date. Snowflake answers each need with a different sharing option.
How secure data sharing works
Secure Data Sharing lets a provider share selected objects, such as databases, tables, views, and functions, with other Snowflake accounts. No data is copied or moved: sharing works through the services layer and the metadata store. Shared data takes no storage in the consumer account, and the consumer pays only for the compute it uses to query it. Shared objects are read-only for the consumer, and new or changed rows are visible to the consumer immediately.
Shares
A share is a named object: the provider grants privileges on a database and its objects to the share, directly or through a database role, then adds consumer accounts. Creating a share requires ACCOUNTADMIN, or a role with the CREATE SHARE privilege, and Snowflake strongly recommends sharing secure views and secure functions to protect sensitive data. The consumer creates a read-only database from the share, and grants IMPORTED PRIVILEGES on it to its own roles. An object that is created, or recreated, in a shared database is not shared until the provider grants it to the share.
Providers, consumers, and reader accounts
Any full Snowflake account can be both a provider and a consumer, and a direct share works with accounts in the same region. For a consumer without a Snowflake account, the provider creates a reader account, which it owns, manages, and pays for, including every credit its warehouses use. A reader account can only consume data from the provider that created it, and it cannot load new data or run statements such as INSERT. So the provider should put a resource monitor on the reader account's warehouses, and it supports the users of that account itself.
Resharing
With a direct share, a consumer can reshare the data only within its own organization. With listings, a provider can allow resharing: a resharer builds new views on the incoming data, and shares them with other accounts, in the same region or in others. Resharing can go through several hops, and when it crosses regions, Snowflake replicates the data automatically, at the resharer's cost. The provider can turn resharing on or off for each listing, and control how governance policies apply downstream.
Data clean rooms
A Snowflake Data Clean Room is a secure environment where several collaborators bring data that can only be queried through templates added to the collaboration. Each analysis runs inside the clean room, and collaborators get aggregated results and insights, but they cannot query each other's raw data. An owner creates the collaboration, data providers offer tables and views, and analysis runners run each approved analysis. Data providers need Enterprise Edition, and the collaborators can review and approve each new template or data source.
Choosing a sharing option
A direct share gives live, read-only access to another account in the same region. A reader account serves a consumer that has no Snowflake account, at the provider's expense. A listing reaches other regions and the Marketplace, with descriptions, usage metrics, and optional charges. And a data clean room supports joint analysis, without revealing raw data.
Recap
Let's recap. Secure Data Sharing copies nothing, and the consumer pays only for compute, on read-only data that stays current. A share holds grants on objects, ideally secure views, and the consumer creates a database from it. Reader accounts serve consumers without Snowflake, and the provider owns them and pays for them. Direct shares can be reshared only within the consumer's organization, while listings can allow resharing across regions. And data clean rooms return aggregated results, never the raw data.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Foxglove shares an orders database with its shipping partner, which has its own Snowflake account in the same region. What will the partner pay for?
- A copy of the data in its own account
- Storage for the shared data
- Only the compute it uses to query
- A transfer fee for each share
Show the answer
Only the compute it uses to query
The consumer pays only for the warehouse compute it uses to query the shared data. “A copy of the data in its own account” is wrong, because no data is copied into the partner's account. “Storage for the shared data” is wrong, because shared data takes no storage in the consumer account. And “A transfer fee for each share” is wrong, since a share has no transfer fee of its own.
Foxglove wants to share weekly sales data with a small supplier that has no Snowflake account. What should Foxglove do, and who pays for the supplier’s queries?
- A reader account; Foxglove pays its credits
- A reader account; the supplier pays its credits
- A public listing; the supplier gets it
- The supplier’s email added to a share
Show the answer
A reader account; Foxglove pays its credits
Foxglove creates a reader account for the supplier, and Foxglove pays for every credit that account uses. “A reader account; the supplier pays its credits” is wrong, because the provider owns the reader account and pays its charges. “A public listing; the supplier gets it” is wrong, because getting a listing requires a Snowflake account. And “The supplier’s email added to a share” is wrong, because a share is granted to accounts, not to email addresses.
Foxglove and a marketing agency want to count their customers in common, but neither side may see the other’s customer list. Which option fits?
- A direct share in each direction
- A reader account for the agency
- A shared secure view of customers
- A Snowflake Data Clean Room
Show the answer
A Snowflake Data Clean Room
A clean room runs an approved analysis on both datasets, and returns only aggregated results, such as the size of the overlap. “A direct share in each direction” gives each side read access to the other's full list. “A reader account for the agency” lets the agency query Foxglove's data directly. And “A shared secure view of customers” still exposes every row of the view to the agency.