ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

A single user of a virtual warehouse has set the warehouse to auto-resume and auto-suspend after 10 minutes. The warehouse is currently suspended and the user performs the following actions:

1. Runs a query that takes 3 minutes to complete

2. Leaves for 15 minutes

3. Returns and runs a query that takes 10 seconds to complete

4. Manually suspends the warehouse as soon as the last query was completed

When the user returns, how much billable compute time will have been consumed?

A.
4 minutes
A.
4 minutes
Answers
B.
10 minutes
B.
10 minutes
Answers
C.
14 minutes
C.
14 minutes
Answers
D.
24 minutes
D.
24 minutes
Answers
Suggested answer: C

Explanation:

The billable compute time includes the time the warehouse is running queries plus the auto-suspend time after the last query if the warehouse is not manually suspended. In this scenario, the warehouse runs for 3 minutes, suspends after 10 minutes of inactivity, resumes for a 10-second query, and then is manually suspended. The total billable time is the sum of the initial 3 minutes, the 10 minutes of auto-suspend time, and the brief period for the 10-second query, which is rounded up to the next full minute due to Snowflake's billing practices.References:[COF-C02] SnowPro Core Certification Exam Study Guide

What actions will prevent leveraging of the ResultSet cache? (Choose two.)

A.
Removing a column from the query SELECT list
A.
Removing a column from the query SELECT list
Answers
B.
Stopping the virtual warehouse that the query is running against
B.
Stopping the virtual warehouse that the query is running against
Answers
C.
Clustering of the data used by the query
C.
Clustering of the data used by the query
Answers
D.
Executing the RESULTS_SCAN() table function
D.
Executing the RESULTS_SCAN() table function
Answers
E.
Changing a column that is not in the cached query
E.
Changing a column that is not in the cached query
Answers
Suggested answer: B, D

Explanation:

The ResultSet cache is leveraged to quickly return results for repeated queries. Actions that prevent leveraging this cache include stopping the virtual warehouse that the query is running against (B) and executing the RESULTS_SCAN() table function (D).Stopping the warehouse clears the local disk cache, including the ResultSet cache1. The RESULTS_SCAN() function is used to retrieve the result of a previously executed query, which bypasses the need for the ResultSet cache.

Which statement is true about running tasks in Snowflake?

A.
A task can be called using a CALL statement to run a set of predefined SQL commands.
A.
A task can be called using a CALL statement to run a set of predefined SQL commands.
Answers
B.
A task allows a user to execute a single SQL statement/command using a predefined schedule.
B.
A task allows a user to execute a single SQL statement/command using a predefined schedule.
Answers
C.
A task allows a user to execute a set of SQL commands on a predefined schedule.
C.
A task allows a user to execute a set of SQL commands on a predefined schedule.
Answers
D.
A task can be executed using a SELECT statement to run a predefined SQL command.
D.
A task can be executed using a SELECT statement to run a predefined SQL command.
Answers
Suggested answer: B

Explanation:

In Snowflake, a task allows a user to execute a single SQL statement/command using a predefined schedule (B). Tasks are used to automate the execution of SQL statements at scheduled intervals.

In an auto-scaling multi-cluster virtual warehouse with the setting SCALING_POLICY = ECONOMY enabled, when is another cluster started?

A.
When the system has enough load for 2 minutes
A.
When the system has enough load for 2 minutes
Answers
B.
When the system has enough load for 6 minutes
B.
When the system has enough load for 6 minutes
Answers
C.
When the system has enough load for 8 minutes
C.
When the system has enough load for 8 minutes
Answers
D.
When the system has enough load for 10 minutes
D.
When the system has enough load for 10 minutes
Answers
Suggested answer: A

Explanation:

In an auto-scaling multi-cluster virtual warehouse with the SCALING_POLICY set to ECONOMY, another cluster is started when the system has enough load for 2 minutes (A).This policy is designed to optimize the balance between performance and cost, starting additional clusters only when the sustained load justifies it2.

