ARA-C01 · Question #112
A user, analyst_user has been granted the analyst_role, and is deploying a SnowSQL script to run as a background service to extract data from Snowflake. What steps should be taken to allow the IP…
The correct answer is B. ALTER USER ANALYSTJJSER SET NETWORK_POLICY='ANALYST_POLICY'; D. USE ROLE SECURITYADMIN. To ensure that an analyst_user can only access Snowflake from specific IP addresses, the following steps are required: Option B: This alters the network policy directly linked to analyst_user. Setting a network policy on the user level is effective and ensures that the…
Question
A user, analyst_user has been granted the analyst_role, and is deploying a SnowSQL script to run as a background service to extract data from Snowflake. What steps should be taken to allow the IP addresses to be accessed? (Select TWO).
Options
- AALTER ROLE ANALYST_ROLE SET NETWORK_POLICY='ANALYST_POLICY';
- BALTER USER ANALYSTJJSER SET NETWORK_POLICY='ANALYST_POLICY';
- CALTER USER ANALYST_USER SET NETWORK_POLICY='10.1.1.20';
- DUSE ROLE SECURITYADMIN;
- EUSE ROLE USERADMIN;
How the community answered
(43 responses)- A5% (2)
- B84% (36)
- C2% (1)
- E9% (4)
Explanation
To ensure that an analyst_user can only access Snowflake from specific IP addresses, the following steps are required: Option B: This alters the network policy directly linked to analyst_user. Setting a network policy on the user level is effective and ensures that the specified network restrictions apply directly and exclusively to this user. Option D: Before a network policy can be set or altered, the appropriate role with permission to manage network policies must be used. SECURITYADMIN is typically the role that has privileges to create and manage network policies in Snowflake. Creating a network policy that specifies allowed IP addresses ensures that only requests coming from those IPs can access Snowflake under this policy. After creation, this policy can be linked to specific users or roles as needed.
Topics
Community Discussion
No community discussion yet for this question.