Skip to Content

SnowPro Core: Understanding Conditional Data Masking in Snowflake

Dive into the workings of conditional data masking in Snowflake. Learn how it selectively masks column values based on conditions, enhancing data security.

Table of Contents

Question

How does conditional data masking work in Snowflake?

A. It selectively masks plain text data.
B. It selectively masks multiple columns.
C. It masks all values in a given column.
D. It selectively masks a column value based on another column.

Answer

D. It selectively masks a column value based on another column.

Explanation

Conditional data masking in Snowflake is a feature of Column-level Security that uses masking policies to selectively mask plain-text data in table and view columns at query time. The masking policy is applied to the column at every location where the column appears. Depending on the masking policy conditions, the SQL execution context, and role hierarchy, Snowflake query operators may see the plain-text value, a partially masked value, or a fully masked value.

Option D is the most accurate. Conditional masking uses a masking policy to selectively protect the column data in a table or view based on the values in one or more different columns. For example, a conditional masking policy can specify two arguments, where the first column specifies the column to mask, and the second column is a conditional column to evaluate whether the first column should be masked or not.

Snowflake SnowPro Core certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Snowflake SnowPro Core exam and earn Snowflake SnowPro Core certification.