ExamGecko
Home Home / Snowflake / COF-C02

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

Question list
Search
Search

How can a 5 GB table be downloaded into a single file MOST efficiently?

A.
Keep the default MAX_FILE_SIZE to 16 MB
A.
Keep the default MAX_FILE_SIZE to 16 MB
Answers
B.
Set the default MAX_FILE_SI2E to 5 GB.
B.
Set the default MAX_FILE_SI2E to 5 GB.
Answers
C.
Set the SINGLE parameter to TRUE.
C.
Set the SINGLE parameter to TRUE.
Answers
D.
Use a regular expression in the stage specifications of the COPY command.
D.
Use a regular expression in the stage specifications of the COPY command.
Answers
Suggested answer: C

Explanation:

To download a 5 GB table into a single file most efficiently in Snowflake, you should set the SINGLE parameter to TRUE. This parameter ensures that the COPY INTO command outputs the result into a single file, regardless of the file size. This approach is more efficient than relying on the default MAX_FILE_SIZE setting, which would split the output into multiple files.

References:

Snowflake Documentation: COPY INTO <location>

Which security models are used in Snowflake to manage access control? (Select TWO).

A.
Discretionary Access Control (DAC)
A.
Discretionary Access Control (DAC)
Answers
B.
Identity Access Management (1AM)
B.
Identity Access Management (1AM)
Answers
C.
Mandatory Access Control (MAC)
C.
Mandatory Access Control (MAC)
Answers
D.
Role-Based Access Control (RBAC)
D.
Role-Based Access Control (RBAC)
Answers
E.
Security Assertion Markup Language (SAML)
E.
Security Assertion Markup Language (SAML)
Answers
Suggested answer: A, D

Explanation:

Snowflake uses both Discretionary Access Control (DAC) and Role-Based Access Control (RBAC) to manage access control. DAC allows object owners to grant access privileges to other users. RBAC assigns permissions to roles, and roles are then granted to users, making it easier to manage permissions based on user roles within the organization.

References:

Snowflake Documentation: Access Control in Snowflake

Which Snowflake governance feature allows users to assign metadata labels to improve data governance and database access control?

A.
Secure functions
A.
Secure functions
Answers
B.
Secure views
B.
Secure views
Answers
C.
Object tagging
C.
Object tagging
Answers
D.
Row-level security
D.
Row-level security
Answers
Suggested answer: C

Explanation:

Object tagging in Snowflake allows users to assign metadata labels to various database objects to improve data governance and access control. Tags can be used to categorize and manage data based on business needs, helping to enforce governance policies and streamline database administration.

References:

Snowflake Documentation: Object Tagging

What is the MINIMUM Snowftake edition that supports database replication?

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

Explanation:

The minimum Snowflake edition that supports database replication is the Enterprise edition. Database replication allows data to be replicated between different Snowflake accounts or regions, providing high availability and disaster recovery capabilities.

References:

Snowflake Documentation: Database Replication

Which type of workload traditionally benefits from the use of the query acceleration service?

A.
Workloads with a predictable data volume for each query
A.
Workloads with a predictable data volume for each query
Answers
B.
Workloads that include on-demand data analyses
B.
Workloads that include on-demand data analyses
Answers
C.
Queries with small scans and non-selective filters
C.
Queries with small scans and non-selective filters
Answers
D.
Queries that do not have filters or aggregation
D.
Queries that do not have filters or aggregation
Answers
Suggested answer: B

Explanation:

The query acceleration service in Snowflake is beneficial for workloads that include on-demand data analyses. This service optimizes query performance by dynamically allocating additional resources to execute queries faster, particularly useful for ad-hoc analysis where data volume and complexity can vary.

References:

Snowflake Documentation: Query Acceleration Service

In which use cases does Snowflake apply egress charges?

A.
Data sharing within a specific region
A.
Data sharing within a specific region
Answers
B.
Query result retrieval
B.
Query result retrieval
Answers
C.
Database replication
C.
Database replication
Answers
D.
Loading data into Snowflake
D.
Loading data into Snowflake
Answers
Suggested answer: C

Explanation:

Snowflake applies egress charges in the case of database replication when data is transferred out of a Snowflake region to another region or cloud provider. This is because the data transfer incurs costs associated with moving data across different networks. Egress charges are not applied for data sharing within the same region, query result retrieval, or loading data into Snowflake, as these actions do not involve data transfer across regions.

References:

[COF-C02] SnowPro Core Certification Exam Study Guide

Snowflake Documentation on Data Replication and Egress Charges1

By default, which Snowflake role is required to create a share?

A.
ORGADMIN
A.
ORGADMIN
Answers
B.
SECURITYADMIN
B.
SECURITYADMIN
Answers
C.
SHAREADMIN
C.
SHAREADMIN
Answers
D.
ACCOUNTADMIN
D.
ACCOUNTADMIN
Answers
Suggested answer: D

Explanation:

By default, the Snowflake role required to create a share is ACCOUNTADMIN (D).This role has the necessary privileges to perform administrative tasks, including creating shares for data sharing purposes

How long can a data consumer who has a pre-signed URL access data files using Snowflake?

A.
Indefinitely
A.
Indefinitely
Answers
B.
Until the result_cache expires
B.
Until the result_cache expires
Answers
C.
Until the retention_time is met
C.
Until the retention_time is met
Answers
D.
Until the expiration time is exceeded
D.
Until the expiration time is exceeded
Answers
Suggested answer: D

Explanation:

A data consumer who has a pre-signed URL can access data files using Snowflake until the expiration time is exceeded.The expiration time is set when the pre-signed URL is generated and determines how long the URL remains valid3.

Which Snowflake function and command combination should be used to convert rows in a relational table to a single VARIANT column, and unload the rows Into a file in JSON format? (Select TWO).

A.
PUT
A.
PUT
Answers
B.
GET
B.
GET
Answers
C.
COPY
C.
COPY
Answers
D.
EXPORT
D.
EXPORT
Answers
E.
OBJECT CONSTRUCT
E.
OBJECT CONSTRUCT
Answers
Suggested answer: C, E

Explanation:

To convert rows in a relational table to a single VARIANT column and unload the rows into a file in JSON format, you can use the COPY command in combination with the OBJECT_CONSTRUCT function. The OBJECT_CONSTRUCT function converts the row into a JSON object stored in a VARIANT column, and the COPY command can then be used to unload this data into a JSON file.

References:

Snowflake Documentation: OBJECT_CONSTRUCT

Snowflake Documentation: COPY INTO <location>

Top of Form

Bottom of Form

What Snowflake recommendation is designed to ensure that staged data is only loaded once'?

A.
Partitioning staged data files
A.
Partitioning staged data files
Answers
B.
Loading only the most recently-staged data files
B.
Loading only the most recently-staged data files
Answers
C.
Removing data files after loading
C.
Removing data files after loading
Answers
D.
Identifying and removing duplicates after each data load
D.
Identifying and removing duplicates after each data load
Answers
Suggested answer: C

Explanation:

Snowflake recommends removing data files from the staging area after they have been loaded into the target table. This practice ensures that the data is only loaded once and prevents accidental reloading of the same data. By removing the files, you eliminate the risk of duplicate data loads.

Stage the Data: Upload the data files to a Snowflake stage (internal or external).

Load the Data: Use the COPY INTO command to load the data from the stage into the Snowflake table.

Remove the Data Files: After successfully loading the data, remove the data files from the stage using the REMOVE command.

References:

Snowflake Documentation: Loading Data into Snowflake

Snowflake Documentation: Staging Data Files

Snowflake Documentation: COPY INTO Command

Total 716 questions
Go to page: of 72