Snowflake SnowPro Core Certification COF-C02 Exam Practice Test

Page: 1 / 14
Total 778 questions
Question 1

True or False: Reader Accounts are able to extract data from shared data objects for use outside of Snowflake.



Answer : B

Reader accounts in Snowflake are designed to allow users to read data shared with them but do not have the capability to extract data for use outside of Snowflake. They are intended for consuming shared data within the Snowflake environment only.


Question 2
Question 3

Which table function is used to perform additional processing on the results of a previously-run query?



Answer : B

The RESULT_SCAN table function is used in Snowflake to perform additional processing on the results of a previously-run query. It allows users to reference the result set of a previous query by its query ID, enabling further analysis or transformations without re-executing the original query.

References:

Snowflake Documentation: RESULT_SCAN


Question 4

What does Snowflake recommend as a best practice for using secure views?



Answer : D

Snowflake recommends not exposing sequence-generated columns in secure views. Secure views are used to protect sensitive data by ensuring that users can only access data for which they have permissions. Exposing sequence-generated columns can potentially reveal information about the underlying data structure or the number of rows, which might be sensitive.

Create Secure Views: Define secure views using the SECURE keyword to ensure they comply with Snowflake's security policies.

Exclude Sensitive Columns: When creating secure views, exclude columns that might expose sensitive information, such as sequence-generated columns.

CREATE SECURE VIEW secure_view AS

SELECT col1, col2

FROM sensitive_table

WHERE sensitive_column IS NOT NULL;

References:

Snowflake Documentation: Secure Views

Snowflake Documentation: Creating Secure Views

These answers and explanations should provide comprehensive guidance on the specified Snowflake topics.


Question 5

Query compilation occurs in which architecture layer of the Snowflake Cloud Data Platform?



Answer : D

Query compilation in Snowflake occurs in the Cloud Services layer. This layer is responsible for coordinating and managing all aspects of the Snowflake service, including authentication, infrastructure management, metadata management, query parsing and optimization, and security. By handling these tasks, the Cloud Services layer enables the Compute layer to focus on executing queries, while the Storage layer is dedicated to persistently storing data.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Snowflake Architecture1


Question 6

What happens to the privileges granted to Snowflake system-defined roles?



Answer : A

The privileges granted to Snowflake's system-defined roles cannot be revoked. System-defined roles, such as SYSADMIN, ACCOUNTADMIN, SECURITYADMIN, and others, come with a set of predefined privileges that are essential for the roles to function correctly within the Snowflake environment. These privileges are intrinsic to the roles and ensure that users assigned these roles can perform the necessary tasks and operations relevant to their responsibilities.

The design of Snowflake's role-based access control (RBAC) model ensures that system-defined roles have a specific set of non-revocable privileges to maintain the security, integrity, and operational efficiency of the Snowflake environment. This approach prevents accidental or intentional modification of privileges that could disrupt the essential functions or compromise the security of the Snowflake account.

References:

Snowflake Documentation on Access Control: Understanding Role-Based Access Control (RBAC)


Question 7

Which of the following describes a Snowflake stored procedure?



Page:    1 / 14   
Total 778 questions