ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

What are the benefits of the replication feature in Snowflake? (Select TWO).

A.
Disaster recovery
A.
Disaster recovery
Answers
B.
Time Travel
B.
Time Travel
Answers
C.
Fail-safe
C.
Fail-safe
Answers
D.
Database failover and fallback
D.
Database failover and fallback
Answers
E.
Data security
E.
Data security
Answers
Suggested answer: A, D

Explanation:

The replication feature in Snowflake provides several benefits, with disaster recovery and database failover and fallback being two of the primary advantages. Replication allows for the continuous copying of data from one Snowflake account to another, ensuring that a secondary copy of the data is available in case of outages or disasters. This capability supports disaster recovery strategies by allowing operations to quickly switch to the replicated data in a different account or region. Additionally, it facilitates database failover and fallback procedures, ensuring business continuity and minimizing downtime.

References:

Snowflake Documentation: Data Replication

User1, who has the SYSADMIN role, executed a query on Snowsight. User2, who is in the same Snowflake account, wants to view the result set of the query executed by User1 using the Snowsight query history.

What will happen if User2 tries to access the query history?

A.
If User2 has the sysadmin role they will be able to see the results.
A.
If User2 has the sysadmin role they will be able to see the results.
Answers
B.
If User2 has the securityadmin role they will be able to see the results.
B.
If User2 has the securityadmin role they will be able to see the results.
Answers
C.
If User2 has the ACCOUNTADMIN role they will be able to see the results.
C.
If User2 has the ACCOUNTADMIN role they will be able to see the results.
Answers
D.
User2 will be unable to view the result set of the query executed by User1.
D.
User2 will be unable to view the result set of the query executed by User1.
Answers
Suggested answer: C

Explanation:

In Snowflake, the query history and the results of queries executed by a user are accessible based on the roles and permissions. If User1 executed a query with the SYSADMIN role, User2 would be able to view the result set of that query executed by User1 only if User2 has the ACCOUNTADMIN role. The ACCOUNTADMIN role has the broadest set of privileges, including the ability to access all aspects of the account's operation, data, and query history, thus enabling User2 to view the results of queries executed by other users.

References:

Snowflake Documentation: Understanding Snowflake Roles

What is the Fail-safe retention period for transient and temporary tables?

A.
0 days
A.
0 days
Answers
B.
1 day
B.
1 day
Answers
C.
7 days
C.
7 days
Answers
D.
90 days
D.
90 days
Answers
Suggested answer: A

Explanation:

The Fail-safe retention period for transient and temporary tables in Snowflake is 0 days. Fail-safe is a feature designed to protect data against accidental loss or deletion by retaining historical data for a period after its Time Travel retention period expires. However, transient and temporary tables, which are designed for temporary or short-term storage and operations, do not have a Fail-safe period. Once the data is deleted or the table is dropped, it cannot be recovered.

References:

Snowflake Documentation: Understanding Fail-safe

When floating-point number columns are unloaded to CSV or JSON files, Snowflake truncates the values to approximately what?

A.
(12,2)
A.
(12,2)
Answers
B.
(10,4)
B.
(10,4)
Answers
C.
(14,8)
C.
(14,8)
Answers
D.
(15,9)
D.
(15,9)
Answers
Suggested answer: D

Explanation:

When unloading floating-point number columns to CSV or JSON files, Snowflake truncates the values to approximately 15 significant digits with 9 digits following the decimal point, which can be represented as (15,9). This ensures a balance between accuracy and efficiency in representing floating-point numbers in text-based formats, which is essential for data interchange and processing applications that consume these files.

References:

Snowflake Documentation: Data Unloading Considerations

How does a Snowflake stored procedure compare to a User-Defined Function (UDF)?

A.
A single executable statement can call only two stored procedures. In contrast, a single SQL statement can call multiple UDFs.
A.
A single executable statement can call only two stored procedures. In contrast, a single SQL statement can call multiple UDFs.
Answers
B.
A single executable statement can call only one stored procedure. In contrast, a single SQL statement can call multiple UDFs.
B.
A single executable statement can call only one stored procedure. In contrast, a single SQL statement can call multiple UDFs.
Answers
C.
A single executable statement can call multiple stored procedures. In contrast, multiple SQL statements can call the same UDFs.
C.
A single executable statement can call multiple stored procedures. In contrast, multiple SQL statements can call the same UDFs.
Answers
D.
Multiple executable statements can call more than one stored procedure. In contrast, a single SQL statement can call multiple UDFs.
D.
Multiple executable statements can call more than one stored procedure. In contrast, a single SQL statement can call multiple UDFs.
Answers
Suggested answer: B

