Snowflake COF-C02 SnowPro Core Certification Exam Practice Test

Page: 1 / 14
Total 778 questions
Question 1

Which of the following features, associated with Continuous Data Protection (CDP), require additional Snowflake-provided data storage? (Choose two.)



Answer : B, C

The features associated with Continuous Data Protection (CDP) that require additional Snowflake-provided data storage are Time Travel and Fail-safe. Time Travel allows users to access historical data within a defined period, while Fail-safe provides an additional layer of data protection beyond the Time Travel period.References:[COF-C02] SnowPro Core Certification Exam Study Guide


Question 2

Which Query Profile operator is considered a DML operator?



Answer : C

The Merge operator is considered a DML (Data Manipulation Language) operator in Snowflake. DML operators are used to modify data in tables, and the Merge operator specifically allows for conditional updates, inserts, or deletes in a target table based on the results of a join with a source table.

References:

Snowflake Documentation: Query Profile Overview

Snowflake Documentation: MERGE Statement


Question 3

Which function determines the kind of value stored in a VARIANT column?



Answer : D

The function used to determine the kind of value stored in a VARIANT column in Snowflake is TYPEOF.

Understanding VARIANT Data Type:

VARIANT is a flexible data type in Snowflake that can store semi-structured data, such as JSON, Avro, and XML.

This data type can hold values of different types, including strings, numbers, objects, arrays, and more.

Using TYPEOF Function:

The TYPEOF function returns the data type of the value stored in a VARIANT column.

It helps in identifying the type of data, which is crucial for processing and transforming semi-structured data accurately.

Example Usage:

SELECT TYPEOF(variant_column)

FROM my_table;

This query retrieves the type of data stored in variant_column for each row in my_table.

Possible return values include 'OBJECT', 'ARRAY', 'STRING', 'NUMBER', etc.

Benefits:

Simplifies data processing: Knowing the data type helps in applying appropriate transformations and validations.

Enhances query accuracy: Ensures that operations on VARIANT columns are performed correctly based on the data type.

References:

Snowflake Documentation: TYPEOF

Snowflake Documentation: VARIANT Data Type


Question 4

A Snowflake user needs to share unstructured data from an internal stage to a reporting tool that does not have Snowflake access.

Which file function should be used?



Answer : C

The GET_PRESIGNED_URL function in Snowflake generates a presigned URL for a file stored in an internal stage, allowing direct access to the file without requiring Snowflake access. This feature is particularly useful for sharing unstructured data with external applications or tools that do not have direct access to Snowflake. The presigned URL provides temporary access to the file, making it an ideal solution for securely sharing unstructured data from an internal stage with a reporting tool or any other external application.

References:

Snowflake Documentation: Generating Presigned URLs


Question 5

How does Snowflake recommend handling the bulk loading of data batches from files already available in cloud storage?



Question 6

Which roles can make grant decisions to objects within a managed access schema? (Select TWO)



Answer : A, B

Managed Access Schemas: These are a special type of schema designed for fine-grained access control in Snowflake.

Roles with Grant Authority:

ACCOUNTADMIN:The top-level administrative role can grant object privileges on all objects within the account, including managed access schemas.

SECURITYADMIN:Can grant and revoke privileges on objects within the account, including managed access schemas.

Important Note: The ORGADMIN role focuses on organization-level management, not object access control.


Question 7

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



Page:    1 / 14   
Total 778 questions