COF-C02 · Question #217
Which SQL command can be used to see the CREATE definition of a masking policy?
The correct answer is C. GET_DDL. The GET_DDL() function returns the SQL CREATE statement (the DDL) for a named Snowflake object, including masking policies. For example: SELECT GET_DDL('MASKING_POLICY', 'MY_POLICY'). SHOW MASKING POLICIES (A) lists all masking policies with metadata but does not return the…
Question
Which SQL command can be used to see the CREATE definition of a masking policy?
Options
- ASHOW MASKING POLICIES
- BDESCRIBE MASKING POLICY
- CGET_DDL
- DLIST MASKING POLICIES
How the community answered
(52 responses)- A2% (1)
- B6% (3)
- C88% (46)
- D4% (2)
Explanation
The GET_DDL() function returns the SQL CREATE statement (the DDL) for a named Snowflake object, including masking policies. For example: SELECT GET_DDL('MASKING_POLICY', 'MY_POLICY'). SHOW MASKING POLICIES (A) lists all masking policies with metadata but does not return the CREATE statement. DESCRIBE MASKING POLICY (B) shows the policy's columns and properties, not its full DDL. LIST MASKING POLICIES (D) is not a valid Snowflake command.
Topics
Community Discussion
No community discussion yet for this question.