COF-C02 · Question #488
Which privilege is needed for a SnowFlake user to see the definition of a secure view?
The correct answer is A. OWNERSHIP. Secure views are specifically designed to hide the underlying query logic from unauthorized users. Even users with SELECT or USAGE on a secure view cannot see its definition. Only the object OWNER (i.e., a role with the OWNERSHIP privilege on the view) can inspect the view's…
Question
Which privilege is needed for a SnowFlake user to see the definition of a secure view?
Options
- AOWNERSHIP
- BMODIFY
- CCREATE
- DUSAGE
How the community answered
(49 responses)- A86% (42)
- B4% (2)
- C2% (1)
- D8% (4)
Explanation
Secure views are specifically designed to hide the underlying query logic from unauthorized users. Even users with SELECT or USAGE on a secure view cannot see its definition. Only the object OWNER (i.e., a role with the OWNERSHIP privilege on the view) can inspect the view's SQL definition using commands like SHOW VIEWS or GET_DDL(). This is the primary distinction between a regular view and a secure view - the definition is hidden from non-owners.
Topics
Community Discussion
No community discussion yet for this question.