Explanation:

In Snowflake, stored procedures and User-Defined Functions (UDFs) have different invocation patterns within SQL:

Option B is correct: A single executable statement can call only one stored procedure due to the procedural and potentially transactional nature of stored procedures. In contrast, a single SQL statement can call multiple UDFs because UDFs are designed to operate more like functions in traditional programming, where they return a value and can be embedded within SQL queries. References: Snowflake documentation comparing the operational differences between stored procedures and UDFs.

Which URL provides access to files in Snowflake without authorization?

A.
File URL
A.
File URL
Answers
B.
Scoped URL
B.
Scoped URL
Answers
C.
Pre-signed URL
C.
Pre-signed URL
Answers
D.
Scoped file URL
D.
Scoped file URL
Answers
Suggested answer: C

Explanation:

A Pre-signed URL provides access to files stored in Snowflake without requiring authorization at the time of access. This feature allows users to generate a URL with a limited validity period that grants temporary access to a file in a secure manner. It's particularly useful for sharing data with external parties or applications without the need for them to authenticate directly with Snowflake.

References:

Snowflake Documentation: Using Pre-signed URLs

What does the TableScan operator represent in the Query Profile?

A.
The access to a single table
A.
The access to a single table
Answers
B.
The access to data stored in stage objects
B.
The access to data stored in stage objects
Answers
C.
The list of values provided with the VALUES clause
C.
The list of values provided with the VALUES clause
Answers
D.
The records generated using the TABLE (GENERATOR (...)) construct
D.
The records generated using the TABLE (GENERATOR (...)) construct
Answers
Suggested answer: A

Explanation:

In the Query Profile of Snowflake, the TableScan operator represents the access to a single table. This operator indicates that the query execution involved reading data from a table stored in Snowflake. TableScan is a fundamental operation in query execution plans, showing how the database engine retrieves data directly from tables as part of processing a query.

References:

Snowflake Documentation: Understanding the Query Profile

Which Snowflake data type is used to store JSON key value pairs?

A.
TEXT
A.
TEXT
Answers
B.
BINARY
B.
BINARY
Answers
C.
STRING
C.
STRING
Answers
D.
VARIANT
D.
VARIANT
Answers
Suggested answer: D

Explanation:

The VARIANT data type in Snowflake is used to store JSON key-value pairs along with other semi-structured data formats like AVRO, BSON, and XML. The VARIANT data type allows for flexible and dynamic data structures within a single column, accommodating complex and nested data. This data type is crucial for handling semi-structured data in Snowflake, enabling users to perform SQL operations on JSON objects and arrays directly.

References:

Snowflake Documentation: Semi-structured Data Types

How does Snowflake reorganize data when it is loaded? (Select TWO).

A.
Binary format
A.
Binary format
Answers
B.
Columnar format
B.
Columnar format
Answers
C.
Compressed format
C.
Compressed format
Answers
D.
Raw format
D.
Raw format
Answers
E.
Zipped format
E.
Zipped format
Answers
Suggested answer: B, C

Explanation:

When data is loaded into Snowflake, it undergoes a reorganization process where the data is stored in a columnar format and compressed. The columnar storage format enables efficient querying and data retrieval, as it allows for reading only the necessary columns for a query, thereby reducing IO operations. Additionally, Snowflake uses advanced compression techniques to minimize storage costs and improve performance. This combination of columnar storage and compression is key to Snowflake's data warehousing capabilities.

References:

Snowflake Documentation: Data Storage and Organization

What activities can a user with the ORGADMIN role perform? (Select TWO).

A.
Create an account for an organization.
A.
Create an account for an organization.
Answers
B.
Edit the account data for an organization.
B.
Edit the account data for an organization.
Answers
C.
Delete the account data for an organization.
C.
Delete the account data for an organization.
Answers
D.
View usage information for all accounts in an organization.
D.
View usage information for all accounts in an organization.
Answers
E.
Select all the data in tables for all accounts in an organization.
E.
Select all the data in tables for all accounts in an organization.
Answers
Suggested answer: A, D

Explanation:

The ORGADMIN role in Snowflake is an organizational-level role that provides administrative capabilities across the entire organization, rather than being limited to a single Snowflake account. Users with this role can:

A . Create an account for an organization: The ORGADMIN role has the privilege to create new Snowflake accounts within the organization, allowing for the expansion and management of the organization's resources.

D . View usage information for all accounts in an organization: This role also has access to comprehensive usage and activity data across all accounts within the organization. This is crucial for monitoring, cost management, and optimization at the organizational level.

References:

Snowflake Documentation: Understanding Role-Based Access Control

Total 716 questions
Go to page: of 72