ExamGecko
Question list
Search
Search

List of questions

Search

Question 118 - ARA-C01 discussion

Report
Export

A Snowflake Architect created a new data share and would like to verify that only specific records in secure views are visible within the data share by the consumers.

What is the recommended way to validate data accessibility by the consumers?

A.
Create reader accounts as shown below and impersonate the consumers by logging in with their credentials. create managed account reader_acctl admin_name = userl , adroin_password 'Sdfed43da!44T , type = reader;
Answers
A.
Create reader accounts as shown below and impersonate the consumers by logging in with their credentials. create managed account reader_acctl admin_name = userl , adroin_password 'Sdfed43da!44T , type = reader;
B.
Create a row access policy as shown below and assign it to the data share. create or replace row access policy rap_acct as (acct_id varchar) returns boolean -> case when 'acctl_role' = current_role() then true else false end;
Answers
B.
Create a row access policy as shown below and assign it to the data share. create or replace row access policy rap_acct as (acct_id varchar) returns boolean -> case when 'acctl_role' = current_role() then true else false end;
C.
Set the session parameter called SIMULATED_DATA_SHARING_C0NSUMER as shown below in order to impersonate the consumer accounts. alter session set simulated_data_sharing_consumer - 'Consumer Acctl*
Answers
C.
Set the session parameter called SIMULATED_DATA_SHARING_C0NSUMER as shown below in order to impersonate the consumer accounts. alter session set simulated_data_sharing_consumer - 'Consumer Acctl*
D.
Alter the share settings as shown below, in order to impersonate a specific consumer account. alter share sales share set accounts = 'Consumerl' share restrictions = true
Answers
D.
Alter the share settings as shown below, in order to impersonate a specific consumer account. alter share sales share set accounts = 'Consumerl' share restrictions = true
Suggested answer: C

Explanation:

The SIMULATED_DATA_SHARING_CONSUMER session parameter allows a data provider to simulate the data access of a consumer account without creating a reader account or logging in with the consumer credentials. This parameter can be used to validate the data accessibility by the consumers in a data share, especially when using secure views or secure UDFs that filter data based on the current account or role. By setting this parameter to the name of a consumer account, the data provider can see the same data as the consumer would see when querying the shared database. This is a convenient and efficient way to test the data sharing functionality and ensure that only the intended data is visible to the consumers.

Using the SIMULATED_DATA_SHARING_CONSUMER Session Parameter

SnowPro Advanced: Architect Exam Study Guide

asked 23/09/2024
Barry Higgins
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first