ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

True or False: It is possible for a user to run a query against the query result cache without requiring an active Warehouse.

A.
True
A.
True
Answers
B.
False
B.
False
Answers
Suggested answer: A

Explanation:

Snowflake's architecture allows for the use of aquery result cachethat stores the results of queries for a period of time. If the same query is run again and the underlying data has not changed, Snowflake can retrieve the result from this cache without needing to re-run the query on an active warehouse, thus saving on compute resources.

A virtual warehouse's auto-suspend and auto-resume settings apply to which of the following?

A.
The primary cluster in the virtual warehouse
A.
The primary cluster in the virtual warehouse
Answers
B.
The entire virtual warehouse
B.
The entire virtual warehouse
Answers
C.
The database in which the virtual warehouse resides
C.
The database in which the virtual warehouse resides
Answers
D.
The Queries currently being run on the virtual warehouse
D.
The Queries currently being run on the virtual warehouse
Answers
Suggested answer: B

Explanation:

The auto-suspend and auto-resume settings in Snowflake apply to the entire virtual warehouse. These settings allow the warehouse to automatically suspend when it's not in use, helping to save on compute costs. When queries or tasks are submitted to the warehouse, it can automatically resume operation. This functionality is designed to optimize resource usage and cost-efficiency.

References:

SnowPro Core Certification Exam Study Guide (as of 2021)

Snowflake documentation on virtual warehouses and their settings (as of 2021)

Which of the following Snowflake features provide continuous data protection automatically? (Select TWO).

A.
Internal stages
A.
Internal stages
Answers
B.
Incremental backups
B.
Incremental backups
Answers
C.
Time Travel
C.
Time Travel
Answers
D.
Zero-copy clones
D.
Zero-copy clones
Answers
E.
Fail-safe
E.
Fail-safe
Answers
Suggested answer: C, E

Explanation:

Snowflake's Continuous Data Protection (CDP) encompasses a set of features that help protect data stored in Snowflake against human error, malicious acts, and software failure. Time Travel allows users to access historical data (i.e., data that has been changed or deleted) for a defined period, enabling querying and restoring of data. Fail-safe is an additional layer of data protection that provides a recovery option in the event of significant data loss or corruption, which can only be performed by Snowflake.

References:

Continuous Data Protection | Snowflake Documentation1

Data Storage Considerations | Snowflake Documentation2

Snowflake SnowPro Core Certification Study Guide3

Snowflake Data Cloud Glossary

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

Which of the following conditions must be met in order to return results from the results cache? (Select TWO).

A.
The user has the appropriate privileges on the objects associated with the query
A.
The user has the appropriate privileges on the objects associated with the query
Answers
B.
Micro-partitions have been reclustered since the query was last run
B.
Micro-partitions have been reclustered since the query was last run
Answers
C.
The new query is run using the same virtual warehouse as the previous query
C.
The new query is run using the same virtual warehouse as the previous query
Answers
D.
The query includes a User Defined Function (UDF)
D.
The query includes a User Defined Function (UDF)
Answers
E.
The query has been run within 24 hours of the previously-run query
E.
The query has been run within 24 hours of the previously-run query
Answers
Suggested answer: A, E

Explanation:

To return results from the results cache in Snowflake, certain conditions must be met:

Privileges: The user must have the appropriate privileges on the objects associated with the query. This ensures that only authorized users can access cached data.

Time Frame: The query must have been run within 24 hours of the previously-run query. Snowflake's results cache is designed to store the results of queries for a short period, typically 24 hours, to improve performance for repeated queries.

Which of the following are benefits of micro-partitioning? (Select TWO)

A.
Micro-partitions cannot overlap in their range of values
A.
Micro-partitions cannot overlap in their range of values
Answers
B.
Micro-partitions are immutable objects that support the use of Time Travel.
B.
Micro-partitions are immutable objects that support the use of Time Travel.
Answers
C.
Micro-partitions can reduce the amount of I/O from object storage to virtual warehouses
C.
Micro-partitions can reduce the amount of I/O from object storage to virtual warehouses
Answers
D.
Rows are automatically stored in sorted order within micro-partitions
D.
Rows are automatically stored in sorted order within micro-partitions
Answers
E.
Micro-partitions can be defined on a schema-by-schema basis
E.
Micro-partitions can be defined on a schema-by-schema basis
Answers
Suggested answer: B, C

Explanation:

Micro-partitions in Snowflake are immutable objects, which means once they are written, they cannot be modified. This immutability supports the use of Time Travel, allowing users to access historical data within a defined period. Additionally, micro-partitions can significantly reduce the amount of I/O from object storage to virtual warehouses. This is because Snowflake's query optimizer can skip over micro-partitions that do not contain relevant data for a query, thus reducing the amount of data that needs to be scanned and transferred.

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

https://docs.snowflake.com/en/user-guide/tables-clustering-micropartitions.html

What is the minimum Snowflake edition required to create a materialized view?

A.
Standard Edition
A.
Standard Edition
Answers
B.
Enterprise Edition
B.
Enterprise Edition
Answers
C.
Business Critical Edition
C.
Business Critical Edition
Answers
D.
Virtual Private Snowflake Edition
D.
Virtual Private Snowflake Edition
Answers
Suggested answer: B

