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 ADA-C01 Topic 4 Question 17 Discussion

Actual exam question for Snowflake's ADA-C01 exam
Question #: 17
Topic #: 4
[All ADA-C01 Questions]

A Snowflake Administrator needs to persist all virtual warehouse configurations for auditing and backups. Given a table already exists with the following schema:

Table Name : VWH_META

Column 1 : SNAPSHOT_TIME TIMESTAMP_NTZ

Column 2 : CONFIG VARIANT

Which commands should be executed to persist the warehouse data at the time of execution in JSON format in the table VWH META?

Show Suggested Answer Hide Answer
Suggested Answer: A

A masking policy is a SQL expression that transforms the data in a column based on the role that queries the column1. The is_role_in_session function returns true if the specified role is in the current session2. Therefore, the masking policy in option A will mask the column data with asterisks whenever it is queried through a view owned by the MASKED_VIEW_ROLE3. The other options use different functions that do not check the ownership of the view, but rather the current role, the invoker role, or the available roles in the session45. These functions may not return the desired result if the role that owns the view is different from the role that queries the view.


Contribute your Thoughts:

Nguyet
8 hours ago
I disagree, I believe option D is the right choice.
upvoted 0 times
...
Gail
1 days ago
I think the correct answer is option C.
upvoted 0 times
...
Ezekiel
4 days ago
Option C looks good to me. It captures the warehouse configurations in JSON format using OBJECT_CONSTRUCT(*) and saves the data to the VWH_META table. Simple and straightforward solution.
upvoted 0 times
...

Save Cancel