ExamGecko
Home Home / Snowflake / ADA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











What are characteristics of data replication in Snowflake? (Select THREE).

A.
The ALTER DATABASE ... ENABLE REPLICATION TO ACCOUNTS command must be issued from the primary account.
A.
The ALTER DATABASE ... ENABLE REPLICATION TO ACCOUNTS command must be issued from the primary account.
Answers
B.
Users must be granted REPLICATIONADMIN privileges in order to enable replication.
B.
Users must be granted REPLICATIONADMIN privileges in order to enable replication.
Answers
C.
To start replication run the ALTER DATABASE ... REFRESH command on the account where the secondary database resides.
C.
To start replication run the ALTER DATABASE ... REFRESH command on the account where the secondary database resides.
Answers
D.
Replication can only occur within the same cloud provider.
D.
Replication can only occur within the same cloud provider.
Answers
E.
Databases created from shares can be replicated.
E.
Databases created from shares can be replicated.
Answers
F.
Users can have unlimited primary databases and they can be replicated to an unlimited number of accounts if all accounts are within the same organization.
F.
Users can have unlimited primary databases and they can be replicated to an unlimited number of accounts if all accounts are within the same organization.
Answers
Suggested answer: A, E, F

Explanation:

* Option A is correct because the ALTER DATABASE ... ENABLE REPLICATION TO ACCOUNTS command must be issued from the primary account that owns the database to be replicated1.

* Option B is incorrect because users must be granted REPLICATIONGRANTER privileges in order to enable replication1.

* Option C is incorrect because to start replication, the ALTER DATABASE ... REFRESH command must be run on the primary database, not the secondary database1.

* Option D is incorrect because replication can occur across different cloud providers, as well as across regions2.

* Option E is correct because databases created from shares can be replicated, as long as the share is active and the database is not dropped or altered1.

* Option F is correct because users can have unlimited primary databases and they can be replicated to an unlimited number of accounts if all accounts are within the same organization1.

An Administrator has a user who needs to be able to suspend and resume a task based on the current virtual warehouse load, but this user should not be able to modify the task or start a new run.

What privileges should be granted to the user to meet these requirements? (Select TWO).

A.
EXECUTE TASK on the task
A.
EXECUTE TASK on the task
Answers
B.
OWNERSHIP on the task
B.
OWNERSHIP on the task
Answers
C.
OPERATE on the task
C.
OPERATE on the task
Answers
D.
USAGE on the database and schema containing the task
D.
USAGE on the database and schema containing the task
Answers
E.
OWNERSHIP on the database and schema containing the task
E.
OWNERSHIP on the database and schema containing the task
Answers
Suggested answer: C, D

Explanation:

The user needs the OPERATE privilege on the task to suspend and resume it, and the USAGE privilege on the database and schema containing the task to access it1.The EXECUTE TASK privilege is not required for suspending and resuming a task, only for triggering a new run1. The OWNERSHIP privilege on the task or the database and schema would allow the user to modify or drop the task, which is not desired.

A large international company with many operating regions requires data to be shared bi-directionally among all offices (head office to regional offices and regional offices among themselves). This company is a Snowflake account holder with European operations deployed in Microsoft Azure (single region) while North American regional offices are using AWS (single region) as their deployment cloud. This setup is required to comply with Personal Identifiable Information (PII) regulations in some of the European countries. The corporate head office is in Europe.

How can this data be shared bi-directionally, while MINIMIZING costs?

A.
Use data replication everywhere to reduce costs associated with same-region sharing.
A.
Use data replication everywhere to reduce costs associated with same-region sharing.
Answers
B.
Use the PUT command to move files to an Amazon S3 bucket and Azure Blobs, and use an external file management application to move files within the corporate VPC.
B.
Use the PUT command to move files to an Amazon S3 bucket and Azure Blobs, and use an external file management application to move files within the corporate VPC.
Answers
C.
Move all the Snowflake accounts to a single region, and implement data sharing.
C.
Move all the Snowflake accounts to a single region, and implement data sharing.
Answers
D.
Use bi-directional data sharing among offices in the same region and replication among offices across the continents.
D.
Use bi-directional data sharing among offices in the same region and replication among offices across the continents.
Answers
Suggested answer: D

