ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

Which semi-structured data function interprets an input string as a JSON document that produces a VARIANT value?

A.
PARSE_JSON
A.
PARSE_JSON
Answers
B.
CHECK_JSON
B.
CHECK_JSON
Answers
C.
JSON_EXTRACT_PATH_TEXT
C.
JSON_EXTRACT_PATH_TEXT
Answers
D.
PARSE_XML
D.
PARSE_XML
Answers
Suggested answer: A

Explanation:

The semi-structured data function that interprets an input string as a JSON document and produces a VARIANT value is PARSE_JSON.This function is used to parse a JSON formatted string and return it as a VARIANT data type, which can then be used for further processing within Snowflake3.

Which items are considered schema objects in Snowflake? (Select TWO).

A.
Pipe
A.
Pipe
Answers
B.
File format
B.
File format
Answers
C.
Resource monitor
C.
Resource monitor
Answers
D.
Storage integration
D.
Storage integration
Answers
E.
Virtual warehouse
E.
Virtual warehouse
Answers
Suggested answer: A, B

Explanation:

In Snowflake, schema objects include Pipes and File formats.Pipes are used for continuous data loading, and File formats specify the format of data files used in loading and unloading operations within Snowflake

What are benefits of using Snowpark with Snowflake? (Select TWO).

A.
Snowpark uses a Spark engine to generate optimized SQL query plans.
A.
Snowpark uses a Spark engine to generate optimized SQL query plans.
Answers
B.
Snowpark automatically sets up Spark within Snowflake virtual warehouses.
B.
Snowpark automatically sets up Spark within Snowflake virtual warehouses.
Answers
C.
Snowpark does not require that a separate cluster be running outside of Snowflake.
C.
Snowpark does not require that a separate cluster be running outside of Snowflake.
Answers
D.
Snowpark allows users to run existing Spark code on virtual warehouses without the need to reconfigure the code.
D.
Snowpark allows users to run existing Spark code on virtual warehouses without the need to reconfigure the code.
Answers
E.
Snowpark executes as much work as possible in the source databases for all operations including User-Defined Functions (UDFs).
E.
Snowpark executes as much work as possible in the source databases for all operations including User-Defined Functions (UDFs).
Answers
Suggested answer: C, D

Explanation:

Snowpark is designed to bring the data programmability to Snowflake, enabling developers to write code in familiar languages like Scala, Java, and Python. It allows for the execution of these codes directly within Snowflake's virtual warehouses, eliminating the need for a separate cluster.Additionally, Snowpark's compatibility with Spark allows users to leverage their existing Spark code with minimal changes1.

If a virtual warehouse runs for 61 seconds, shuts down, and then restarts and runs for 30 seconds, for how many seconds is it billed?

A.
60
A.
60
Answers
B.
91
B.
91
Answers
C.
120
C.
120
Answers
D.
121
D.
121
Answers
Suggested answer: D

Explanation:

Snowflake's billing for virtual warehouses is per-second, with a minimum of 60 seconds for each time the warehouse is started or resumed. Therefore, if a warehouse runs for 61 seconds, it is billed for 61 seconds.If it is then shut down and restarted, running for an additional 30 seconds, it is billed for another 60 seconds (the minimum charge for a restart), totaling 121 seconds2

Which transformation is supported by a COPY INTO <table> command?

A.
Filter using a where clause
A.
Filter using a where clause
Answers
B.
Filter using a limit keyword
B.
Filter using a limit keyword
Answers
C.
Cast using a SELECT statement
C.
Cast using a SELECT statement
Answers
D.
Order using an ORDER BY clause
D.
Order using an ORDER BY clause
Answers
Suggested answer: C

Explanation:

The COPY INTO <table> command in Snowflake supports transformations such as casting using a SELECT statement.This allows for the transformation of data types as the data is being loaded into the table, which can be particularly useful when the data types in the source files do not match the data types in the target table

Which task privilege does a Snowflake role need in order to suspend or resume a task?

A.
USAGE
A.
USAGE
Answers
B.
OPERATE
B.
OPERATE
Answers
C.
MONITOR
C.
MONITOR
Answers
D.
OWNERSHIP
D.
OWNERSHIP
Answers
Suggested answer: B

Explanation:

In Snowflake, the OPERATE privilege is required for a role to suspend or resume a task.This privilege allows the role to perform operational tasks such as starting and stopping tasks, which includes suspending and resuming them6

Which role has the ability to create and manage users and roles?

A.
ORGADMIN
A.
ORGADMIN
Answers
B.
USERADMIN
B.
USERADMIN
Answers
C.
SYSADMIN
C.
SYSADMIN
Answers
D.
SECURITYADMIN
D.
SECURITYADMIN
Answers
Suggested answer: B

Explanation:

The USERADMIN role in Snowflake has the ability to create and manage users and roles within the Snowflake environment.This role is specifically dedicated to user and role management and creation

Topic 4, Exam pool D

Who can activate and enforce a network policy for all users in a Snowflake account? (Select TWO).

A.
A user with an USERADMIN or higher role
A.
A user with an USERADMIN or higher role
Answers
B.
A user with a SECURITYADMIN or higher role
B.
A user with a SECURITYADMIN or higher role
Answers
C.
A role that has been granted the ATTACH POLICY privilege
C.
A role that has been granted the ATTACH POLICY privilege
Answers
D.
A role that has the NETWORK_POLlCY account parameter set
D.
A role that has the NETWORK_POLlCY account parameter set
Answers
E.
A role that has the ownership of the network policy
E.
A role that has the ownership of the network policy
Answers
Suggested answer: B, E

Explanation:

In Snowflake, a user with the SECURITYADMIN role or higher can activate and enforce a network policy for all users in an account.Additionally, a role that has ownership of the network policy can also activate and enforce it

A permanent table and temporary table have the same name, TBL1, in a schema.

What will happen if a user executes select * from TBL1 ;?

A.
The temporary table will take precedence over the permanent table.
A.
The temporary table will take precedence over the permanent table.
Answers
B.
The permanent table will take precedence over the temporary table.
B.
The permanent table will take precedence over the temporary table.
Answers
C.
An error will say there cannot be two tables with the same name in a schema.
C.
An error will say there cannot be two tables with the same name in a schema.
Answers
D.
The table that was created most recently will take precedence over the older table.
D.
The table that was created most recently will take precedence over the older table.
Answers
Suggested answer: A

Explanation:

In Snowflake, if a temporary table and a permanent table have the same name within the same schema, the temporary table takes precedence over the permanent table within the session where the temporary table was created4.

What function can be used with the recursive argument to return a list of distinct key names in all nested elements in an object?

A.
FLATTEN
A.
FLATTEN
Answers
B.
GET_PATH
B.
GET_PATH
Answers
C.
CHECK_JSON
C.
CHECK_JSON
Answers
D.
PARSE JSON
D.
PARSE JSON
Answers
Suggested answer: A

Explanation:

The FLATTEN function can be used with the recursive argument to return a list of distinct key names in all nested elements within an object.This function is particularly useful for working with semi-structured data in Snowflake

Total 716 questions
Go to page: of 72