ExamGecko
Home / Snowflake / COF-C02
Ask Question

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

Question list
Search

Question 181

Report
Export
Collapse

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?

4 minutes
4 minutes
10 minutes
10 minutes
14 minutes
14 minutes
24 minutes
24 minutes
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

asked 23/09/2024
Luis Alfonso Rodriguez Castro
35 questions

Question 182

Report
Export
Collapse

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

Removing a column from the query SELECT list
Removing a column from the query SELECT list
Stopping the virtual warehouse that the query is running against
Stopping the virtual warehouse that the query is running against
Clustering of the data used by the query
Clustering of the data used by the query
Executing the RESULTS_SCAN() table function
Executing the RESULTS_SCAN() table function
Changing a column that is not in the cached query
Changing a column that is not in the cached query
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.

asked 23/09/2024
Krzysztof Dyrdal
48 questions

Question 183

Report
Export
Collapse

Which statement is true about running tasks in Snowflake?

A task can be called using a CALL statement to run a set of predefined SQL commands.
A task can be called using a CALL statement to run a set of predefined SQL commands.
A task allows a user to execute a single SQL statement/command using a predefined schedule.
A task allows a user to execute a single SQL statement/command using a predefined schedule.
A task allows a user to execute a set of SQL commands on a predefined schedule.
A task allows a user to execute a set of SQL commands on a predefined schedule.
A task can be executed using a SELECT statement to run a predefined SQL command.
A task can be executed using a SELECT statement to run a predefined SQL command.
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.

asked 23/09/2024
Rajiesh George
39 questions

Question 184

Report
Export
Collapse

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

When the system has enough load for 2 minutes
When the system has enough load for 2 minutes
When the system has enough load for 6 minutes
When the system has enough load for 6 minutes
When the system has enough load for 8 minutes
When the system has enough load for 8 minutes
When the system has enough load for 10 minutes
When the system has enough load for 10 minutes
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.

asked 23/09/2024
John Johnson
29 questions

Question 185

Report
Export
Collapse

What is the following SQL command used for?

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

To validate external table files in table t1 across all sessions
To validate external table files in table t1 across all sessions
To validate task SQL statements against table t1 in the last 14 days
To validate task SQL statements against table t1 in the last 14 days
To validate a file for errors before it gets executed using a COPY command
To validate a file for errors before it gets executed using a COPY command
To return errors from the last executed COPY command into table t1 in the current session
To return errors from the last executed COPY command into table t1 in the current session
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.

asked 23/09/2024
Herlinda Cantu
40 questions

Question 186

Report
Export
Collapse

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

Avro
Avro
JSON
JSON
ORC
ORC
XML
XML
Delimited (CSV, TSV, etc.)
Delimited (CSV, TSV, etc.)
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

asked 23/09/2024
Liusel Herrera Garcia
43 questions

Question 187

Report
Export
Collapse

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

Queries against large tables where frequent DML occurs
Queries against large tables where frequent DML occurs
Queries against tables larger than 1 TB
Queries against tables larger than 1 TB
Selective point lookup queries
Selective point lookup queries
Queries against a subset of columns in a table
Queries against a subset of columns in a table
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.

asked 23/09/2024
Daniel Yamamoto
43 questions

Question 188

Report
Export
Collapse

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

Identifying queries that will likely run very slowly before executing them
Identifying queries that will likely run very slowly before executing them
Locating queries that consume a high amount of credits
Locating queries that consume a high amount of credits
Identifying logical issues with the queries
Identifying logical issues with the queries
Identifying inefficient micro-partition pruning
Identifying inefficient micro-partition pruning
Data spilling to a local or remote disk
Data spilling to a local or remote disk
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.

asked 23/09/2024
Ankur Patel
42 questions

Question 189

Report
Export
Collapse

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

The data is cloned into a historical object.
The data is cloned into a historical object.
The data moves to Fail-safe
The data moves to Fail-safe
Time Travel on the historical data is dropped.
Time Travel on the historical data is dropped.
The object containing the historical data is dropped.
The object containing the historical data is dropped.
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.

asked 23/09/2024
Michael Madamba
34 questions

Question 190

Report
Export
Collapse

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

ORGADMIN
ORGADMIN
SECURITYADMIN
SECURITYADMIN
SHAREADMIN
SHAREADMIN
ACCOUNTADMIN
ACCOUNTADMIN
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

asked 23/09/2024
Franco Santos
38 questions
Total 716 questions
Go to page: of 72