What is the following SQL command used for?

Select * from table(validate(t1, job_id => '_last'));

A.
To validate external table files in table t1 across all sessions
A.
To validate external table files in table t1 across all sessions
Answers
B.
To validate task SQL statements against table t1 in the last 14 days
B.
To validate task SQL statements against table t1 in the last 14 days
Answers
C.
To validate a file for errors before it gets executed using a COPY command
C.
To validate a file for errors before it gets executed using a COPY command
Answers
D.
To return errors from the last executed COPY command into table t1 in the current session
D.
To return errors from the last executed COPY command into table t1 in the current session
Answers
Suggested answer: D

Explanation:

The SQL commandSelect * from table(validate(t1, job_id => '_last'));is used to return errors from the last executed COPY command into table t1 in the current session.It checks the results of the most recent data load operation and provides details on any errors that occurred during that process1.

Which file formats are supported for unloading data from Snowflake? (Choose two.)

A.
Avro
A.
Avro
Answers
B.
JSON
B.
JSON
Answers
C.
ORC
C.
ORC
Answers
D.
XML
D.
XML
Answers
E.
Delimited (CSV, TSV, etc.)
E.
Delimited (CSV, TSV, etc.)
Answers
Suggested answer: B, E

Explanation:

Snowflake supports unloading data in JSON and delimited file formats such as CSV and TSV.These formats are commonly used for data interchange and are supported by Snowflake for unloading operations

The Snowflake Search Optimization Services supports improved performance of which kind of query?

A.
Queries against large tables where frequent DML occurs
A.
Queries against large tables where frequent DML occurs
Answers
B.
Queries against tables larger than 1 TB
B.
Queries against tables larger than 1 TB
Answers
C.
Selective point lookup queries
C.
Selective point lookup queries
Answers
D.
Queries against a subset of columns in a table
D.
Queries against a subset of columns in a table
Answers
Suggested answer: C

Explanation:

The Snowflake Search Optimization Service is designed to support improved performance for selective point lookup queries.These are queries that retrieve specific records from a database, often based on a unique identifier or a small set of criteria3.

What are common issues found by using the Query Profile? (Choose two.)

A.
Identifying queries that will likely run very slowly before executing them
A.
Identifying queries that will likely run very slowly before executing them
Answers
B.
Locating queries that consume a high amount of credits
B.
Locating queries that consume a high amount of credits
Answers
C.
Identifying logical issues with the queries
C.
Identifying logical issues with the queries
Answers
D.
Identifying inefficient micro-partition pruning
D.
Identifying inefficient micro-partition pruning
Answers
E.
Data spilling to a local or remote disk
E.
Data spilling to a local or remote disk
Answers
Suggested answer: D, E

Explanation:

The Query Profile in Snowflake is used to identify performance issues with queries. Common issues that can be found using the Query Profile include identifying inefficient micro-partition pruning (D) and data spilling to a local or remote disk (E).Micro-partition pruning is related to the efficiency of query execution, and data spilling occurs when the memory is insufficient, causing the query to write data to disk, which can slow down the query performance1.

What happens to historical data when the retention period for an object ends?

A.
The data is cloned into a historical object.
A.
The data is cloned into a historical object.
Answers
B.
The data moves to Fail-safe
B.
The data moves to Fail-safe
Answers
C.
Time Travel on the historical data is dropped.
C.
Time Travel on the historical data is dropped.
Answers
D.
The object containing the historical data is dropped.
D.
The object containing the historical data is dropped.
Answers
Suggested answer: C

Explanation:

When the retention period for an object ends in Snowflake, Time Travel on the historical data is dropped .This means that the ability to access historical data via Time Travel is no longer available once the retention period has expired2.

By default, which Snowflake role is required to create a share?

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

Explanation:

By default, the Snowflake role required to create a share is ACCOUNTADMIN (D).This role has the necessary privileges to perform administrative tasks, including creating shares for data sharing purposes

Total 716 questions
Go to page: of 72