Explanation:

According to the Snowflake documentation1, data sharing is a feature that allows sharing selected objects in a database in one account with other accounts in the same organization, without copying or transferring any data. Data sharing is supported across regions and across cloud platforms, but it requires enabling account database replication for both the source and target accounts2. Data replication is a feature that allows replicating objects from a source account to one or more target accounts in the same organization, providing read-only access for the replicated objects. Data replication is also supported across regions and across cloud platforms, but it incurs additional storage costs for the replicated data2. Therefore, the best way to share data bi-directionally among all offices, while minimizing costs, is to use data sharing among offices in the same region, which does not require replication or additional storage, and use replication among offices across the continents, which provides near real-time access to the shared data. Option A is incorrect because using data replication everywhere would increase the costs associated with additional storage and compute resources for the replicated data. Option B is incorrect because using the PUT command to move files to an Amazon S3 bucket and Azure Blobs, and using an external file management application to move files within the corporate VPC, would not leverage the benefits of Snowflake's data sharing and replication features, and would also incur additional costs and complexity for data transfer and synchronization. Option C is incorrect because moving all the Snowflake accounts to a single region would violate the PII regulations in some of the European countries, and would also incur additional costs and complexity for data migration and consolidation.

What are benefits of using Snowflake organizations? (Select TWO).

A.
Administrators can change Snowflake account editions on-demand based on need.
A.
Administrators can change Snowflake account editions on-demand based on need.
Answers
B.
Administrators can monitor and understand usage across all accounts in the organization.
B.
Administrators can monitor and understand usage across all accounts in the organization.
Answers
C.
Administrators can simplify data movement across all accounts within the organization.
C.
Administrators can simplify data movement across all accounts within the organization.
Answers
D.
User administration is simplified across all accounts within the organization.
D.
User administration is simplified across all accounts within the organization.
Answers
E.
Administrators have the ability to create accounts in any available cloud provider or region.
E.
Administrators have the ability to create accounts in any available cloud provider or region.
Answers
Suggested answer: B, E

Explanation:

According to the Snowflake documentation1, organizations are a feature that allows linking the accounts owned by a business entity, simplifying account management and billing, replication and failover, data sharing, and other account administration tasks. Some of the benefits of using organizations are:

* Administrators can monitor and understand usage across all accounts in the organization using the ORGANIZATION_USAGE schema, which provides historical usage data for all accounts in the organization via views in a shared database named SNOWFLAKE2. This can help to optimize costs and performance across the organization.

* Administrators have the ability to create accounts in any available cloud provider or region using the CREATE ACCOUNT command, which allows specifying the cloud platform and region for the new account3. This can help to meet the business needs and compliance requirements of the organization.

Option A is incorrect because administrators cannot change Snowflake account editions on-demand based on need, but rather have to contact Snowflake Support to request an edition change4. Option C is incorrect because administrators cannot simplify data movement across all accounts within the organization, but rather have to enable account database replication for both the source and target accounts, and use the ALTER DATABASE ... ENABLE REPLICATION TO ACCOUNTS command to promote a local database to serve as the primary database and enable replication to the target accounts5. Option D is incorrect because user administration is not simplified across all accounts within the organization, but rather requires creating and managing users, roles, and privileges for each account separately, unless using a federated authentication method such as SSO or SCIM.

What access control policy will be put into place when future grants are assigned to both database and schema objects?

A.
Database privileges will take precedence over schema privileges.
A.
Database privileges will take precedence over schema privileges.
Answers
B.
Schema privileges will take precedence over database privileges.
B.
Schema privileges will take precedence over database privileges.
Answers
C.
An access policy combining both the database object and the schema object will be used, with the most permissive policy taking precedence.
C.
An access policy combining both the database object and the schema object will be used, with the most permissive policy taking precedence.
Answers
D.
An access policy combining both the database object and the schema object will be used, with the most restrictive policy taking precedence.
D.
An access policy combining both the database object and the schema object will be used, with the most restrictive policy taking precedence.
Answers
Suggested answer: B

Explanation:

