Study FAQ
How does a Snowflake consumer access and query a securely shared database?
Also asked as 2
- What does the provider share, and what must a consumer set up to use it in Snowflake?
- Who manages access and compute when a regular Snowflake account queries a direct share?
Answer
The provider offers selected database objects through a share. A consumer with a regular Snowflake account imports the share as a read-only database, grants its local roles appropriate access, and queries it with a consumer warehouse. For a standard same-region direct share, Snowflake makes provider changes available through shared metadata without storing another copy of the shared data in the consumer account. The consumer pays for its query compute.
The provider chooses what to expose and which accounts can consume it, and maintains the source for consumers. On the consumer side, use a role with global CREATE DATABASE and IMPORT SHARE to create the database from the inbound share. For objects shared through direct grants, give a local account role IMPORTED PRIVILEGES on the imported database. For objects shared through provider-supplied database roles, grant the applicable imported database role to a local account role. A single share can include both types. The local query role also needs USAGE on its warehouse.
Verify a sample query with that user and role. Transformations that persist results belong in the consumer's own writable database and are subject to permitted use. A local result or copy has a different lifecycle from the read-only imported database. Reader accounts, paid listings and remote delivery can change the billing or operational model.
About Secure Data Sharing · Consume imported data · Privileges for data sharing
Full explanation
Secure Data Sharing, Marketplace, and Collaboration Models
Study guide · COF-C03
Read the full explanation