ExamGecko
Home Home / Snowflake / COF-R02

Snowflake COF-R02 Practice Test - Questions Answers, Page 12

Question list
Search
Search

A user has unloaded data from Snowflake to a stage

Which SQL command should be used to validate which data was loaded into the stage?

A.
list @file__stage
A.
list @file__stage
Answers
B.
show @file__stage
B.
show @file__stage
Answers
C.
view @file__stage
C.
view @file__stage
Answers
D.
verify @file__stage
D.
verify @file__stage
Answers
Suggested answer: A

What happens when a cloned table is replicated to a secondary database? (Select TWO)

A.
A read-only copy of the cloned tables is stored.
A.
A read-only copy of the cloned tables is stored.
Answers
B.
The replication will not be successful.
B.
The replication will not be successful.
Answers
C.
The physical data is replicated
C.
The physical data is replicated
Answers
D.
Additional costs for storage are charged to a secondary account
D.
Additional costs for storage are charged to a secondary account
Answers
E.
Metadata pointers to cloned tables are replicated
E.
Metadata pointers to cloned tables are replicated
Answers
Suggested answer: C, D

Explanation:

Cloned objects are replicated physically rather than logically to secondary databases. That is, cloned tables in a standard database do not contribute to the overall data storage unless or until DML operations on the clone add to or modify existing data. However, when a cloned table is replicated to a secondary database, the physical data is also replicated, increasing the data storage usage for your account.

https://docs.snowflake.com/en/user-guide/database-replicationconsiderations.html#:~:text=Replication%20and%20Cloning,-Cloned%20objects%20are&text=However%2C%20when%20a%20cloned%20table,storage%20usage%20for%20your%20account.

Which data types does Snowflake support when querying semi-structured data? (Select TWO)

A.
VARIANT
A.
VARIANT
Answers
B.
ARRAY
B.
ARRAY
Answers
C.
VARCHAR
C.
VARCHAR
Answers
D.
XML
D.
XML
Answers
E.
BLOB
E.
BLOB
Answers
Suggested answer: A, B

Explanation:

https://docs.snowflake.com/en/user-guide/semistructured-intro.html#label-loading-semi-structured-data

A VARIANT stores semi-structured data in Snowflake. It can store a value of any other type, including OBJECT and ARRAY.

The maximum length of a VARIANT is 16 MB.

A Snowflake ARRAY is similar to an array in many other programming languages. An ARRAY contains 0 or more pieces of data. Each element is accessed by specifying its position in the array.

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: B

Explanation:

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:

Data Size Limitations

The VARIANT data type imposes a 16 MB size limit on individual rows.

For some semi-structured data formats (e.g. JSON), data sets are frequently a simple concatenation of multiple documents. The JSON output from some software is composed of a single huge array containing multiple records. There is no need to separate the documents with line breaks or commas, though both are supported.

If the data exceeds 16 MB, enable the STRIP_OUTER_ARRAY file format option for the COPY INTO

<table> command to remove the outer array structure and load the records into separate table rows:

copy into <table>

from @~/<file>.json

file_format = (type = 'JSON' strip_outer_array = true);

https://docs.snowflake.com/en/user-guide/semistructured-considerations.html

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:

https://docs.snowflake.com/en/user-guide/data-cdp-storagecosts.html#:~:text=Temporary%20and%20Transient%20Tables,-To%20help%20manage&text=Temporary%20tables%20can%20also%20have,have%20no%20Fail%2Dsafe%20period.

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:

When creating roles that will serve as the owners of securable objects in the system, Snowflake recommends creating a hierarchy of custom roles, with the top-most custom role assigned to the system role SYSADMIN. This role structure allows system administrators to manage all objects in the account, such as warehouses and database objects, while restricting management of users and roles to the USERADMIN role.

Which of the following Snowflake objects can be shared using a secure share? (Select TWO).

A.
Materialized views
A.
Materialized views
Answers
B.
Sequences
B.
Sequences
Answers
C.
Procedures
C.
Procedures
Answers
D.
Tables
D.
Tables
Answers
E.
Secure User Defined Functions (UDFs)
E.
Secure User Defined Functions (UDFs)
Answers
Suggested answer: D, E

Explanation:

Secure Data Sharing enables sharing selected objects in a database in your account with other Snowflake accounts. The following Snowflake database objects can be shared:

Tables

External tables

Secure views

Secure materialized views

Secure UDFs

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

Will data cached in a warehouse be lost when the warehouse is resized?

A.
Possibly, if the warehouse is resized to a smaller size and the cache no longer fits.
A.
Possibly, if the warehouse is resized to a smaller size and the cache no longer fits.
Answers
B.
Yes. because the compute resource is replaced in its entirety with a new compute resource.
B.
Yes. because the compute resource is replaced in its entirety with a new compute resource.
Answers
C.
No. because the size of the cache is independent from the warehouse size
C.
No. because the size of the cache is independent from the warehouse size
Answers
D.
Yes. became the new compute resource will no longer have access to the cache encryption key
D.
Yes. became the new compute resource will no longer have access to the cache encryption key
Answers
Suggested answer: A

Which Snowflake partner specializes in data catalog solutions?

A.
Alation
A.
Alation
Answers
B.
DataRobot
B.
DataRobot
Answers
C.
dbt
C.
dbt
Answers
D.
Tableau
D.
Tableau
Answers
Suggested answer: A

Explanation:

Alation provides Data Cataloging functionality. They state they are the 'One Place to Find, Understand, & Govern Data Across an Enterprise.

https://docs.snowflake.com/en/user-guide/ecosystem-all.html

Total 330 questions
Go to page: of 33