Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam DEA-C02 Topic 1 Question 189 Discussion

Actual exam question for Snowflake's DEA-C02 exam
Question #: 189
Topic #: 1
A data engineering team is implementing Row Access Policies (RAP) on a table 'employee_data' containing sensitive salary information. They need to ensure that only managers can see the salary information of their direct reports. A user-defined function (UDF) 'GET returns a comma-separated string of manager usernames for a given username. Which of the following SQL statements correctly creates and applies a RAP to achieve this?

Suggested Answer: D Vote an answer

Option D correctly uses EXISTS and SPLIT TO TABLE to check if the employee's username is present in the list of managers returned by the GET_MANAGERS UDE Options A, B, C, and E have logical errors in how they determine manager-employee relationships, or don't correctly handle the comma-separated string of managers returned by the UDF. Options A and C also use CURRENT ROLE() = 'MANAGER' which requires the user to explicitly set their role to 'MANAGER', which might not be practical.

by Octavia at May 30, 2025, 01:58 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.