ExamGecko
Home Home / Snowflake / COF-C02

Snowflake COF-C02 Practice Test - Questions Answers

Question list
Search
Search

Which of the following describes how multiple Snowflake accounts in a single organization relate to various cloud providers?

A.
Each Snowflake account can be hosted in a different cloud vendor and region.
A.
Each Snowflake account can be hosted in a different cloud vendor and region.
Answers
B.
Each Snowflake account must be hosted in a different cloud vendor and region
B.
Each Snowflake account must be hosted in a different cloud vendor and region
Answers
C.
All Snowflake accounts must be hosted in the same cloud vendor and region
C.
All Snowflake accounts must be hosted in the same cloud vendor and region
Answers
D.
Each Snowflake account can be hosted in a different cloud vendor, but must be in the same region.
D.
Each Snowflake account can be hosted in a different cloud vendor, but must be in the same region.
Answers
Suggested answer: A

Explanation:

Snowflake's architecture allows for flexibility in account hosting across different cloud vendors and regions. This means that within a single organization, different Snowflake accounts can be set up in various cloud environments, such as AWS, Azure, or GCP, and in different geographical regions. This allows organizations to leverage the global infrastructure of multiple cloud providers and optimize their data storage and computing needs based on regional requirements, data sovereignty laws, and other considerations.

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

A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip__outer_array file format option

What does the STRIP_OUTER_ARRAY file format do?

A.
It removes the last element of the outer array.
A.
It removes the last element of the outer array.
Answers
B.
It removes the outer array structure and loads the records into separate table rows,
B.
It removes the outer array structure and loads the records into separate table rows,
Answers
C.
It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
C.
It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
Answers
D.
It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
D.
It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
Answers
Suggested answer: B

Explanation:

TheSTRIP_OUTER_ARRAYfile format option in Snowflake is used when loading JSON documents that are composed of a large array containing multiple records. When this option is enabled, it removes the outer array structure, which allows each record within the array to be loaded as a separate row in the table.This is particularly useful for efficiently loading JSON data that is structured as an array of records1.

References:

Snowflake Documentation on JSON File Format

[COF-C02] SnowPro Core Certification Exam Study Guide

A user has unloaded data from a Snowflake table to an external stage.

Which command can be used to verify if data has been uploaded to the external stage named my_stage?

A.
view @my_stage
A.
view @my_stage
Answers
B.
list @my_stage
B.
list @my_stage
Answers
C.
show @my_stage
C.
show @my_stage
Answers
D.
display @my_stage
D.
display @my_stage
Answers
Suggested answer: B

Explanation:

Thelist @my_stagecommand in Snowflake can be used to verify if data has been uploaded to an external stage namedmy_stage.This command provides a list of files that are present in the specified stage2.

Which tasks are performed in the Snowflake Cloud Services layer? (Choose two.)

A.
Management of metadata
A.
Management of metadata
Answers
B.
Computing the data
B.
Computing the data
Answers
C.
Maintaining Availability Zones
C.
Maintaining Availability Zones
Answers
D.
Infrastructure security
D.
Infrastructure security
Answers
E.
Parsing and optimizing queries
E.
Parsing and optimizing queries
Answers
Suggested answer: A, E

Explanation:

The Snowflake Cloud Services layer performs a variety of tasks, including the management of metadata and the parsing and optimization of queries.This layer is responsible for coordinating activities across Snowflake, including user session management, security, and query compilation3.

What is true about sharing data in Snowflake? (Choose two.)

A.
The Data Consumer pays for data storage as well as for data computing.
A.
The Data Consumer pays for data storage as well as for data computing.
Answers
B.
The shared data is copied into the Data Consumer account, so the Consumer can modify it without impacting the base data of the Provider.
B.
The shared data is copied into the Data Consumer account, so the Consumer can modify it without impacting the base data of the Provider.
Answers
C.
A Snowflake account can both provide and consume shared data.
C.
A Snowflake account can both provide and consume shared data.
Answers
D.
The Provider is charged for compute resources used by the Data Consumer to query the shared data.
D.
The Provider is charged for compute resources used by the Data Consumer to query the shared data.
Answers
E.
The Data Consumer pays only for compute resources to query the shared data.
E.
The Data Consumer pays only for compute resources to query the shared data.
Answers
Suggested answer: C, E

Explanation:

