ExamGecko
Question list
Search
Search

List of questions

Search

Question 158 - ARA-C01 discussion

Report
Export

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).

A.

ALTER ROLE ANALYST_ROLE SET NETWORK_POLICY='ANALYST_POLICY';

Answers
A.

ALTER ROLE ANALYST_ROLE SET NETWORK_POLICY='ANALYST_POLICY';

B.

ALTER USER ANALYSTJJSER SET NETWORK_POLICY='ANALYST_POLICY';

Answers
B.

ALTER USER ANALYSTJJSER SET NETWORK_POLICY='ANALYST_POLICY';

C.

ALTER USER ANALYST_USER SET NETWORK_POLICY='10.1.1.20';

Answers
C.

ALTER USER ANALYST_USER SET NETWORK_POLICY='10.1.1.20';

D.

USE ROLE SECURITYADMIN; CREATE OR REPLACE NETWORK POLICY ANALYST_POLICY ALLOWED_IP_LIST = ('10.1.1.20');

Answers
D.

USE ROLE SECURITYADMIN; CREATE OR REPLACE NETWORK POLICY ANALYST_POLICY ALLOWED_IP_LIST = ('10.1.1.20');

E.

USE ROLE USERADMIN; CREATE OR REPLACE NETWORK POLICY ANALYST_POLICY ALLOWED_IP_LIST = ('10.1.1.20');

Answers
E.

USE ROLE USERADMIN; CREATE OR REPLACE NETWORK POLICY ANALYST_POLICY ALLOWED_IP_LIST = ('10.1.1.20');

Suggested answer: B, D

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.

Options A and E mention altering roles or using the wrong role (USERADMIN typically does not manage network security settings), and option C incorrectly attempts to set a network policy directly as an IP address, which is not syntactically or functionally valid.

Reference: Snowflake's security management documentation covering network policies and role-based access controls.



asked 29/10/2024
Randhir Singh
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first