ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

Which command is used to unload data from a Snowflake database table into one or more files in a Snowflake stage?

A.
CREATE STAGE
A.
CREATE STAGE
Answers
B.
COPY INTO <table>
B.
COPY INTO <table>
Answers
C.
COPY INTO <location>
C.
COPY INTO <location>
Answers
D.
CREATE PIPE
D.
CREATE PIPE
Answers
Suggested answer: C

Explanation:

TheCOPY INTO <location>command is used to unload data from a Snowflake database table into one or more files in a Snowflake stage1.

Which metadata table will store the storage utilization information even for dropped tables?

A.
DATABASE_STORAGE_USAGE_HISTORY
A.
DATABASE_STORAGE_USAGE_HISTORY
Answers
B.
TABLE_STORAGE_METRICS
B.
TABLE_STORAGE_METRICS
Answers
C.
STORAGE_DAILY_HISTORY
C.
STORAGE_DAILY_HISTORY
Answers
D.
STAGE STORAGE USAGE HISTORY
D.
STAGE STORAGE USAGE HISTORY
Answers
Suggested answer: B

Explanation:

TheTABLE_STORAGE_METRICSmetadata table stores the storage utilization information, including for tables that have been dropped but are still incurring storage costs2.

What does a masking policy consist of in Snowflake?

A.
A single data type, with one or more conditions, and one or more masking functions
A.
A single data type, with one or more conditions, and one or more masking functions
Answers
B.
A single data type, with only one condition, and only one masking function
B.
A single data type, with only one condition, and only one masking function
Answers
C.
Multiple data types, with only one condition, and one or more masking functions
C.
Multiple data types, with only one condition, and one or more masking functions
Answers
D.
Multiple data types, with one or more conditions, and one or more masking functions
D.
Multiple data types, with one or more conditions, and one or more masking functions
Answers
Suggested answer: A

Explanation:

A masking policy in Snowflake consists of a single data type, with one or more conditions, and one or more masking functions.These components define how the data is masked based on the specified conditions3.

What feature of Snowflake Continuous Data Protection can be used for maintenance of historical data?

A.
Access control
A.
Access control
Answers
B.
Fail-safe
B.
Fail-safe
Answers
C.
Network policies
C.
Network policies
Answers
D.
Time Travel
D.
Time Travel
Answers
Suggested answer: D

Explanation:

Snowflake's Time Travel feature is used for the maintenance of historical data, allowing users to access and restore data that has been changed or deleted within a defined period4.

A JSON file, that contains lots of dates and arrays, needs to be processed in Snowflake. The user wants to ensure optimal performance while querying the data.

How can this be achieved?

A.
Flatten the data and store it in structured data types in a flattened table. Query the table.
A.
Flatten the data and store it in structured data types in a flattened table. Query the table.
Answers
B.
Store the data in a table with a variant data type. Query the table.
B.
Store the data in a table with a variant data type. Query the table.
Answers
C.
Store the data in a table with a vai : ant data type and include STRIP_NULL_VALUES while loading the table. Query the table.
C.
Store the data in a table with a vai : ant data type and include STRIP_NULL_VALUES while loading the table. Query the table.
Answers
D.
Store the data in an external stage and create views on top of it. Query the views.
D.
Store the data in an external stage and create views on top of it. Query the views.
Answers
Suggested answer: B

Explanation:

Storing JSON data in a table with a VARIANT data type is optimal for querying because it allows Snowflake to leverage its semi-structured data capabilities.This approach enables efficient storage and querying without the need for flattening the data, which can be performance-intensive1.

For which use cases is running a virtual warehouse required? (Select TWO).

A.
When creating a table
A.
When creating a table
Answers
B.
When loading data into a table
B.
When loading data into a table
Answers
C.
When unloading data from a table
C.
When unloading data from a table
Answers
D.
When executing a show command
D.
When executing a show command
Answers
E.
When executing a list command
E.
When executing a list command
Answers
Suggested answer: B, C

Explanation:

Running a virtual warehouse is required when loading data into a table and when unloading data from a table because these operations require compute resources that are provided by the virtual warehouse23.

What does SnowCD help Snowflake users to do?

A.
Copy data into files.
A.
Copy data into files.
Answers
B.
Manage different databases and schemas.
B.
Manage different databases and schemas.
Answers
C.
Troubleshoot network connections to Snowflake.
C.
Troubleshoot network connections to Snowflake.
Answers
D.
Write SELECT queries to retrieve data from external tables.
D.
Write SELECT queries to retrieve data from external tables.
Answers
Suggested answer: C

Explanation:

SnowCD is a connectivity diagnostic tool that helps users troubleshoot network connections to Snowflake.It performs a series of checks to evaluate the network connection and provides suggestions for resolving any issues4.

A user with which privileges can create or manage other users in a Snowflake account? (Select TWO).

A.
GRANT
A.
GRANT
Answers
B.
SELECT
B.
SELECT
Answers
C.
MODIFY
C.
MODIFY
Answers
D.
OWNERSHIP
D.
OWNERSHIP
Answers
E.
CREATE USER
E.
CREATE USER
Answers
Suggested answer: D, E

Explanation:

A user with the OWNERSHIP privilege on a user object or the CREATE USER privilege on the account can create or manage other users in a Snowflake account56.

How is unstructured data retrieved from data storage?

A.
SQL functions like the GET command can be used to copy the unstructured data to a location on the client.
A.
SQL functions like the GET command can be used to copy the unstructured data to a location on the client.
Answers
B.
SQL functions can be used to create different types of URLs pointing to the unstructured data. These URLs can be used to download the data to a client.
B.
SQL functions can be used to create different types of URLs pointing to the unstructured data. These URLs can be used to download the data to a client.
Answers
C.
SQL functions can be used to retrieve the data from the query results cache. When the query results are output to a client, the unstructured data will be output to the client as files.
C.
SQL functions can be used to retrieve the data from the query results cache. When the query results are output to a client, the unstructured data will be output to the client as files.
Answers
D.
SQL functions can call on different web extensions designed to display different types of files as a web page. The web extensions will allow the files to be downloaded to the client.
D.
SQL functions can call on different web extensions designed to display different types of files as a web page. The web extensions will allow the files to be downloaded to the client.
Answers
Suggested answer: B

Explanation:

Unstructured data stored in Snowflake can be retrieved by using SQL functions to generate URLs that point to the data.These URLs can then be used to download the data directly to a client

Which Snowflake view is used to support compliance auditing?

A.
ACCESS_HISTORY
A.
ACCESS_HISTORY
Answers
B.
COPY_HISTORY
B.
COPY_HISTORY
Answers
C.
QUERY_HISTORY
C.
QUERY_HISTORY
Answers
D.
ROW ACCESS POLICIES
D.
ROW ACCESS POLICIES
Answers
Suggested answer: A

Explanation:

TheACCESS_HISTORYview in Snowflake is utilized to support compliance auditing. It provides detailed information on data access within Snowflake, including reads and writes by user queries.This view is essential for regulatory compliance auditing as it offers insights into the usage of tables and columns, and maintains a direct link between the user, the query, and the accessed data1.

References:[COF-C02] SnowPro Core Certification Exam Study Guide

Total 716 questions
Go to page: of 72