In Snowflake's data sharing model, any full Snowflake account can both provide and consume shared data. Additionally, the data consumer pays only for the compute resources used to query the shared data.No actual data is copied or transferred between accounts, and shared data does not take up any storage in a consumer account, so the consumer does not pay for data storage1.

References =Introduction to Secure Data Sharing | Snowflake Documentation

The following JSON is stored in a VARIANT column called src of the CAR_SALES table:

A user needs to extract the dealership information from the JSON.

How can this be accomplished?

A.
select src:dealership from car_sales;
A.
select src:dealership from car_sales;
Answers
B.
select src.dealership from car_sales;
B.
select src.dealership from car_sales;
Answers
C.
select src:Dealership from car_sales;
C.
select src:Dealership from car_sales;
Answers
D.
select dealership from car_sales;
D.
select dealership from car_sales;
Answers
Suggested answer: B

Explanation:

In Snowflake, to extract a specific element from a JSON stored in a VARIANT column, the correct syntax is to use the dot notation. Therefore, the queryselect src.dealership from car_sales;will return the dealership information contained within each JSON object in thesrccolumn.

References: For a detailed explanation, please refer to the Snowflake documentation on querying semi-structured data.

Which of the following significantly improves the performance of selective point lookup queries on a table?

A.
Clustering
A.
Clustering
Answers
B.
Materialized Views
B.
Materialized Views
Answers
C.
Zero-copy Cloning
C.
Zero-copy Cloning
Answers
D.
Search Optimization Service
D.
Search Optimization Service
Answers
Suggested answer: D

Explanation:

The Search Optimization Service significantly improves the performance of selective point lookup queries on tables by creating and maintaining a persistent data structure called a search access path, which allows some micro-partitions to be skipped when scanning the table

What are the default Time Travel and Fail-safe retention periods for transient tables?

A.
Time Travel - 1 day. Fail-safe - 1 day
A.
Time Travel - 1 day. Fail-safe - 1 day
Answers
B.
Time Travel - 0 days. Fail-safe - 1 day
B.
Time Travel - 0 days. Fail-safe - 1 day
Answers
C.
Time Travel - 1 day. Fail-safe - 0 days
C.
Time Travel - 1 day. Fail-safe - 0 days
Answers
D.
Transient tables are retained in neither Fail-safe nor Time Travel
D.
Transient tables are retained in neither Fail-safe nor Time Travel
Answers
Suggested answer: C

Explanation:

Transient tables in Snowflake have a default Time Travel retention period of 1 day, which allows users to access historical data within the last 24 hours. However, transient tables do not have a Fail-safe period. Fail-safe is an additional layer of data protection that retains data beyond the Time Travel period for recovery purposes in case of extreme data loss.Since transient tables are designed for temporary or intermediate workloads with no requirement for long-term durability, they do not include a Fail-safe period by default1.

References:

Snowflake Documentation on Storage Costs for Time Travel and Fail-safe

What is a best practice after creating a custom role?

A.
Create the custom role using the SYSADMIN role.
A.
Create the custom role using the SYSADMIN role.
Answers
B.
Assign the custom role to the SYSADMIN role
B.
Assign the custom role to the SYSADMIN role
Answers
C.
Assign the custom role to the PUBLIC role
C.
Assign the custom role to the PUBLIC role
Answers
D.
Add__CUSTOM to all custom role names
D.
Add__CUSTOM to all custom role names
Answers
Suggested answer: B

Explanation:

Assigning the custom role to the SYSADMIN role is considered a best practice because it allows the SYSADMIN role to manage objects created by the custom role. This is important for maintaining proper access control and ensuring that the SYSADMIN can perform necessary administrative tasks on objects created by users with the custom role.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Section 1.3 - SnowPro Core Certification Study Guide1

The fail-safe retention period is how many days?

A.
1 day
A.
1 day
Answers
B.
7 days
B.
7 days
Answers
C.
45 days
C.
45 days
Answers
D.
90 days
D.
90 days
Answers
Suggested answer: B

Explanation:

Fail-safe is a feature in Snowflake that provides an additional layer of data protection. After the Time Travel retention period ends, Fail-safe offers a non-configurable 7-day period during which historical data may be recoverable by Snowflake. This period is designed to protect against accidental data loss and is not intended for customer access.

References:Understanding and viewing Fail-safe | Snowflake Documentation

Total 716 questions
Go to page: of 72