ExamGecko
Home Home / Snowflake / SnowPro Core

Snowflake SnowPro Core Practice Test - Questions Answers, Page 6

Question list
Search
Search

A user unloaded a Snowflake table called mytable to an internal stage called mystage.

Which command can be used to view the list of files that has been uploaded to the staged?

A.
list @mytable;
A.
list @mytable;
Answers
B.
list @%raytable;
B.
list @%raytable;
Answers
C.
list @ %m.ystage;
C.
list @ %m.ystage;
Answers
D.
list @mystage;
D.
list @mystage;
Answers
Suggested answer: D

Explanation:

The commandlist @mystage;is used to view the list of files that have been uploaded to an internal stage in Snowflake. Thelistcommand displays the metadata for all files in the specified stage, which in this case ismystage. This command is particularly useful for verifying that files have been successfully unloaded from a Snowflake table to the stage and for managing the files within the stage.

Snowflake Documentation on Stages

SnowPro Core Certification Study Guide

Which of the following Snowflake capabilities are available in all Snowflake editions? (Select TWO)

A.
Customer-managed encryption keys through Tri-Secret Secure
A.
Customer-managed encryption keys through Tri-Secret Secure
Answers
B.
Automatic encryption of all data
B.
Automatic encryption of all data
Answers
C.
Up to 90 days of data recovery through Time Travel
C.
Up to 90 days of data recovery through Time Travel
Answers
D.
Object-level access control
D.
Object-level access control
Answers
E.
Column-level security to apply data masking policies to tables and views
E.
Column-level security to apply data masking policies to tables and views
Answers
Suggested answer: B, D

Explanation:

In all Snowflake editions, two key capabilities are universally available:

B) Automatic encryption of all data: Snowflake automatically encrypts all data stored in its platform, ensuring security and compliance with various regulations. This encryption is transparent to users and does not require any configuration or management.

D) Object-level access control: Snowflake provides granular access control mechanisms that allow administrators to define permissions at the object level, including databases, schemas, tables, and views. This ensures that only authorized users can access specific data objects.

These features are part of Snowflake's commitment to security and governance, and they are included in every edition of the Snowflake Data Cloud.

Snowflake Documentation on Security Features

SnowPro Core Certification Exam Study Guide

Which command is used to unload data from a Snowflake table into a file in a stage?

A.
COPY INTO
A.
COPY INTO
Answers
B.
GET
B.
GET
Answers
C.
WRITE
C.
WRITE
Answers
D.
EXTRACT INTO
D.
EXTRACT INTO
Answers
Suggested answer: A

Explanation:

TheCOPY INTOcommand is used in Snowflake to unload data from a table into a file in a stage. This command allows for the export of data from Snowflake tables into flat files, which can then be used for further analysis, processing, or storage in external systems.

Snowflake Documentation on Unloading Data

Snowflake SnowPro Core: Copy Into Command to Unload Rows to Files in Named Stage

How often are encryption keys automatically rotated by Snowflake?

A.
30 Days
A.
30 Days
Answers
B.
60 Days
B.
60 Days
Answers
C.
90 Days
C.
90 Days
Answers
D.
365 Days
D.
365 Days
Answers
Suggested answer: A

Explanation:

Snowflake automatically rotates encryption keys when they are more than 30 days old. Active keys are retired, and new keys are created. This process is part of Snowflake's comprehensive security measures to ensure data protection and is managed entirely by the Snowflake service without requiring user intervention.

Understanding Encryption Key Management in Snowflake

What are value types that a VARIANT column can store? (Select TWO)

A.
STRUCT
A.
STRUCT
Answers
B.
OBJECT
B.
OBJECT
Answers
C.
BINARY
C.
BINARY
Answers
D.
ARRAY
D.
ARRAY
Answers
E.
CLOB
E.
CLOB
Answers
Suggested answer: B, D

Explanation:

A VARIANT column in Snowflake can store semi-structured data types. This includes:

B) OBJECT: An object is a collection of key-value pairs in JSON, and a VARIANT column can store this type of data structure.

D) ARRAY: An array is an ordered list of zero or more values, which can be of any variant-supported data type, including objects or other arrays.

The VARIANT data type is specifically designed to handle semi-structured data like JSON, Avro, ORC, Parquet, or XML, allowing for the storage of nested and complex data structures.

Snowflake Documentation on Semi-Structured Data Types

SnowPro Core Certification Study Guide

A user has an application that writes a new Tile to a cloud storage location every 5 minutes.

What would be the MOST efficient way to get the files into Snowflake?

A.
Create a task that runs a copy into operation from an external stage every 5 minutes
A.
Create a task that runs a copy into operation from an external stage every 5 minutes
Answers
B.
Create a task that puts the files in an internal stage and automate the data loading wizard
B.
Create a task that puts the files in an internal stage and automate the data loading wizard
Answers
C.
Create a task that runs a GET operation to intermittently check for new files
C.
Create a task that runs a GET operation to intermittently check for new files
Answers
D.
Set up cloud provider notifications on the Tile location and use Snowpipe with auto-ingest
D.
Set up cloud provider notifications on the Tile location and use Snowpipe with auto-ingest
Answers
Suggested answer: D

Explanation:

