COF-C02 · Question #210
Which privilege must be granted to a share to allow secure views the ability to reference data in multiple databases?
The correct answer is D. REFERENCE_USAGE on databases. When a secure view in a share references tables or data from a database other than the one being directly shared, the share must be granted REFERENCE_USAGE on those additional databases. This privilege does not expose the underlying data directly to consumers-it simply allows…
Question
Which privilege must be granted to a share to allow secure views the ability to reference data in multiple databases?
Options
- ACREATE_SHARE on the account
- BSHARE on databases and schemas
- CSELECT on tables used by the secure view
- DREFERENCE_USAGE on databases
How the community answered
(28 responses)- A4% (1)
- B14% (4)
- C7% (2)
- D75% (21)
Explanation
When a secure view in a share references tables or data from a database other than the one being directly shared, the share must be granted REFERENCE_USAGE on those additional databases. This privilege does not expose the underlying data directly to consumers-it simply allows the secure view's query to resolve cross-database references at query time. CREATE_SHARE (A) is an account-level privilege for creating shares, not relevant here. SHARE on databases/schemas (B) is not a real Snowflake privilege name. SELECT on tables (C) is needed separately for the share to read those tables, but it does not alone enable cross-database reference resolution.
Topics
Community Discussion
No community discussion yet for this question.