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 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?
The correct way to validate data accessibility by the consumers is by setting the session parameter called SIMULATED_DATA_SHARING_CONSUMER. This allows the Snowflake Architect to simulate the consumer account within their own session, thereby ensuring that they see the data exactly as the consumer would, including any restrictions applied by secure views.
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.