ExamGecko
Question list
Search
Search

Question 430 - SnowPro Core discussion

Report
Export

What command is used to export or unload data from Snowflake?

A.

PUT @mystage

Answers
A.

PUT @mystage

B.

GET @mystage

Answers
B.

GET @mystage

C.

COPY INTO @mystage

Answers
C.

COPY INTO @mystage

D.

INSERT @mystage

Answers
D.

INSERT @mystage

Suggested answer: A

Explanation:

The command used to export or unload data from Snowflake to a stage (such as a file in an S3 bucket, Azure Blob Storage, or Google Cloud Storage) is the PUT command. The PUT command is designed to upload data files from a local file system (in the case of SnowSQL or other client) or a virtual warehouse to a specified stage. This functionality is critical for scenarios where data needs to be extracted from Snowflake for use in external systems, backups, or further processing.

The syntax for the PUT command follows the structure: PUT file://<local_file_path> @<stage_name>, where <local_file_path> specifies the path to the file(s) on the local file system that you wish to upload, and <stage_name> specifies the destination stage in Snowflake.

It's important to distinguish that the PUT command is used for exporting data out of Snowflake, whereas the COPY INTO <table> command is used for importing data into Snowflake from a stage. The GET command, on the other hand, is used to download files from a stage to the local file system, essentially the inverse operation of the PUT command.

Snowflake Documentation on Loading and Unloading Data: [Loading and Unloading Data](https://docs.snowflake.com/en/user-guide/data-load

asked 29/10/2024
Jason Smith
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first