COF-C02 · Question #247
How do Snowflake data providers share data that resides in different databases?
The correct answer is B. Secure views. In Snowflake's data sharing model, a share object can only directly reference tables and other objects within a single database. To share data that spans multiple databases, providers create secure views in one database that query tables from other databases using fully…
Question
How do Snowflake data providers share data that resides in different databases?
Options
- AExternal tables
- BSecure views
- CMaterialized views
- DUser-Defined Functions (UDFs)
How the community answered
(52 responses)- A2% (1)
- B90% (47)
- C2% (1)
- D6% (3)
Explanation
In Snowflake's data sharing model, a share object can only directly reference tables and other objects within a single database. To share data that spans multiple databases, providers create secure views in one database that query tables from other databases using fully qualified object names (database.schema.table). Because secure views hide their underlying query definition from the consumer, they protect the provider's data model while still making cross-database data accessible through a share. The secure view itself lives in the shared database, acting as the unified access point. External tables (A) expose external data sources but are not the mechanism for cross-database sharing. Materialized views (C) and UDFs (D) can be included in shares but are not the primary mechanism for unifying data across multiple databases.
Topics
Community Discussion
No community discussion yet for this question.