ExamGecko
Home Home / Snowflake / ADA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A company has implemented Snowflake replication between two Snowflake accounts, both of which are running on a Snowflake Enterprise edition. The replication is for the database APP_DB containing only one schema, APP_SCHEMA. The company's Time Travel retention policy is currently set for 30 days for both accounts. An Administrator has been asked to extend the Time Travel retention policy to 60 days on the secondary database only. How can this requirement be met?


A.
Set the data retention policy on the secondary database to 60 days.
A.
Set the data retention policy on the secondary database to 60 days.
Answers
B.
Set the data retention policy on the schemas in the secondary database to 60 days.
B.
Set the data retention policy on the schemas in the secondary database to 60 days.
Answers
C.
Set the data retention policy on the primary database to 30 days and the schemas to 60 days.
C.
Set the data retention policy on the primary database to 30 days and the schemas to 60 days.
Answers
D.
Set the data retention policy on the primary database to 60 days.
D.
Set the data retention policy on the primary database to 60 days.
Answers
Suggested answer: A

Explanation:

According to the Replication considerations documentation, the Time Travel retention period for a secondary database can be different from the primary database. The retention period can be set at the database, schema, or table level using the DATA_RETENTION_TIME_IN_DAYS parameter. Therefore, to extend the Time Travel retention policy to 60 days on the secondary database only, the best option is to set the data retention policy on the secondary database to 60 days using the ALTER DATABASE command. The other options are incorrect because:

* B. Setting the data retention policy on the schemas in the secondary database to 60 days will not affect the database-level retention period, which will remain at 30 days. The most specific setting overrides the more general ones, so the schema-level setting will apply to the tables in the schema, but not to the database itself.

* C. Setting the data retention policy on the primary database to 30 days and the schemas to 60 days will not affect the secondary database, which will have its own retention period. The replication process does not copy the retention period settings from the primary to the secondary database, so they can be configured independently.

* D. Setting the data retention policy on the primary database to 60 days will not affect the secondary database, which will have its own retention period. The replication process does not copy the retention period settings from the primary to the secondary database, so they can be configured independently.

When does auto-suspend occur for a multi-cluster virtual warehouse?

A.
When there has been no activity on any cluster for the specified period of time.
A.
When there has been no activity on any cluster for the specified period of time.
Answers
B.
After a specified period of time when an additional cluster has started on the maximum number of clusters specified for a warehouse.
B.
After a specified period of time when an additional cluster has started on the maximum number of clusters specified for a warehouse.
Answers
C.
When the minimum number of clusters is running and there is no activity for the specified period of time.
C.
When the minimum number of clusters is running and there is no activity for the specified period of time.
Answers
D.
Auto-suspend does not apply for multi-cluster warehouses.
D.
Auto-suspend does not apply for multi-cluster warehouses.
Answers
Suggested answer: C

Explanation:

According to the Multi-cluster Warehouses documentation, auto-suspend is a feature that allows a warehouse to automatically suspend itself after a specified period of inactivity. For a multi-cluster warehouse, auto-suspend applies to the entire warehouse, not to individual clusters. Therefore, auto-suspend occurs when the minimum number of clusters is running and there is no activity for the specified period of time. The other options are incorrect because:

* A. Auto-suspend does not occur when there has been no activity on any cluster for the specified period of time. This would imply that each cluster has its own auto-suspend timer, which is not the case. The warehouse has a single auto-suspend timer that is reset by any activity on any cluster.

* B. Auto-suspend does not occur after a specified period of time when an additional cluster has started on the maximum number of clusters specified for a warehouse. This would imply that the auto-suspend timer is affected by the number of clusters running, which is not the case. The auto-suspend timer is only affected by the activity on the warehouse, regardless of the number of clusters running.

* D. Auto-suspend does apply for multi-cluster warehouses, as explained above. It is a feature that can be enabled or disabled for any warehouse, regardless of the number of clusters.

A company has set up a new Snowflake account. An Identity Provider (IdP) has been configured for both Single Sign-On (SSO) and SCIM provisioning.

What maintenance is required to ensure that the SCIM provisioning process continues to operate without errors?

