ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 39 - ADA-C01 discussion

Report
Export

When adding secure views to a share in Snowflake, which function is needed to authorize users from another account to access rows in a base table?

A.
CURRENT_ROLE
Answers
A.
CURRENT_ROLE
B.
CURRENT ACCOUNT
Answers
B.
CURRENT ACCOUNT
C.
CURRENT_USER
Answers
C.
CURRENT_USER
D.
CURRENT_CLIENT
Answers
D.
CURRENT_CLIENT
Suggested answer: C

Explanation:

According to the Working with Secure Views documentation, secure views are designed to limit access to sensitive data that should not be exposed to all users of the underlying table(s). When sharing secure views with another account, the view definition must include a function that returns the identity of the user who is querying the view, such as CURRENT_USER, CURRENT_ROLE, or CURRENT_ACCOUNT. These functions can be used to filter the rows in the base table based on the user's identity. For example, a secure view can use the CURRENT_USER function to compare the user name with a column in the base table that contains the authorized user names. Only the rows that match the user name will be returned by the view. The CURRENT_CLIENT function is not suitable for this purpose, because it returns the IP address of the client that is connected to Snowflake, which is not related to the user's identity.

asked 23/09/2024
Grégory CALIX
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first