Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 311

Which SQL command can be used to see the CREATE definition of a masking policy?

    Correct Answer: C

    The GET_DDL function can be used to generate the DDL statement that can be used to recreate a masking policy in SQL. This command retrieves the complete definition of the masking policy, including its creation statement, which is what the question is asking for.

Discussion
AS314Option: C

This is the result of B https://docs.snowflake.com/en/sql-reference/sql/desc-masking-policy.html#example So B can't be the answer And this is the result of C https://docs.snowflake.com/en/sql-reference/functions/get_ddl.html#examples So C is the answer

Def21

B result is | 1 | SSN_MASK | (VAL VARCHAR) | VARCHAR(16777216) | case when current_role() in ('ANALYST') then val else '*********' end | C result is | create or replace view BOOKS_VIEW as select title, author from books_table; |

sakis213Option: C

should be GET_DDL, describe returns only the body, not the whole create statement definition , for example input & return column data types values will be missing

scoobOption: C

C - GET_DDL returns the create statement to recreate the object. DESCRIBE will show the sql behind the policy but not in the form of a create statement.

harshagc180Option: B

Correct answer DESCRIBE MASKING POLICY since the question is about command. If asked about the function then GET_DDL

halol

I think B&C https://docs.snowflake.com/en/sql-reference/sql/create-masking-policy.html#usage-notes

SatyamKishoreOption: B

Going by snowflake documentation, seems both b & c is correct. https://docs.snowflake.com/en/sql-reference/sql/create-masking-policy#usage-notes

PrashantGupta1616Option: C

SELECT GET_DDL('MASKING POLICY', 'your_masking_policy_name');

_yyuktaOption: C

C. GET_DDL

0e504b5Option: C

C https://docs.snowflake.com/en/sql-reference/functions/get_ddl Returns a DDL statement that can be used to recreate the specified object. GET_DDL currently supports the following object types: Policies (see CREATE MASKING POLICY , CREATE PASSWORD POLICY , CREATE ROW ACCESS POLICY , and CREATE SESSION POLICY , CREATE AUTHENTICATION POLICY)

Bujji1234Option: B

B is the answer if you want to replace an existing masking policy and need to see the current definition of the policy, call the GET_DDL function or run the DESCRIBE MASKING POLICY command.

Pradeep_7869Option: B

B is the answer

surya_lollaOption: B

https://docs.snowflake.com/en/sql-reference/sql/desc-masking-policy DESC MASKING POLICY

sailooOption: B

B is the correct answer

yogenOption: C

C for Sure