Explanation:

Materialized views in Snowflake are a feature that allows for the pre-computation and storage of query results for faster query performance. This feature is available starting from the Enterprise Edition of Snowflake. It is not available in the Standard Edition, and while it is also available in higher editions like Business Critical and Virtual Private Snowflake, the Enterprise Edition is the minimum requirement.

References:

Snowflake Documentation on CREATE MATERIALIZED VIEW1.

Snowflake Documentation on Working with Materialized Views

https://docs.snowflake.com/en/sql-reference/sql/create-materialized-view.html#:~:text=Materialized%20views%20require%20Enterprise%20Edition,upgrading%2C%20please%20contact%20Snowflake%20Support.

What happens to the underlying table data when a CLUSTER BY clause is added to a Snowflake table?

A.
Data is hashed by the cluster key to facilitate fast searches for common data values
A.
Data is hashed by the cluster key to facilitate fast searches for common data values
Answers
B.
Larger micro-partitions are created for common data values to reduce the number of partitions that must be scanned
B.
Larger micro-partitions are created for common data values to reduce the number of partitions that must be scanned
Answers
C.
Smaller micro-partitions are created for common data values to allow for more parallelism
C.
Smaller micro-partitions are created for common data values to allow for more parallelism
Answers
D.
Data may be colocated by the cluster key within the micro-partitions to improve pruning performance
D.
Data may be colocated by the cluster key within the micro-partitions to improve pruning performance
Answers
Suggested answer: D

Explanation:

When aCLUSTER BYclause is added to a Snowflake table, it specifies one or more columns to organize the data within the table's micro-partitions. This clustering aims to colocate data with similar values in the same or adjacent micro-partitions. By doing so, it enhances the efficiency of query pruning, where the Snowflake query optimizer can skip over irrelevant micro-partitions that do not contain the data relevant to the query, thereby improving performance.

References:

Snowflake Documentation on Clustering Keys & Clustered Tables1.

Community discussions on how source data's ordering affects a table with a cluster key

Which feature is only available in the Enterprise or higher editions of Snowflake?

A.
Column-level security
A.
Column-level security
Answers
B.
SOC 2 type II certification
B.
SOC 2 type II certification
Answers
C.
Multi-factor Authentication (MFA)
C.
Multi-factor Authentication (MFA)
Answers
D.
Object-level access control
D.
Object-level access control
Answers
Suggested answer: A

Explanation:

Column-level security is a feature that allows fine-grained control over access to specific columns within a table. This is particularly useful for managing sensitive data and ensuring that only authorized users can view or manipulate certain pieces of information. According to my last update, this feature was available in the Enterprise Edition or higher editions of Snowflake.

References: Based on my internal data as of 2021, column-level security is an advanced feature typically reserved for higher-tiered editions like the Enterprise Edition in data warehousing solutions such as Snowflake.

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

Which of the following are valid methods for authenticating users for access into Snowflake? (Select THREE)

A.
SCIM
A.
SCIM
Answers
B.
Federated authentication
B.
Federated authentication
Answers
C.
TLS 1.2
C.
TLS 1.2
Answers
D.
Key-pair authentication
D.
Key-pair authentication
Answers
E.
OAuth
E.
OAuth
Answers
F.
OCSP authentication
F.
OCSP authentication
Answers
Suggested answer: B, D, E

Explanation:

Snowflake supports several methods for authenticating users, includingfederated authentication,key-pair authentication, andOAuth. Federated authentication allows users to authenticate using their organization's identity provider. Key-pair authentication uses a public-private key pair for secure login, and OAuth is an open standard for access delegation commonly used for token-based authentication.References:Authentication policies | Snowflake Documentation,Authenticating to the server | Snowflake Documentation,External API authentication and secrets | Snowflake Documentation.

During periods of warehouse contention which parameter controls the maximum length of time a warehouse will hold a query for processing?

A.
STATEMENT_TIMEOUT__IN__SECONDS
A.
STATEMENT_TIMEOUT__IN__SECONDS
Answers
B.
STATEMENT_QUEUED_TIMEOUT_IN_SECONDS
B.
STATEMENT_QUEUED_TIMEOUT_IN_SECONDS
Answers
C.
MAX_CONCURRENCY__LEVEL
C.
MAX_CONCURRENCY__LEVEL
Answers
D.
QUERY_TIMEOUT_IN_SECONDS
D.
QUERY_TIMEOUT_IN_SECONDS
Answers
Suggested answer: B

Explanation:

The parameterSTATEMENT_QUEUED_TIMEOUT_IN_SECONDSsets the limit for a query to wait in the queue in order to get its chance of running on the warehouse. The query will quit after reaching this limit. By default, the value of this parameter is 0 which mean the queries will wait indefinitely in the waiting queue

https://community.snowflake.com/s/article/Warehouse-Concurrency-and-Statement-Timeout-Parameters#:~:text=The%20parameter%20STATEMENT_QUEUED_TIMEOUT_IN_SECONDS%20sets%20the,indefinitely%20in%20the%20waiting%20queue.

Total 716 questions
Go to page: of 72