ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

What is the recommended way to change the existing file format type in my format from CSV to JSON?

A.
ALTER FILE FORMAT my_format SET TYPE=JSON;
A.
ALTER FILE FORMAT my_format SET TYPE=JSON;
Answers
B.
ALTER FILE FORMAT my format SWAP TYPE WITH JSON;
B.
ALTER FILE FORMAT my format SWAP TYPE WITH JSON;
Answers
C.
CREATE OR REPLACE FILE FORMAT my format TYPE-JSON;
C.
CREATE OR REPLACE FILE FORMAT my format TYPE-JSON;
Answers
D.
REPLACE FILE FORMAT my format TYPE-JSON;
D.
REPLACE FILE FORMAT my format TYPE-JSON;
Answers
Suggested answer: A

Explanation:

To change the existing file format type from CSV to JSON, the recommended way is to use the ALTER FILE FORMAT command with the SET TYPE=JSON clause. This alters the file format specification to use JSON instead of CSV.References:Based on my internal knowledge as of 2021.

What technique does Snowflake use to limit the number of micro-partitions scanned by each query?

A.
B-tree
A.
B-tree
Answers
B.
Indexing
B.
Indexing
Answers
C.
Map reduce
C.
Map reduce
Answers
D.
Pruning
D.
Pruning
Answers
Suggested answer: D

Explanation:

Snowflake uses a technique called pruning to limit the number of micro-partitions scanned by each query.Pruning effectively filters out unnecessary micro-partitions based on the query's filter conditions, which can significantly improve query performance by reducing the amount of data scanned1.

Which command is used to unload files from an internal or external stage to a local file system?

A.
COPY INTO
A.
COPY INTO
Answers
B.
GET
B.
GET
Answers
C.
PUT
C.
PUT
Answers
D.
TRANSFER
D.
TRANSFER
Answers
Suggested answer: B

Explanation:

The command used to unload files from an internal or external stage to a local file system in Snowflake is the GET command.This command allows users to download data files that have been staged, making them available on the local file system for further use23.

Which feature is integrated to support Multi-Factor Authentication (MFA) at Snowflake?

A.
Authy
A.
Authy
Answers
B.
Duo Security
B.
Duo Security
Answers
C.
One Login
C.
One Login
Answers
D.
RSA SecurlD Access
D.
RSA SecurlD Access
Answers
Suggested answer: B

Explanation:

Snowflake integrates Duo Security to support Multi-Factor Authentication (MFA).This feature provides increased login security for users connecting to Snowflake, and it is managed completely by Snowflake without the need for users to sign up separately with Duo4.

If queries start to queue in a multi-cluster virtual warehouse, an additional compute cluster starts immediately under what setting?

A.
Auto-scale mode
A.
Auto-scale mode
Answers
B.
Maximized mode
B.
Maximized mode
Answers
C.
Economy scaling policy
C.
Economy scaling policy
Answers
D.
Standard scaling policy
D.
Standard scaling policy
Answers
Suggested answer: A

Explanation:

In Snowflake, when queries begin to queue in a multi-cluster virtual warehouse, an additional compute cluster starts immediately if the warehouse is set to auto-scale mode.This mode allows Snowflake to automatically add or resume additional clusters as soon as the workload increases, and similarly, shut down or pause the additional clusters when the load decreases

Which Snowflake object helps evaluate virtual warehouse performance impacted by query queuing?

A.
Resource monitor
A.
Resource monitor
Answers
B.
Account_usage. query_history
B.
Account_usage. query_history
Answers
C.
Information_schema.warehouse_load_history
C.
Information_schema.warehouse_load_history
Answers
D.
Information schema.warehouse metering history
D.
Information schema.warehouse metering history
Answers
Suggested answer: C

Explanation:

The Snowflake object that helps evaluate virtual warehouse performance impacted by query queuing is the Information_schema.warehouse_load_history.This view provides historical data about the load on a warehouse, including the average number of queries that were running or queued within a specific interval, which can be used to assess performance and identify potential issues with query queuing3.

A Snowflake user has two tables that contain numeric values and is trying to find out which values are present in both tables. Which set operator should be used?

A.
INTERSECT
A.
INTERSECT
Answers
B.
MFRCK
B.
MFRCK
Answers
C.
MINUS
C.
MINUS
Answers
D.
UNION
D.
UNION
Answers
Suggested answer: A

Explanation:

To find out which numeric values are present in both tables, the INTERSECT set operator should be used.This operator returns rows from one query's result set which also appear in another query's result set, effectively finding the common elements between the two tables45.

What type of columns does Snowflake recommend to be used as clustering keys? (Select TWO).

A.
A VARIANT column
A.
A VARIANT column
Answers
B.
A column with very low cardinality
B.
A column with very low cardinality
Answers
C.
A column with very high cardinality
C.
A column with very high cardinality
Answers
D.
A column that is most actively used in selective filters
D.
A column that is most actively used in selective filters
Answers
E.
A column that is most actively used in join predicates
E.
A column that is most actively used in join predicates
Answers
Suggested answer: C, D

Explanation:

Snowflake recommends using columns with very high cardinality and those that are most actively used in selective filters as clustering keys. High cardinality columns have a wide range of unique values, which helps in evenly distributing the data across micro-partitions. Columns used in selective filters help in pruning the number of micro-partitions to scan, thus improving query performance. References: Based on general database optimization principles.

Which of the following describes the Snowflake Cloud Services layer?

A.
Coordinates activities in the Snowflake account
A.
Coordinates activities in the Snowflake account
Answers
B.
Executes queries submitted by the Snowflake account users
B.
Executes queries submitted by the Snowflake account users
Answers
C.
Manages quotas on the Snowflake account storage
C.
Manages quotas on the Snowflake account storage
Answers
D.
Manages the virtual warehouse cache to speed up queries
D.
Manages the virtual warehouse cache to speed up queries
Answers
Suggested answer: A

Explanation:

The Snowflake Cloud Services layer coordinates activities within the Snowflake account. It is responsible for tasks such as authentication, infrastructure management, metadata management, query parsing and optimization, and access control. References: Based on general cloud database architecture knowledge.

What does Snowflake recommend regarding database object ownership? (Select TWO).

A.
Create objects with ACCOUNTADMIN and do not reassign ownership.
A.
Create objects with ACCOUNTADMIN and do not reassign ownership.
Answers
B.
Create objects with SYSADMIN.
B.
Create objects with SYSADMIN.
Answers
C.
Create objects with SECURITYADMIN to ease granting of privileges later.
C.
Create objects with SECURITYADMIN to ease granting of privileges later.
Answers
D.
Create objects with a custom role and grant this role to SYSADMIN.
D.
Create objects with a custom role and grant this role to SYSADMIN.
Answers
E.
Use only MANAGED ACCESS SCHEMAS for66 objects owned by ACCOUNTADMIN.
E.
Use only MANAGED ACCESS SCHEMAS for66 objects owned by ACCOUNTADMIN.
Answers
Suggested answer: B, D

Explanation:

Snowflake recommends creating objects with a role that has the necessary privileges and is not overly permissive. SYSADMIN is typically used for managing system-level objects and operations. Creating objects with a custom role and granting this role to SYSADMIN allows for more granular control and adherence to the principle of least privilege. References: Based on best practices for database object ownership and role management.

Total 716 questions
Go to page: of 72