Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Snowflake Exam COF-C02 Topic 5 Question 17 Discussion

Actual exam question for Snowflake's COF-C02 exam
Question #: 17
Topic #: 5
[All COF-C02 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B

According to the Snowflake documentation1, a directory table stores a catalog of staged files in cloud storage and can be queried to retrieve theSnowflake-hosted file URLto each file in the stage. A file URL has the following format:

https:///api/files/<db_name>.<schema_name>.<stage_name>/<relative_path>

Based on this information, I think the query that contains a Snowflake hosted file URL in a directory table for a stage named bronzestage isB. select * from directory(@bronzestage);


Contribute your Thoughts:

Lajuana
2 days ago
I'm not sure, but I think it could also be A) SHOW MASKING POLICIES because it sounds like it would show the policies.
upvoted 0 times
...
Nichelle
2 days ago
I'm pretty sure it's C) GET_DDL. That's the command I use to see the definition of other database objects, so it makes sense it would work for masking policies too.
upvoted 0 times
...
Kandis
10 days ago
I agree with Janna, GET_DDL makes sense because it stands for Get Data Definition Language.
upvoted 0 times
...
Janna
11 days ago
I think the answer is C) GET_DDL.
upvoted 0 times
...

Save Cancel