Table of contents
  1. 4.1 Define concepts and best practices that should be considered when loading data
    1. Stages and stage types
    2. File size and formats
    3. Folder structures
    4. Ad hoc/bulk loading
    5. Snowpipe
    6. 4.1: Practice Questions
  2. 4.2 Outline different commands used to load data and when they should be used.
    1. CREATE STAGE
    2. CREATE FILE FORMAT
    3. CREATE PIPE
    4. CREATE EXTERNAL TABLE
    5. COPY INTO
    6. INSERT/INSERT OVERWRITE
    7. PUT
    8. VALIDATE
    9. 4.2: Practice Questions
  3. 4.3 Define concepts and best practices that should be considered when unloading data
    1. File size and formats, overview of compression methods
    2. Empty strings and NULL values
    3. Unloading to a single file
    4. Unloading relational tables
    5. 4.3: Practice Questions
  4. 4.4 Outline the different commands used to unload data and when they should be used
    1. GET
    2. LIST
    3. COPY INTO
    4. CREATE STAGE
    5. CREATE FILE FORMAT
    6. 4.4: Practice Questions

4.1 Define concepts and best practices that should be considered when loading data

Stages and stage types

File size and formats

Folder structures

Ad hoc/bulk loading

Snowpipe

4.1: Practice Questions


4.2 Outline different commands used to load data and when they should be used.

CREATE STAGE

CREATE FILE FORMAT

CREATE PIPE

CREATE EXTERNAL TABLE

COPY INTO

INSERT/INSERT OVERWRITE

PUT

VALIDATE

4.2: Practice Questions


4.3 Define concepts and best practices that should be considered when unloading data

File size and formats, overview of compression methods

Empty strings and NULL values

Unloading to a single file

Unloading relational tables

4.3: Practice Questions

Which semi-structured file formats are supported when unloading data from a table? (Select TWO)

A. ORC

B. XML

C. Avro

D. Parquet

E. JSON


4.4 Outline the different commands used to unload data and when they should be used

GET

The correct syntax for the GET command in Snowflake to download files from an internal stage to a local directory on a Windows client machine should use forward slashes (/) in the file path and also handle spaces in directory names properly.

GET @%TBL_EMPLOYEE ‘file://C:/folder with space/’;

This command specifies the path using forward slashes, which is the preferred way in Snowflake’s context, even on Windows systems. The space in the directory name ‘folder with space’ is handled correctly in this format.

Commands that use backslashes (), which are typical in Windows file paths, are not the standard in Snowflake’s GET command. If you ever need to use backslashes in such a context, they should be escaped (e.g., \), but in this case, it’s simpler and more appropriate to use forward slashes.

LIST

COPY INTO

CREATE STAGE

CREATE FILE FORMAT

4.4: Practice Questions