ExamGecko
Home Home / Snowflake / ADA-C01

Snowflake ADA-C01 Practice Test - Questions Answers, Page 8

Question list
Search
Search

Related questions











A user with the proper role issues the following commands when setting up and activating network policies:

CREATE OR REPLACE NETWORK POLICY foo_policy

ALLOWED_IP_LIST = ( '1.1.1.0/24', '2.2.2.0/24' , '3.3. 3. 0/24' )

BLOCKED IP LIST = ( '1.1.1.1')

COMMENT = 'Account level policy';

ALTER ACCOUNT SET NETWORK_POLICY=FOO_POLICY;

CREATE OR REPLACE NETWORK POLICY bar_policy

ALLOWED_IP_LIST = ('3.3.3.0/24')

BLOCKED IP LIST = ('3.3.3.10')

COMMENT = 'user level policy';

ALTER USER userl SET NETWORK_POLICY=BAR_POLICY;

Afterwards, user1 attempts to log in to Snowflake from IP address 3.3.3.10.

Will the login be successful?

A.
Yes, because 3.3.3.10 is found in the ALLOWED_IP_LIST of bar_policy.
A.
Yes, because 3.3.3.10 is found in the ALLOWED_IP_LIST of bar_policy.
Answers
B.
No, because 3.3.3.10 is found in the BLOCKED_IP_LIST of bar_policy.
B.
No, because 3.3.3.10 is found in the BLOCKED_IP_LIST of bar_policy.
Answers
C.
Yes, because 3.3.3.10 is found in the ALLOWED_IP_LIST of foo_policy.
C.
Yes, because 3.3.3.10 is found in the ALLOWED_IP_LIST of foo_policy.
Answers
D.
No, because 3.3.3.10 is not found in the ALLOWED_IP_LIST of foo_policy.
D.
No, because 3.3.3.10 is not found in the ALLOWED_IP_LIST of foo_policy.
Answers
Suggested answer: B

Explanation:

According to the Snowflake documentation1, network policies are a feature that allows restricting access to your account based on user IP address. A network policy can be applied to an account, a user, or a security integration, and can specify a list of allowed IP addresses and a list of blocked IP addresses. If there are network policies applied to more than one of these, the most specific network policy overrides more general network policies. In this case, the user1 has a network policy (bar_policy) applied to them, which overrides the account-level network policy (foo_policy). The bar_policy allows access only from the IP range 3.3.3.0/24, and blocks access from the IP address 3.3.3.10. Therefore, the user1 will not be able to log in to Snowflake from IP address 3.3.3.10, as it is found in the BLOCKED_IP_LIST of bar_policy. Option A is incorrect because the ALLOWED_IP_LIST of bar_policy does not override the BLOCKED_IP_LIST of bar_policy. Option C is incorrect because the ALLOWED_IP_LIST of foo_policy does not apply to user1, as it is overridden by the user-level network policy. Option D is incorrect because the ALLOWED_IP_LIST of foo_policy does not matter, as it is overridden by the user-level network policy.

An Administrator loads data into a staging table every day. Once loaded, users from several different departments perform transformations on the data and load it into different production tables.

How should the staging table be created and used to MINIMIZE storage costs and MAXIMIZE performance?

A.
Create it as an external table, which will not incur Time Travel costs.
A.
Create it as an external table, which will not incur Time Travel costs.
Answers
B.
Create it as a transient table with a retention time of 0 days.
B.
Create it as a transient table with a retention time of 0 days.
Answers
C.
Create it as a temporary table with a retention time of 0 days.
C.
Create it as a temporary table with a retention time of 0 days.
Answers
D.
Create it as a permanent table with a retention time of 0 days.
D.
Create it as a permanent table with a retention time of 0 days.
Answers
Suggested answer: B

Explanation:

According to the Snowflake documentation1, a transient table is a type of table that does not support Time Travel or Fail-safe, which means that it does not incur any storage costs for maintaining historical versions of the data or backups for disaster recovery. A transient table can be dropped at any time, and the data is not recoverable. A transient table can also have a retention time of 0 days, which means that the data is deleted immediately after the table is dropped or truncated. Therefore, creating the staging table as a transient table with a retention time of 0 days can minimize the storage costs and maximize the performance, as the data is only loaded and transformed once, and then deleted after the production tables are populated. Option A is incorrect because creating the staging table as an external table, which references data files stored in a cloud storage location, can incur additional costs and complexity for data transfer and synchronization, and may not provide the best performance for data loading and transformation. Option C is incorrect because creating the staging table as a temporary table, which is automatically dropped when the session ends or the user logs out, can cause data loss or inconsistency if the session is interrupted or terminated before the production tables are populated. Option D is incorrect because creating the staging table as a permanent table, which supports Time Travel and Fail-safe, can incur additional storage costs for maintaining historical versions of the data and backups for disaster recovery, and may not provide the best performance for data loading and transformation.

Total 72 questions
Go to page: of 8