Cyber Monday 2024! 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]

Which masking policy will mask a column whenever it is queried through a view owned by a role named MASKED_VIEW_ROLE?

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:

Dylan
5 months ago
I think C might be the correct answer because it checks for the invoker role.
upvoted 0 times
...
Melissa
5 months ago
But A seems to be more specific to the role named MASKED_VIEW_ROLE.
upvoted 0 times
...
Donte
5 months ago
Wait, is the correct answer 'Darth Vader'? I'm just kidding, but these exam questions can really mess with your mind sometimes.
upvoted 0 times
...
Mohammad
5 months ago
A classic masking policy problem. I'm going with option A - clear and concise, just the way I like it.
upvoted 0 times
Shoshana
4 months ago
I think option B might also work, but option A is definitely more straightforward.
upvoted 0 times
...
Shoshana
4 months ago
I agree, option A seems like the best choice here.
upvoted 0 times
...
...
Sabra
5 months ago
Option C is missing the masking character in the 'then' clause. Gotta love those tricky syntax questions!
upvoted 0 times
...
Celia
5 months ago
I'm not sure about the syntax in option B. Checking the available roles in a session seems a bit convoluted.
upvoted 0 times
Edward
4 months ago
Yeah, I would go with option A for simplicity.
upvoted 0 times
...
Nieves
4 months ago
I think option B might be overcomplicating things with the array_contains function.
upvoted 0 times
...
Jettie
4 months ago
I agree, checking if a role is in session directly makes more sense.
upvoted 0 times
...
Raul
5 months ago
Option A seems more straightforward and easier to understand.
upvoted 0 times
...
Georgene
5 months ago
I think Option A might be simpler and more straightforward for masking the column.
upvoted 0 times
...
Delsie
5 months ago
Option B does seem a bit complicated with checking the available roles.
upvoted 0 times
...
...
Misty
5 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Kaitlyn
6 months ago
Hmm, option D seems straightforward. Masking the column whenever the current role is MASKED_VIEW_ROLE sounds like the right approach.
upvoted 0 times
Lindsey
5 months ago
User2
upvoted 0 times
...
Alberta
5 months ago
User1
upvoted 0 times
...
...
Melissa
6 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77