1.6 Design and build data sharing and data consumption solutions.
1.Which three of the following object types can be granted directly to a Snowflake share?(Select 3)
- A.Schemas
- B.Tables
- C.External Functions
- D.Warehouses
- E.Users
Show answer & explanation
Correct answers: A, B, C — Schemas; Tables; External Functions
- A. Correct. The `USAGE` privilege on a schema can be granted to a share. This allows the consumer to access all the shareable objects (like tables and views) within that schema, providing a convenient way to share a group of related objects.
- B. Correct. The `SELECT` privilege on a table can be granted to a share. This is a fundamental capability of Snowflake Data Sharing, allowing consumer accounts to query data directly from the provider's tables without copying the data.
- C. Correct. The `USAGE` privilege on an external function can be granted to a share. This enables consumer accounts to call the provider's external functions in their own queries, extending the functionality available to them.
- D. Incorrect. Warehouses are compute resources and are account-specific; they cannot be shared. Consumers of a share must use their own virtual warehouses to query the shared data, which is a key architectural principle of Snowflake's separation of storage and compute.
- E. Incorrect. Users are account-level objects and cannot be granted to a share. Data sharing operates at the account-to-account level. The provider shares objects with a consumer account, and the consumer's administrator grants access to their own users and roles.