ExamGecko
Home Home / Snowflake / COF-C02

Snowflake COF-C02 Practice Test - Questions Answers, Page 9

Question list
Search
Search

What is a responsibility of Snowflake's virtual warehouses?

A.
Infrastructure management
A.
Infrastructure management
Answers
B.
Metadata management
B.
Metadata management
Answers
C.
Query execution
C.
Query execution
Answers
D.
Query parsing and optimization
D.
Query parsing and optimization
Answers
E.
Management of the storage layer
E.
Management of the storage layer
Answers
Suggested answer: C

Explanation:

The primary responsibility of Snowflake's virtual warehouses is to execute queries. Virtual warehouses are one of the key components of Snowflake's architecture, providing the compute power required to perform data processing tasks such as running SQL queries, performing joins, aggregations, and other data manipulations.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Virtual Warehouses1

Which of the following compute resources or features are managed by Snowflake? (Select TWO).

A.
Execute a COPY command
A.
Execute a COPY command
Answers
B.
Updating data
B.
Updating data
Answers
C.
Snowpipe
C.
Snowpipe
Answers
D.
AUTOMATIC__CLUSTERING
D.
AUTOMATIC__CLUSTERING
Answers
E.
Scaling up a warehouse
E.
Scaling up a warehouse
Answers
Suggested answer: C, E

Explanation:

Snowflake manages various compute resources and features, including Snowpipe and the ability to scale up a warehouse. Snowpipe is Snowflake's continuous data ingestion service that allows users to load data as soon as it becomes available. Scaling up a warehouse refers to increasing the compute resources allocated to a virtual warehouse to handle larger workloads or improve performance.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Snowpipe and Virtual Warehouses1

What happens when a virtual warehouse is resized?

A.
When increasing the size of an active warehouse the compute resource for all running and queued queries on the warehouse are affected
A.
When increasing the size of an active warehouse the compute resource for all running and queued queries on the warehouse are affected
Answers
B.
When reducing the size of a warehouse the compute resources are removed only when they are no longer being used to execute any current statements.
B.
When reducing the size of a warehouse the compute resources are removed only when they are no longer being used to execute any current statements.
Answers
C.
The warehouse will be suspended while the new compute resource is provisioned and will resume automatically once provisioning is complete.
C.
The warehouse will be suspended while the new compute resource is provisioned and will resume automatically once provisioning is complete.
Answers
D.
Users who are trying to use the warehouse will receive an error message until the resizing is complete
D.
Users who are trying to use the warehouse will receive an error message until the resizing is complete
Answers
Suggested answer: A

Explanation:

When a virtual warehouse in Snowflake is resized, specifically when it is increased in size, the additional compute resources become immediately available to all running and queued queries. This means that the performance of these queries can improve due to the increased resources.Conversely, when the size of a warehouse is reduced, the compute resources are not removed until they are no longer being used by any current operations1.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Virtual Warehouses2

What tasks can be completed using the copy command? (Select TWO)

A.
Columns can be aggregated
A.
Columns can be aggregated
Answers
B.
Columns can be joined with an existing table
B.
Columns can be joined with an existing table
Answers
C.
Columns can be reordered
C.
Columns can be reordered
Answers
D.
Columns can be omitted
D.
Columns can be omitted
Answers
E.
Data can be loaded without the need to spin up a virtual warehouse
E.
Data can be loaded without the need to spin up a virtual warehouse
Answers
Suggested answer: C, D

Explanation:

The COPY command in Snowflake allows for the reordering of columns as they are loaded into a table, and it also permits the omission of columns from the source file during the load process. This provides flexibility in handling the schema of the data being ingested. References: [COF-C02] SnowPro Core Certification Exam Study Guide

What feature can be used to reorganize a very large table on one or more columns?

A.
Micro-partitions
A.
Micro-partitions
Answers
B.
Clustering keys
B.
Clustering keys
Answers
C.
Key partitions
C.
Key partitions
Answers
D.
Clustered partitions
D.
Clustered partitions
Answers
Suggested answer: B