A.
The IdP service account requires a new RSA key pair to be generated every six months.
A.
The IdP service account requires a new RSA key pair to be generated every six months.
Answers
B.
The Administrator must issue a POST RENEW call to the REST API at least once every six months.
B.
The Administrator must issue a POST RENEW call to the REST API at least once every six months.
Answers
C.
The OAuth Bearer Tokens have a lifespan of six months and must be regenerated prior to expiration.
C.
The OAuth Bearer Tokens have a lifespan of six months and must be regenerated prior to expiration.
Answers
D.
The IdP Administrator must issue a REFRESH transaction at least once every six months to synchronize all users and roles.
D.
The IdP Administrator must issue a REFRESH transaction at least once every six months to synchronize all users and roles.
Answers
Suggested answer: C

Explanation:

According to the Snowflake documentation1, the authentication process for SCIM provisioning uses an OAuth Bearer token and this token is valid for six months. Customers must keep track of their authentication token and can generate a new token on demand. If the token expires, the SCIM provisioning process will fail. Therefore, the token must be regenerated before it expires. The other options are not required for SCIM provisioning.

What are benefits of creating and maintaining resource monitors in Snowflake? (Select THREE).

A.
The cost of running a resource monitor is only 10% of a credit, per day of operation.
A.
The cost of running a resource monitor is only 10% of a credit, per day of operation.
Answers
B.
Multiple resource monitors can be applied to a single virtual warehouse.
B.
Multiple resource monitors can be applied to a single virtual warehouse.
Answers
C.
Resource monitors add no additional load to virtual warehouse compute.
C.
Resource monitors add no additional load to virtual warehouse compute.
Answers
D.
Multiple triggers can be configured across various virtual warehouse thresholds.
D.
Multiple triggers can be configured across various virtual warehouse thresholds.
Answers
E.
Resource monitor governance is tightly controlled and monitors can only be created by the ACCOUNTADMIN role or users with the CREATE MONITOR privilege.
E.
Resource monitor governance is tightly controlled and monitors can only be created by the ACCOUNTADMIN role or users with the CREATE MONITOR privilege.
Answers
F.
Resource monitors can be applied to more than one virtual warehouse.
F.
Resource monitors can be applied to more than one virtual warehouse.
Answers
Suggested answer: C, D, F

Explanation:

According to the Snowflake documentation1, resource monitors are a feature that helps you manage and control Snowflake costs by monitoring and setting limits on your compute resources. Resource monitors do not consume any credits or add any load to the virtual warehouses they monitor1. Resource monitors can also have multiple triggers that specify different actions (such as suspending or notifying) when certain percentages of the credit quota are reached2. Resource monitors can be applied to either the entire account or a specific set of individual warehouses1. The other options are not benefits of resource monitors. The cost of running a resource monitor is negligible, not 10% of a credit3. Multiple resource monitors cannot be applied to a single virtual warehouse; only one resource monitor can be assigned to a warehouse at a time2. Resource monitor governance is not tightly controlled; account administrators can enable users with other roles to view and modify resource monitors using SQL2.

DatabaseA has a single schema called Schema1. This schema contains many tables and views. The ANALYST role has privileges to select from all objects in Database A. Schema1. The SYSADMIN role clones DatabaseA to DatabaseA_clone. What privileges does the ANALYST role have on tables and views in DatabaseA_clone? (Select TWO).

A.
USAGE on the schema DatabaseA clone
A.
USAGE on the schema DatabaseA clone
Answers
B.
USAGE on the database DatabaseA_clone. Schemal
B.
USAGE on the database DatabaseA_clone. Schemal
Answers
C.
SELECT on all tables, and only non-secure views in DatabaseA_clone. Schemal
C.
SELECT on all tables, and only non-secure views in DatabaseA_clone. Schemal
Answers
D.
SELECT on all tables, and only secure views in DatabaseA_clone. Schemal
D.
SELECT on all tables, and only secure views in DatabaseA_clone. Schemal
Answers
E.
SELECT on all tables and views in DatabaseA_clone. Schema1
E.
SELECT on all tables and views in DatabaseA_clone. Schema1
Answers
Suggested answer: C, E