When future grants are defined on the same object type for a database and a schema in the same database, the schema-level grants take precedence over the database level grants, and the database level grants are ignored4. This behavior applies to privileges on future objects granted to one role or different roles4. Future grants allow defining an initial set of privileges to grant on new (i.e. future) objects of a certain type in a database or a schema3. As soon as the new objects are created inside the database or schema, the predefined set of privileges are assigned to the object automatically without any manual intervention3.

An Administrator is evaluating a complex query using the EXPLAIN command. The Globalstats operation indicates 500 partitionsAssigned.

The Administrator then runs the query to completion and opens the Query Profile. They notice that the partitions scanned value is 429.

Why might the actual partitions scanned be lower than the estimate from the EXPLAIN output?

A.
The EXPLAIN results always include a 10-15% safety factor in order to provide conservative estimates.
A.
The EXPLAIN results always include a 10-15% safety factor in order to provide conservative estimates.
Answers
B.
The GlobalStats partition assignment includes the micro-partitions that will be assigned for preservation of the query results.
B.
The GlobalStats partition assignment includes the micro-partitions that will be assigned for preservation of the query results.
Answers
C.
Runtime optimizations such as join pruning can reduce the number of partitions and bytes scanned during query execution.
C.
Runtime optimizations such as join pruning can reduce the number of partitions and bytes scanned during query execution.
Answers
D.
In-flight data compression will result in fewer micro-partitions being scanned at the virtual warehouse layer than were identified at the storage layer.
D.
In-flight data compression will result in fewer micro-partitions being scanned at the virtual warehouse layer than were identified at the storage layer.
Answers
Suggested answer: C

Explanation:

The EXPLAIN command returns the logical execution plan for a query, which shows the upper bound estimates for the number of partitions and bytes that might be scanned by the query1. However, these estimates do not account for the runtime optimizations that Snowflake performs to improve the query performance and reduce the resource consumption2. One of these optimizations is join pruning, which eliminates unnecessary partitions from the join inputs based on the join predicates2. This can result in fewer partitions and bytes scanned than the estimates from the EXPLAIN output3. Therefore, the actual partitions scanned value in the Query Profile can be lower than the partitionsAssigned value in the EXPLAIN output4.

Review the output of the SHOW statement below which displays the current grants on the table DB1. S1. T1:

This statement is executed:

USE ROLE ACCOUNTADMIN;

DROP ROLE A;

What will occur?

A.
The table object DB1. S1. T1 will be dropped.
A.
The table object DB1. S1. T1 will be dropped.
Answers
B.
The OWNERSHIP privilege on table DB1. S1. T1 will be transferred to the ACCOUNTADMIN role.
B.
The OWNERSHIP privilege on table DB1. S1. T1 will be transferred to the ACCOUNTADMIN role.
Answers
C.
The SELECT privilege on table DB1. S1. T1 to role B will be shown as GRANTED_BY the role ACCOUNTADMIN.
C.
The SELECT privilege on table DB1. S1. T1 to role B will be shown as GRANTED_BY the role ACCOUNTADMIN.
Answers
D.
The SELECT privileges for roles B and C will remain.
D.
The SELECT privileges for roles B and C will remain.
Answers
Suggested answer: D

Explanation:

Dropping role A does not affect the SELECT privileges granted to roles B and C on the table DB1.S1.T1. According to theSnowflake documentation, dropping a role revokes all privileges granted to the role, but does not revoke any privileges granted by the role. Therefore, the OWNERSHIP privilege on the table DB1.S1.T1 will be revoked from role A, but the SELECT privileges granted by role A to role B and by role B to role C will remain. The GRANTED_BY column will still show the original grantor of the privilege, not the ACCOUNTADMIN role.

A company's Snowflake account has multiple roles. Each role should have access only to data that resides in the given role's specific region.

When creating a row access policy, which code snippet below will provide privileges to the role ALL_ACCESS_ROLE to see all rows regardless of region, while the other roles can only see rows for their own regions?