Explanation:

Clustering keys in Snowflake are used to reorganize large tables based on one or more columns. This feature optimizes the arrangement of data within micro-partitions to improve query performance, especially for large tables where efficient data retrieval is crucial. References: [COF-C02] SnowPro Core Certification Exam Study Guide

https://docs.snowflake.com/en/user-guide/tables-clustering-keys.html

What SQL command would be used to view all roles that were granted to user.1?

A.
show grants to user USER1;
A.
show grants to user USER1;
Answers
B.
show grants of user USER1;
B.
show grants of user USER1;
Answers
C.
describe user USER1;
C.
describe user USER1;
Answers
D.
show grants on user USER1;
D.
show grants on user USER1;
Answers
Suggested answer: A

Explanation:

The correct command to view all roles granted to a specific user in Snowflake isSHOW GRANTS TO USER <user_name>;. This command lists all access control privileges that have been explicitly granted to the specified user. References:SHOW GRANTS | Snowflake Documentation

Which of the following can be executed/called with Snowpipe?

A.
A User Defined Function (UDF)
A.
A User Defined Function (UDF)
Answers
B.
A stored procedure
B.
A stored procedure
Answers
C.
A single copy_into statement
C.
A single copy_into statement
Answers
D.
A single insert__into statement
D.
A single insert__into statement
Answers
Suggested answer: C

Explanation:

Snowpipe is used for continuous, automated data loading into Snowflake. It uses aCOPY INTO <table>statement within a pipe object to load data from files as soon as they are available in a stage. Snowpipe does not execute UDFs, stored procedures, or insert statements. References:Snowpipe | Snowflake Documentation

What Snowflake role must be granted for a user to create and manage accounts?

A.
ACCOUNTADMIN
A.
ACCOUNTADMIN
Answers
B.
ORGADMIN
B.
ORGADMIN
Answers
C.
SECURITYADMIN
C.
SECURITYADMIN
Answers
D.
SYSADMIN
D.
SYSADMIN
Answers
Suggested answer: A

Explanation:

The ACCOUNTADMIN role is required for a user to create and manage accounts in Snowflake.This role has the highest level of privileges and is responsible for managing all aspects of the Snowflake account, including the ability to create and manage other user accounts1.

https://docs.snowflake.com/en/user-guide/security-access-control-considerations.html

When unloading to a stage, which of the following is a recommended practice or approach?

A.
Set SINGLE: = true for larger files
A.
Set SINGLE: = true for larger files
Answers
B.
Use OBJECT_CONSTRUCT ( * ) when using Parquet
B.
Use OBJECT_CONSTRUCT ( * ) when using Parquet
Answers
C.
Avoid the use of the CAST function
C.
Avoid the use of the CAST function
Answers
D.
Define an individual file format
D.
Define an individual file format
Answers
Suggested answer: D

Explanation:

When unloading data to a stage, it is recommended to define an individual file format.This ensures that the data is unloaded in a consistent and expected format, which can be crucial for downstream processing and analysis2

When is the result set cache no longer available? (Select TWO)

A.
When another warehouse is used to execute the query
A.
When another warehouse is used to execute the query
Answers
B.
When another user executes the query
B.
When another user executes the query
Answers
C.
When the underlying data has changed
C.
When the underlying data has changed
Answers
D.
When the warehouse used to execute the query is suspended
D.
When the warehouse used to execute the query is suspended
Answers
E.
When it has been 24 hours since the last query
E.
When it has been 24 hours since the last query
Answers
Suggested answer: C, E

Explanation:

The result set cache in Snowflake is invalidated and no longer available when the underlying data of the query results has changed, ensuring that queries return the most current data.Additionally, the cache expires after 24 hours to maintain the efficiency and accuracy of data retrieval1.

Total 716 questions
Go to page: of 72