What object does Snowflake recommend using when planning to unload similarly-formatted data on a regular basis?
Correct Answer: D
* A Named File Format is a reusable object in Snowflake that defines file format options for loading and unloading data.
* When unloading similarly formatted data regularly, using a named file format saves time and ensures consistency.
* Example:
sql
CopyEdit
CREATE FILE FORMAT my_format
TYPE = CSV
FIELD_OPTIONALLY_ENCLOSED_BY = '"';
COPY INTO @my_stage/data.csv
FROM my_table
FILE_FORMAT = my_format;
Why Other Options Are Incorrect:
* A. Stream: Used for change tracking in tables, not for unloading data.
* B. Task: Used for scheduling actions, not for defining file formats.
* C. Storage Integration: Used to connect to cloud storage securely, unrelated to unloading file formats.
References:
* File Formats Documentation