exam questions

Exam SnowPro Advanced Architect All Questions

View all questions & answers for the SnowPro Advanced Architect exam

Exam SnowPro Advanced Architect topic 1 question 104 discussion

Actual exam question from Snowflake's SnowPro Advanced Architect
Question #: 104
Topic #: 1
[All SnowPro Advanced Architect Questions]

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_acct1 admin_name = user1 , admin_password = 'Sdfed43da!44' , 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 'acct1_role' = current_role() then true else false end;
  • C. Set the session parameter called SIMULATED_DATA_SHARING_CONSUMER as shown below in order to impersonate the consumer accounts.

    alter session set simulated_data_sharing_consumer = 'Consumer Acct1'
  • D. Alter the share settings as shown below, in order to impersonate a specific consumer account.

    alter share sales_share set accounts = 'Consumer1' share_restrictions = true
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MSIDDIQUI18
1 month, 1 week ago
Correct Answer: C Validate the tables and secure view to ensure the data is filtered properly by account. To enable validating secure views that will be shared with other accounts, Snowflake provides a session parameter, SIMULATED_DATA_SHARING_CONSUMER. Set this session parameter to the name of the consumer account you wish to simulate access for.
upvoted 1 times
...
Atomic_Gecko
9 months, 3 weeks ago
C is correct: Specifies the name of a consumer account to simulate for testing/validating shared data, particularly shared secure views. When this parameter is set in a session, shared views return rows as if executed in the specified consumer account rather than the provider account.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago