exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 747 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 747
Topic #: 1
[All SnowPro Core Questions]

Which command should be used to implement a masking policy that was already created in Snowflake?

  • A. ALTER MASKING POLICY
  • B. APPLY MASKING POLICY
  • C. CREATE MASKING POLICY
  • D. SET MASKING POLICY
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PrasantSadangi
1 week, 2 days ago
Selected Answer: A
ALTER MASKING POLICY ENTERPRISE EDITION FEATURE This feature requires Enterprise Edition (or higher). To inquire about upgrading, please contact Snowflake Support. Replaces the existing masking policy rules with new rules or a new comment and allows the renaming of a masking policy. Any changes made to the policy rules go into effect when the next SQL query that uses the masking policy runs. See also: Masking policy DDL Syntax ALTER MASKING POLICY [ IF EXISTS ] <name> RENAME TO <new_name> ALTER MASKING POLICY [ IF EXISTS ] <name> SET BODY -> <expression_on_arg_name_to_mask> ALTER MASKING POLICY [ IF EXISTS ] <name> SET TAG <tag_name> = '<tag_value>' [ , <tag_name> = '<tag_value>' ... ] ALTER MASKING POLICY [ IF EXISTS ] <name> UNSET TAG <tag_name> [ , <tag_name> ... ]
upvoted 1 times
...
kayuhanbiduk
6 months ago
Selected Answer: D
D. modify column SET MASKING POLICY. APPLY MASKING is privilege that should grant to role to apply the masking policy
upvoted 3 times
...
pvskbrod
7 months, 1 week ago
Selected Answer: D
-- apply masking policy to a table column ALTER TABLE IF EXISTS user_info MODIFY COLUMN email SET MASKING POLICY email_mask; -- apply the masking policy to a view column ALTER VIEW user_info_v MODIFY COLUMN email SET MASKING POLICY email_mask; https://docs.snowflake.com/en/user-guide/security-column-ddm-use
upvoted 4 times
...
singhks
8 months ago
D is the answer. https://docs.snowflake.com/en/user-guide/security-column-intro table ALTER TABLE IF EXISTS user_info MODIFY COLUMN ssn_number SET MASKING POLICY ssn_mask; -- view ALTER VIEW user_info_v MODIFY COLUMN ssn_number SET MASKING POLICY ssn_mask_v;
upvoted 2 times
...
Marcusbraga
8 months, 2 weeks ago
D ALTER TABLE t1 MODIFY COLUMN c1 UNSET MASKING POLICY; ALTER TABLE t1 MODIFY COLUMN c1 SET MASKING POLICY p2; CREATE MASKING POLICY email_mask AS (val string) RETURNS string -> CASE WHEN CURRENT_ROLE() IN ('PAYROLL') THEN val ELSE '******' END; https://docs.snowflake.com/en/user-guide/security-column-intro
upvoted 3 times
...
MultiCloudIronMan
9 months ago
Selected Answer: B
https://community.snowflake.com/s/article/Privilege-Updates-APPLY-MASKING-POLICY-APPLY-ROW-ACCESS-POLICY-Allow-DESCRIBE-object-Operation-on-Tables-and-Views-Only-2021-07-xx-Pending
upvoted 1 times
MultiCloudIronMan
3 months, 3 weeks ago
Ans is A - n this example, my_masking_policy is the name of the masking policy that was previously created. The SET BODY clause defines the logic for the masking policy, specifying which roles can view the actual data and which roles will see masked data.
upvoted 1 times
...
kayuhanbiduk
6 months ago
D is correct, APPLY is privilege that should to grant to role
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago