ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

In the query profiler view for a query, which components represent areas that can be used to help optimize query performance? (Select TWO)

A.
Bytes scanned
A.
Bytes scanned
Answers
B.
Bytes sent over the network
B.
Bytes sent over the network
Answers
C.
Number of partitions scanned
C.
Number of partitions scanned
Answers
D.
Percentage scanned from cache
D.
Percentage scanned from cache
Answers
E.
External bytes scanned
E.
External bytes scanned
Answers
Suggested answer: A, C

Explanation:

In the query profiler view, the components that represent areas that can be used to help optimize query performance include 'Bytes scanned' and 'Number of partitions scanned'. 'Bytes scanned' indicates the total amount of data the query had to read and is a direct indicator of the query's efficiency. Reducing the bytes scanned can lead to lower data transfer costs and faster query execution. 'Number of partitions scanned' reflects how well the data is clustered; fewer partitions scanned typically means better performance because the system can skip irrelevant data more effectively.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Query Profiling1

A marketing co-worker has requested the ability to change a warehouse size on their medium virtual warehouse called mktg__WH.

Which of the following statements will accommodate this request?

A.
ALLOW RESIZE ON WAREHOUSE MKTG__WH TO USER MKTG__LEAD;
A.
ALLOW RESIZE ON WAREHOUSE MKTG__WH TO USER MKTG__LEAD;
Answers
B.
GRANT MODIFY ON WAREHOUSE MKTG WH TO ROLE MARKETING;
B.
GRANT MODIFY ON WAREHOUSE MKTG WH TO ROLE MARKETING;
Answers
C.
GRANT MODIFY ON WAREHOUSE MKTG__WH TO USER MKTG__LEAD;
C.
GRANT MODIFY ON WAREHOUSE MKTG__WH TO USER MKTG__LEAD;
Answers
D.
GRANT OPERATE ON WAREHOUSE MKTG WH TO ROLE MARKETING;
D.
GRANT OPERATE ON WAREHOUSE MKTG WH TO ROLE MARKETING;
Answers
Suggested answer: B

Explanation:

:The correct statement to accommodate the request for a marketing co-worker to change the size of their medium virtual warehouse calledmktg__WHis to grant theMODIFYprivilege on the warehouse to theROLE MARKETING. This privilege allows the role to change the warehouse size among other properties.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Access Control Privileges1

When reviewing a query profile, what is a symptom that a query is too large to fit into the memory?

A.
A single join node uses more than 50% of the query time
A.
A single join node uses more than 50% of the query time
Answers
B.
Partitions scanned is equal to partitions total
B.
Partitions scanned is equal to partitions total
Answers
C.
An AggregateOperacor node is present
C.
An AggregateOperacor node is present
Answers
D.
The query is spilling to remote storage
D.
The query is spilling to remote storage
Answers
Suggested answer: D

Explanation:

When a query in Snowflake is too large to fit into the available memory, it will start spilling to remote storage. This is an indication that the memory allocated for the query is insufficient for its execution, and as a result, Snowflake uses remote disk storage to handle the overflow. This spill to remote storage can lead to slower query performance due to the additional I/O operations required.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Query Profile1

Snowpro Core Certification Exam Flashcards2

Which stage type can be altered and dropped?

A.
Database stage
A.
Database stage
Answers
B.
External stage
B.
External stage
Answers
C.
Table stage
C.
Table stage
Answers
D.
User stage
D.
User stage
Answers
Suggested answer: B

Explanation:

External stages can be altered and dropped in Snowflake. An external stage points to an external location, such as an S3 bucket, where data files are stored. Users can modify the stage's definition or drop it entirely if it's no longer needed. This is in contrast to table stages, which are tied to specific tables and cannot be altered or dropped independently.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Stages1

Which command can be used to stage local files from which Snowflake interface?

A.
SnowSQL
A.
SnowSQL
Answers
B.
Snowflake classic web interface (Ul)
B.
Snowflake classic web interface (Ul)
Answers
C.
Snowsight
C.
Snowsight
Answers
D.
.NET driver
D.
.NET driver
Answers
Suggested answer: A

Explanation:

SnowSQL is the command-line client for Snowflake that allows users to execute SQL queries and perform all DDL and DML operations, including staging files for bulk data loading. It is specifically designed for scripting and automating tasks.

References:

SnowPro Core Certification Exam Study Guide

Snowflake Documentation on SnowSQL

https://docs.snowflake.com/en/user-guide/snowsql-use.html

What is the recommended file sizing for data loading using Snowpipe?

A.
A compressed file size greater than 100 MB, and up to 250 MB
A.
A compressed file size greater than 100 MB, and up to 250 MB
Answers
B.
A compressed file size greater than 100 GB, and up to 250 GB
B.
A compressed file size greater than 100 GB, and up to 250 GB
Answers
C.
A compressed file size greater than 10 MB, and up to 100 MB
C.
A compressed file size greater than 10 MB, and up to 100 MB
Answers
D.
A compressed file size greater than 1 GB, and up to 2 GB
D.
A compressed file size greater than 1 GB, and up to 2 GB
Answers
Suggested answer: C

Explanation:

For data loading using Snowpipe, the recommended file size is a compressed file greater than 10 MB and up to 100 MB. This size range is optimal for Snowpipe's continuous, micro-batch loading process, allowing for efficient and timely data ingestion without overwhelming the system with files that are too large or too small.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Snowpipe1

Which services does the Snowflake Cloud Services layer manage? (Select TWO).

A.
Compute resources
A.
Compute resources
Answers
B.
Query execution
B.
Query execution
Answers
C.
Authentication
C.
Authentication
Answers
D.
Data storage
D.
Data storage
Answers
E.
Metadata
E.
Metadata
Answers
Suggested answer: C, E

Explanation:

The Snowflake Cloud Services layer manages a variety of services that are crucial for the operation of the Snowflake platform. Among these services, Authentication and Metadata management are key components. Authentication is essential for controlling access to the Snowflake environment, ensuring that only authorized users can perform actions within the platform. Metadata management involves handling all the metadata related to objects within Snowflake, such as tables, views, and databases, which is vital for the organization and retrieval of data.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation12

https://docs.snowflake.com/en/user-guide/intro-key-concepts.html

What data is stored in the Snowflake storage layer? (Select TWO).

A.
Snowflake parameters
A.
Snowflake parameters
Answers
B.
Micro-partitions
B.
Micro-partitions
Answers
C.
Query history
C.
Query history
Answers
D.
Persisted query results
D.
Persisted query results
Answers
E.
Standard and secure view results
E.
Standard and secure view results
Answers
Suggested answer: B, D

Explanation:

The Snowflake storage layer is responsible for storing data in an optimized, compressed, columnar format. This includesmicro-partitions, which are the fundamental storage units that contain the actual data stored in Snowflake. Additionally,persisted query results, which are the results of queries that have been materialized and stored for future use, are also kept within this layer.This design allows for efficient data retrieval and management within the Snowflake architecture1.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Key Concepts & Architecture | Snowflake Documentation2

In which scenarios would a user have to pay Cloud Services costs? (Select TWO).

A.
Compute Credits = 50 Credits Cloud Services = 10
A.
Compute Credits = 50 Credits Cloud Services = 10
Answers
B.
Compute Credits = 80 Credits Cloud Services = 5
B.
Compute Credits = 80 Credits Cloud Services = 5
Answers
C.
Compute Credits = 10 Credits Cloud Services = 9
C.
Compute Credits = 10 Credits Cloud Services = 9
Answers
D.
Compute Credits = 120 Credits Cloud Services = 10
D.
Compute Credits = 120 Credits Cloud Services = 10
Answers
E.
Compute Credits = 200 Credits Cloud Services = 26
E.
Compute Credits = 200 Credits Cloud Services = 26
Answers
Suggested answer: A, E

Explanation:

In Snowflake, Cloud Services costs are incurred when the Cloud Services usage exceeds 10% of the compute usage (measured in credits). Therefore, scenarios A and E would result in Cloud Services charges because the Cloud Services usage is more than 10% of the compute credits used.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake's official documentation on billing and usage1

What transformations are supported in a CREATE PIPE ... AS COPY ... FROM (....) statement? (Select TWO.)

A.
Data can be filtered by an optional where clause
A.
Data can be filtered by an optional where clause
Answers
B.
Incoming data can be joined with other tables
B.
Incoming data can be joined with other tables
Answers
C.
Columns can be reordered
C.
Columns can be reordered
Answers
D.
Columns can be omitted
D.
Columns can be omitted
Answers
E.
Row level access can be defined
E.
Row level access can be defined
Answers
Suggested answer: A, D

Explanation:

In aCREATE PIPE ... AS COPY ... FROM (....)statement, the supported transformations include filtering data using an optional WHERE clause and omitting columns. The WHERE clause allows for the specification of conditions to filter the data that is being loaded, ensuring only relevant data is inserted into the table. Omitting columns enables the exclusion of certain columns from the data load, which can be useful when the incoming data contains more columns than are needed for the target table.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Simple Transformations During a Load1

Total 716 questions
Go to page: of 72