Explanation:

According to the Snowflake documentation, when a database or schema is cloned, the clone inherits all granted privileges on the clones of all child objects contained in the source object, such as tables and views. However, the clone of the container itself does not inherit the privileges granted on the source container. Therefore, the ANALYST role will have SELECT privilege on all tables and views in DatabaseA_clone.Schema1, but not USAGE privilege on the database or schema. The type of view (secure or non-secure) does not affect the cloning of privileges.

An Administrator has a warehouse which is intended to have a credit quota set for 3000 for each calendar year. The Administrator needs to create a resource monitor that will perform the following tasks:

1. At 80% usage notify the account Administrators.

2. At 100% usage suspend the warehouse and notify the account Administrators.

3. At 120% stop all running executions, suspend the warehouse, and notify the account Administrators.

Which SQL command will meet these requirements?

A.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
A.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
Answers
B.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
B.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
Answers
C.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do notify and suspend on 120 percent do notify and suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
C.
create or replace resource monitor RM1 with credit_quota=3000 start_timestamp = '2022-01-01 00:00 CET' triggers on 80 percent do notify on 100 percent do notify and suspend on 120 percent do notify and suspend_immediate; alter warehouse WH1 set resource monitor = RM1;
Answers
D.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
D.
create or replace resource monitor RM1 with credit_quota=3000 frequency = yearly triggers on 80 percent do notify on 100 percent do suspend on 120 percent do suspend_immediate; alter warehouse WH1 set resource_monitor = RM1;
Answers
Suggested answer: B

Explanation:

Option B is the correct SQL command to create a resource monitor that meets the requirements. It sets the credit quota to 3000, the frequency to yearly, the start timestamp to January 1, 2022, and the triggers to notify and suspend the warehouse at the specified thresholds. Option A is incorrect because it does not specify the frequency. Option C is incorrect because it does not specify the frequency and it uses notify and suspend instead of suspend and suspend_immediate. Option D is incorrect because it does not specify the start timestamp. For more information about resource monitors, see Working with Resource Monitors and CREATE RESOURCE MONITOR.

A data provider wants to share data from multiple databases with a data consumer account.

How can this be accomplished?

A.
The data provider needs to create a secure view and grant the USAGE privilege on each database referenced by the secure view.
A.
The data provider needs to create a secure view and grant the USAGE privilege on each database referenced by the secure view.
Answers
B.
The data provider needs to create a secure view and grant the REFERENCE_USAGE privilege on each database referenced by the secure view.
B.
The data provider needs to create a secure view and grant the REFERENCE_USAGE privilege on each database referenced by the secure view.
Answers
C.
The data provider needs to create a secure view and grant the REFERENCE_USAGE privilege to a database role to include objects from multiple databases in a share
C.
The data provider needs to create a secure view and grant the REFERENCE_USAGE privilege to a database role to include objects from multiple databases in a share
Answers
D.
The data provider needs to create a secure view and must grant the REFERENCE_USAGE privilege on the database where the secure view is created.
D.
The data provider needs to create a secure view and must grant the REFERENCE_USAGE privilege on the database where the secure view is created.
Answers
Suggested answer: B

Explanation:

Option B is the correct answer because it follows the steps described in the Snowflake documentation for sharing data from multiple databases using secure views. The data provider needs to grant the REFERENCE_USAGE privilege on each database that contains objects referenced by the secure view, and the USAGE privilege only on the database where the secure view is created. Option A is incorrect because it grants the USAGE privilege instead of the REFERENCE_USAGE privilege. Option C is incorrect because it grants the REFERENCE_USAGE privilege to a database role, which is not supported. Option D is incorrect because it grants the REFERENCE_USAGE privilege on the wrong database.

A requirement has been identified to allow members of a corporate Data Product team to bring in data sets from the Snowflake Marketplace. The members of this team use the role DP_TEAM.

What grant statements must the ACCOUNTADMIN execute in order for the DP TEAM role to import and work with data from the Marketplace?

