COF-C02 · Question #333
What does a masking policy consist of in Snowflake?
The correct answer is A. A single data type, with one or more conditions, and one or more masking functions. A Snowflake dynamic data masking policy is defined with a single data type (the input and output data types must match - you cannot change the data type of the masked value), one or more conditional expressions (e.g., checking the role of the querying user), and one or more…
Question
What does a masking policy consist of in Snowflake?
Options
- AA single data type, with one or more conditions, and one or more masking functions
- BA single data type, with only one condition, and only one masking function
- CMultiple data types, with only one condition, and one or more masking functions
- DMultiple data types, with one or more conditions, and one or more masking functions
How the community answered
(68 responses)- A90% (61)
- B6% (4)
- C1% (1)
- D3% (2)
Explanation
A Snowflake dynamic data masking policy is defined with a single data type (the input and output data types must match - you cannot change the data type of the masked value), one or more conditional expressions (e.g., checking the role of the querying user), and one or more masking functions that define what the data looks like for different roles or conditions. The policy does not support multiple data types in a single definition, which rules out options C and D. Option B is too restrictive because a policy can have multiple conditions and multiple masking functions (e.g., return full value for admin, partial mask for analyst, full mask for all others).
Topics
Community Discussion
No community discussion yet for this question.