A.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL ACCESS_ROLE' = current_role () and exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
A.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL ACCESS_ROLE' = current_role () and exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
Answers
B.
create or replace row access policy region policy as (region_value varchar) returns boolean -> exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
B.
create or replace row access policy region policy as (region_value varchar) returns boolean -> exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
Answers
C.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL_ACCESS_ROLE' = current_role () or exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
C.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL_ACCESS_ROLE' = current_role () or exists ( select 1 from entitlement_table where role = current_role () and region = region_value )
Answers
D.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL ACCESS ROLE' = current_role () )
D.
create or replace row access policy region policy as (region_value varchar) returns boolean -> 'ALL ACCESS ROLE' = current_role () )
Answers
Suggested answer: C

Explanation:

This code snippet will create a row access policy that returns true if the current role is ALL_ACCESS_ROLE or if the current role matches the region value in the entitlement_table. This means that the ALL_ACCESS_ROLE can see all rows regardless of region, while the other roles can only see rows for their own regions. According to theSnowflake documentation, the CURRENT_ROLE context function returns the name of the current role for the session. The EXISTS function returns true if the subquery returns any rows. The OR operator returns true if either operand is true. Therefore, this code snippet satisfies the requirements of the question.

An Administrator needs to create a sample of the table LINEITEM. The sample should not be repeatable and the sampling function should take the data by blocks of rows.

What select command will generate a sample of 20% of the table?

A.
select * from LINEITEM sample bernoulli (20);
A.
select * from LINEITEM sample bernoulli (20);
Answers
B.
select * from LINEITEM sample system (20);
B.
select * from LINEITEM sample system (20);
Answers
C.
select * from LINEITEM tablesample block (20 rows);
C.
select * from LINEITEM tablesample block (20 rows);
Answers
D.
select * from LINEITEM tablesample system (20) seed (1);
D.
select * from LINEITEM tablesample system (20) seed (1);
Answers
Suggested answer: B

Explanation:

This command will generate a sample of 20% of the table by using the SYSTEM (or BLOCK) sampling method, which selects each block of rows with a probability of 20/100. This method is suitable for taking data by blocks of rows, as the question requires. According to theSnowflake documentation, ''SYSTEM (or BLOCK): Includes each block of rows with a probability of p/100. Similar to flipping a weighted coin for each block of rows. This method does not support fixed-size sampling.'' The other options are either incorrect or do not meet the requirements of the question. Option A uses the BERNOULLI (or ROW) sampling method, which selects each row with a probability of 20/100, but does not take data by blocks of rows. Option C uses the BLOCK sampling method, but specifies a fixed number of rows (20) instead of a percentage (20%). Option D uses the SYSTEM sampling method, but specifies a seed value (1), which makes the sampling repeatable, contrary to the question.

How should an Administrator configure a Snowflake account to use AWS PrivateLink?

A.
Create CNAME records in the DNS.
A.
Create CNAME records in the DNS.
Answers
B.
Contact Snowflake Support.
B.
Contact Snowflake Support.
Answers
C.
Block public access to Snowflake.
C.
Block public access to Snowflake.
Answers
D.
Use SnowCD to evaluate the network connection.
D.
Use SnowCD to evaluate the network connection.
Answers
Suggested answer: A

Explanation:

To configure a Snowflake account to use AWS PrivateLink, the Administrator needs to create CNAME records in the DNS that point to the private endpoints provided by Snowflake. This allows the clients to connect to Snowflake using the same URL as before, but with private connectivity. According to theSnowflake documentation, ''After you have created the VPC endpoints, Snowflake provides you with a list of private endpoints for your account. You must create CNAME records in your DNS that point to these private endpoints. The CNAME records must use the same hostnames as the original Snowflake URLs for your account.'' The other options are either incorrect or not sufficient to configure AWS PrivateLink.Option B is not necessary, as the Administrator can enable AWS PrivateLink using the SYSTEM$AUTHORIZE_PRIVATELINK function1.Option C is not recommended, as it may prevent some data traffic from reaching Snowflake, such as large result sets stored on AWS S32.Option D is not related to AWS PrivateLink, but to Snowflake Connectivity Diagnostic (SnowCD), which is a tool for diagnosing network issues between clients and Snowflake3.

Total 72 questions
Go to page: of 8