A.
grant marketplace in account to role dp_team; grant create database from share to role dp_team;
A.
grant marketplace in account to role dp_team; grant create database from share to role dp_team;
Answers
B.
grant usage on snowflake_marketplace to role dp_team; grant create database on account to role dp_team;
B.
grant usage on snowflake_marketplace to role dp_team; grant create database on account to role dp_team;
Answers
C.
grant imported privileges on account to role dp_team; grant create database on account to role dp_team;
C.
grant imported privileges on account to role dp_team; grant create database on account to role dp_team;
Answers
D.
grant import share on account to role dp_team; grant create database on account to role dp_team;
D.
grant import share on account to role dp_team; grant create database on account to role dp_team;
Answers
Suggested answer: D

Explanation:

Option D is the correct answer because it follows the steps described in the Snowflake documentation for importing data from the Snowflake Marketplace. The ACCOUNTADMIN role needs to grant the IMPORT SHARE privilege on the account to the DP_TEAM role, which allows the role to import data from any provider in the marketplace. The ACCOUNTADMIN role also needs to grant the CREATE DATABASE privilege on the account to the DP_TEAM role, which allows the role to create a database from a share. Option A is incorrect because there is no MARKETPLACE privilege in Snowflake. Option B is incorrect because the USAGE privilege on SNOWFLAKE_MARKETPLACE is not sufficient to import data from the marketplace. Option C is incorrect because there is no IMPORTED PRIVILEGES privilege in Snowflake.

The following commands were executed:

Grant usage on database PROD to role PROD_ANALYST;

Grant usage on database PROD to role PROD_SUPERVISOR;

Grant ALL PRIVILEGES on schema PROD. WORKING to role PROD_ANALYST;

Grant ALL PRIVILEGES on schema PROD. WORKING to role PROD_SUPERVISOR;

Grant role PROD ANALYST to user A;

Grant role PROD SUPERVISOR to user B;

What authority does each user have on the WORKING schema?

A.
Only user B can create tables, because all privileges were transferred to PROD_SUPERVISOR.
A.
Only user B can create tables, because all privileges were transferred to PROD_SUPERVISOR.
Answers
B.
Tables created by either user A or user B will be visible to both users.
B.
Tables created by either user A or user B will be visible to both users.
Answers
C.
All existing tables in schema PROD. WORKING will be visible to both users.
C.
All existing tables in schema PROD. WORKING will be visible to both users.
Answers
D.
Both user A and user B can create tables in the PROD. WORKING schema.
D.
Both user A and user B can create tables in the PROD. WORKING schema.
Answers
Suggested answer: D

An Administrator receives data from a Snowflake partner. The partner is sharing a dataset that contains multiple secure views. The Administrator would like to configure the data so that only certain roles can see certain secure views.

How can this be accomplished?

A.
Apply RBAC directly onto the partner's shared secure views.
A.
Apply RBAC directly onto the partner's shared secure views.
Answers
B.
Individually grant imported privileges onto the schema in the share.
B.
Individually grant imported privileges onto the schema in the share.
Answers
C.
Clone the data and insert it into a company-owned share and apply the desired RBAC on the new tables.
C.
Clone the data and insert it into a company-owned share and apply the desired RBAC on the new tables.
Answers
D.
Create views over the incoming shared database and apply the desired RBAC onto these views.
D.
Create views over the incoming shared database and apply the desired RBAC onto these views.
Answers
Suggested answer: D

Explanation:

According to the Snowflake documentation1, secure views are only exposed to authorized users who have been granted the role that owns the view. Therefore, applying RBAC directly onto the partner's shared secure views (option A) is not possible, as the administrator does not own those views. Individually granting imported privileges onto the schema in the share (option B) is also not feasible, as the privileges granted on the schema do not apply to existing secure views, only to future ones2. Cloning the data and inserting it into a company-owned share (option C) is not recommended, as it would create unnecessary duplication of data and increase storage costs. The best option is to create views over the incoming shared database and apply the desired RBAC onto these views (option D). This way, the administrator can control the access to the data based on the roles in their account, without modifying the original data or views from the partner.

Total 72 questions
Go to page: of 8