The most efficient way to get files into Snowflake, especially when new files are being written to a cloud storage location at frequent intervals, is to use Snowpipe with auto-ingest. Snowpipe is Snowflake's continuous data ingestion service that loads data as soon as it becomes available in a cloud storage location. By setting up cloud provider notifications, Snowpipe can be triggered automatically whenever new files are written to the storage location, ensuring that the data is loaded into Snowflake with minimal latency and without the need for manual intervention or scheduling frequent tasks.

Snowflake Documentation on Snowpipe

SnowPro Core Certification Study Guide

Which of the following are best practice recommendations that should be considered when loading data into Snowflake? (Select TWO).

A.
Load files that are approximately 25 MB or smaller.
A.
Load files that are approximately 25 MB or smaller.
Answers
B.
Remove all dates and timestamps.
B.
Remove all dates and timestamps.
Answers
C.
Load files that are approximately 100-250 MB (or larger)
C.
Load files that are approximately 100-250 MB (or larger)
Answers
D.
Avoid using embedded characters such as commas for numeric data types
D.
Avoid using embedded characters such as commas for numeric data types
Answers
E.
Remove semi-structured data types
E.
Remove semi-structured data types
Answers
Suggested answer: C, D

Explanation:

When loading data into Snowflake, it is recommended to:

C) Load files that are approximately 100-250 MB (or larger): This size is optimal for parallel processing and can help to maximize throughput. Smaller files can lead to overhead that outweighs the actual data processing time.

D) Avoid using embedded characters such as commas for numeric data types: Embedded characters can cause issues during data loading as they may be interpreted incorrectly. It's best to clean the data of such characters to ensure accurate and efficient data loading.

These best practices are designed to optimize the data loading process, ensuring that data is loaded quickly and accurately into Snowflake.

Snowflake Documentation on Data Loading Considerations

[COF-C02] SnowPro Core Certification Exam Study Guide

A user has 10 files in a stage containing new customer data. The ingest operation completes with no errors, using the following command:

COPY INTO my__table FROM @my__stage;

The next day the user adds 10 files to the stage so that now the stage contains a mixture of new customer data and updates to the previous data. The user did not remove the 10 original files.

If the user runs the same copy into command what will happen?

A.
All data from all of the files on the stage will be appended to the table
A.
All data from all of the files on the stage will be appended to the table
Answers
B.
Only data about new customers from the new files will be appended to the table
B.
Only data about new customers from the new files will be appended to the table
Answers
C.
The operation will fail with the error uncertain files in stage.
C.
The operation will fail with the error uncertain files in stage.
Answers
D.
All data from only the newly-added files will be appended to the table.
D.
All data from only the newly-added files will be appended to the table.
Answers
Suggested answer: A

Explanation:

When theCOPY INTOcommand is executed in Snowflake, it processes all files present in the specified stage that have not been ingested before or marked as already loaded. Since the user did not remove the original 10 files after the first load, running the sameCOPY INTOcommand again will result in all 20 files being processed. This means that the data from the original 10 files will be appended to the table again, along with the data from the new 10 files, potentially leading to duplicate records for the original data set.

Snowflake Documentation on Data Loading

SnowPro Core Certification Study Guide

A user has unloaded data from Snowflake to a stage

Which SQL command should be used to validate which data was loaded into the stage?

A.
list @file__stage
A.
list @file__stage
Answers
B.
show @file__stage
B.
show @file__stage
Answers
C.
view @file__stage
C.
view @file__stage
Answers
D.
verify @file__stage
D.
verify @file__stage
Answers
Suggested answer: A

Explanation:

Thelistcommand in Snowflake is used to validate and display the list of files in a specified stage. When a user has unloaded data to a stage, running thelist @file__stagecommand will show all the files that have been uploaded to that stage, allowing the user to verify the data that was unloaded.

Snowflake Documentation on Stages

SnowPro Core Certification Study Guide

What happens when a cloned table is replicated to a secondary database? (Select TWO)

A.
A read-only copy of the cloned tables is stored.
A.
A read-only copy of the cloned tables is stored.
Answers
B.
The replication will not be successful.
B.
The replication will not be successful.
Answers
C.
The physical data is replicated
C.
The physical data is replicated
Answers
D.
Additional costs for storage are charged to a secondary account
D.
Additional costs for storage are charged to a secondary account
Answers
E.
Metadata pointers to cloned tables are replicated
E.
Metadata pointers to cloned tables are replicated
Answers
Suggested answer: C, E

Explanation:

When a cloned table is replicated to a secondary database in Snowflake, the following occurs:

C) The physical data is replicated: The actual data of the cloned table is physically replicated to the secondary database.This ensures that the secondary database has its own copy of the data, which can be used for read-only purposes or failover scenarios1.

E) Metadata pointers to cloned tables are replicated: Along with the physical data, the metadata pointers that refer to the cloned tables are also replicated.This metadata includes information about the structure of the table and any associated properties2.

It's important to note that while the physical data and metadata are replicated, the secondary database is typically read-only and cannot be used for write operations. Additionally, while there may be additional storage costs associated with the secondary account, this is not a direct result of the replication process but rather a consequence of storing additional data.

SnowPro Core Exam Prep --- Answers to Snowflake's LEVEL UP: Backup and Recovery

Snowflake SnowPro Core Certification Exam Questions Set 10

Total 627 questions
Go to page: of 63