ARA-C01 · Question #78
Consider the following scenario where a masking policy is applied on the CREDICARDND column of the CREDITCARDINFO table. The masking policy definition Is as follows: Sample data for the…
The correct answer is D. Anyone with the Pl_ANALYTICS role will see the CREDICARDND column as*** 'MASKED* **'. The masking policy defined in the image indicates that if a user has the PI_ANALYTICS role, they will be able to see the last 4 characters of the CREDITCARDNO column data in clear text. Otherwise, they will see 'MASKED'. Since Snowflake system roles have not been granted any…
Question
Consider the following scenario where a masking policy is applied on the CREDICARDND column of the CREDITCARDINFO table. The masking policy definition Is as follows:
Sample data for the CREDITCARDINFO table is as follows:
NAME EXPIRYDATE CREDITCARDNO JOHN DOE 2022-07-23 4321 5678 9012 1234 if the Snowflake system rotes have not been granted any additional roles, what will be the result?
Exhibit
Options
- AThe sysadmin can see the CREDICARDND column data in clear text.
- BThe owner of the table will see the CREDICARDND column data in clear text.
- CAnyone with the Pl_ANALYTICS role will see the last 4 characters of the CREDICARDND column
- DAnyone with the Pl_ANALYTICS role will see the CREDICARDND column as*** 'MASKED* **'.
How the community answered
(27 responses)- A7% (2)
- B4% (1)
- C4% (1)
- D85% (23)
Explanation
The masking policy defined in the image indicates that if a user has the PI_ANALYTICS role, they will be able to see the last 4 characters of the CREDITCARDNO column data in clear text. Otherwise, they will see 'MASKED'. Since Snowflake system roles have not been granted any additional roles, they won't have the PI_ANALYTICS role and therefore cannot view the last 4 characters of credit card numbers. To apply a masking policy on a column in Snowflake, you need to use the ALTER TABLE ... ALTER COLUMN command or the ALTER VIEW command and specify the policy name. For example, to apply the creditcardno_mask policy on the CREDITCARDNO column of the CREDITCARDINFO table, you can use the following command: ALTER TABLE CREDITCARDINFO ALTER COLUMN CREDITCARDNO SET MASKING POLICY creditcardno_mask; For more information on how to create and use masking policies in Snowflake, you can refer to the following resources: CREATE MASKING POLICY: This document explains the syntax and usage of the CREATE MASKING POLICY command, which allows you to create a new masking policy or replace an existing one. Using Dynamic Data Masking: This guide provides instructions on how to configure and use dynamic data masking in Snowflake, which is a feature that allows you to mask sensitive data based on the execution context of the user. ALTER MASKING POLICY: This document explains the syntax and usage of the ALTER MASKING POLICY command, which allows you to modify the properties of an existing masking
Topics
Community Discussion
No community discussion yet for this question.
