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:

Sharmaine
28 days ago
A) SHOW MASKING POLICIES is the way to go. It's simple, descriptive, and probably the most widely used command for this task. I'm not trying to overthink this one.
upvoted 0 times
...
Roslyn
1 months ago
Hmm, I've never heard of a 'masking policy' before. Is that like a secret society for database admins? In that case, B) DESCRIBE MASKING POLICY is probably the way to go to learn their mysterious ways.
upvoted 0 times
Ryan
8 days ago
Let's use that command and see what we can find out.
upvoted 0 times
...
Tammy
14 days ago
Yeah, DESCRIBE MASKING POLICY sounds like the right choice to uncover their secrets.
upvoted 0 times
...
Nickolas
20 days ago
I think it's more about hiding sensitive data in databases.
upvoted 0 times
...
...
France
1 months ago
D) LIST MASKING POLICIES sounds like the most straightforward option to me. Why overcomplicate things when there's a command specifically for listing masking policies?
upvoted 0 times
Skye
2 days ago
A) SHOW MASKING POLICIES
upvoted 0 times
...
...
Lajuana
2 months 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 months 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
Yuonne
22 days ago
Yeah, I use GET_DDL for other objects too, so it should work for masking policies.
upvoted 0 times
...
Keva
1 months ago
I think you're right, GET_DDL is the command to see the CREATE definition.
upvoted 0 times
...
...
Kandis
2 months ago
I agree with Janna, GET_DDL makes sense because it stands for Get Data Definition Language.
upvoted 0 times
...
Janna
2 months ago
I think the answer is C) GET_DDL.
upvoted 0 times
...

Save Cancel