COF-C02 · Question #636
What does Snowflake recommend as a best practice for using secure views?
The correct answer is D. Do not expose the sequence-generated column(s). Snowflake recommends that secure views should NOT expose sequence-generated columns. Sequence-generated values (auto-incremented IDs) can inadvertently leak information about the underlying table - such as row count, insertion order, or data volume - to consumers of the view…
Question
What does Snowflake recommend as a best practice for using secure views?
Options
- AUse sequence-gen era ted values
- BProgrammatically reveal the identifiers.
- CUse secure views solely for query convenience.
- DDo not expose the sequence-generated column(s)
How the community answered
(36 responses)- B3% (1)
- C6% (2)
- D92% (33)
Explanation
Snowflake recommends that secure views should NOT expose sequence-generated columns. Sequence-generated values (auto-incremented IDs) can inadvertently leak information about the underlying table - such as row count, insertion order, or data volume - to consumers of the view. Since the primary purpose of a secure view is to restrict access to sensitive data and hide the underlying query logic, exposing sequence-generated columns defeats that purpose. Best practice is to omit or mask those columns in the view definition.
Topics
Community Discussion
No community discussion yet for this question.