Snowflake Topics Flashcards

1
Q

What are the primary methods for loading data into Snowflake?

A

The primary methods include bulk loading with the COPY INTO command, Snowpipe for continuous data loading, and manual loading via the web interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain the process of using Snowpipe for data loading.

A

Snowpipe automates the process of loading data into Snowflake by continuously ingesting data from files staged in external cloud storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Stage in Snowflake?

A

A Stage is a location where data files are stored for loading into or unloading from Snowflake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you load data from a local file system into Snowflake?

A

You can load data from a local file system into Snowflake by first uploading the files to an internal stage using the PUT command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe how to use COPY INTO command in Snowflake.

A

The COPY INTO command is used to load data from a stage into a Snowflake table. It specifies the file format and other options for the loading process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the role of external stages in Snowflake?

A

External stages refer to cloud storage locations, such as AWS S3, Azure Blob Storage, or Google Cloud Storage, that are used to store data files for loading into Snowflake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you unload data from Snowflake to an external location?

A

You can use the COPY INTO command to unload data from Snowflake tables into files stored in external cloud storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What file formats are supported by Snowflake for data loading?

A

Snowflake supports various file formats including CSV, JSON, Avro, ORC, and Parquet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you handle data transformations during loading?

A

Data transformations during loading can be handled using the COPY INTO command with transformation functions or by using a pre-processing step before loading.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of the FILE FORMAT object in Snowflake?

A

A FILE FORMAT object defines the format of data files, such as CSV or JSON, to be loaded into or unloaded from Snowflake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does Snowflake handle data compression?

A

Snowflake automatically compresses data files using algorithms like gzip or Snappy to reduce storage costs and improve loading performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe the error handling options available during data loading.

A

Snowflake provides options like SKIP_FILE, CONTINUE, and ABORT to handle errors during data loading, allowing flexibility in managing problematic data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the use of the VALIDATION_MODE parameter?

A

The VALIDATION_MODE parameter in the COPY INTO command allows you to validate the data files without actually loading them into the table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can you monitor data loading activities in Snowflake?

A

Data loading activities can be monitored using the Snowflake web interface, the QUERY_HISTORY view, and the TASK_HISTORY view.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the best practices for efficient data loading in Snowflake?

A

Best practices include using the appropriate file format, compressing data files, using parallel loading, and optimizing the data distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you automate data loading in Snowflake?

A

Data loading can be automated using Snowpipe, scheduled tasks, or integration with ETL tools and cloud services.

17
Q

What is the role of the PUT command in Snowflake?

A

The PUT command uploads data files from a local file system to an internal stage in Snowflake.

18
Q

How do you handle JSON data loading in Snowflake?

A

JSON data can be loaded into Snowflake using the COPY INTO command with a JSON file format specified, and it can be queried using Snowflake’s native JSON functions.

19
Q

What is a PARSE_ERROR file in Snowflake?

A

A PARSE_ERROR file is generated when there are errors during data loading, capturing details about the problematic data rows.

20
Q

How does Snowflake handle large data volumes during loading?

A

Snowflake handles large data volumes by automatically partitioning the data and distributing the load across multiple virtual warehouses for parallel processing.