SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 11


True or False: The COPY command must specify a File Format in order to execute.

Show Answer
Correct Answer: B

The COPY command in Snowflake does not necessarily require specifying a File Format in order to execute. It can automatically infer the file format based on the file's extension or internal structure. If needed, the file format can be specified explicitly for more control, but it is not mandatory.

Discussion

38 comments
Sign in to comment
jjordan
Jan 1, 2022

The correct answer is FALSE. The file format can be defined at the stage, table, or copy into command. Create Stage: https://docs.snowflake.com/en/sql-reference/sql/create-stage.html Create Table (STAGE_FILE_FORMAT option): https://docs.snowflake.com/en/sql-reference/sql/create-table.html Copy Into: https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html

tbridges
May 24, 2023

False. In Snowflake, the COPY command does not necessarily require specifying a File Format in order to execute. The COPY command can be used to load data into a table from various file formats such as CSV, JSON, Avro, Parquet, etc. When a file format is not explicitly specified in the COPY command, Snowflake attempts to automatically infer the file format based on the file's extension or internal file structure. This automatic file format inference feature is known as "automatic file format detection." However, if the file format cannot be determined automatically or if you want to override the automatic detection, you can explicitly specify a File Format in the COPY command using the FILE_FORMAT parameter. So, while specifying a File Format can provide more control and customization over the data loading process, it is not mandatory for the COPY command to execute successfully.

greenleverOption: B
Oct 26, 2022

Answer is False. If file format is not mentioned then file will be compressed as gz with default type csv.

instrideOption: B
Jun 5, 2023

The answer is FALSE. According to snowflake documentation, FILE FORMAT is an optional parameter. https://docs.snowflake.com/en/sql-reference/sql/copy-into-table#required-parameters

Josa2
Mar 1, 2023

Who is curating these Questions / Answers ? A lot of them are wrong and lots of discussions have 3..6months age and nobody updated it!!!

ViniJsr
Jan 4, 2023

File format is optional parameter . So answer is False https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html#required-parameters

Fabmel1Option: B
May 5, 2023

Correct is False, the reference for the "correct" is not an official Snowflake's documentation

Leinho
May 12, 2023

FILE_FORMAT parameter is defined as an optional parameter in snowflake documentation: https://docs.snowflake.com/en/sql-reference/sql/copy-into-table#optional-parameters

VS3497
Jun 14, 2023

A.The COPY command must specify a File Format in order to execute

Sid460545
Jan 30, 2022

Answer is False

StrStudyOption: B
Feb 1, 2022

the answer is false

Diegovaz
Jun 15, 2022

The correct answer is false!

Percy2112Option: A
Aug 14, 2022

We can provide the file format in copy command but it is optional, not mandatory. In that case we can integrate file format into stage.

bharathmvOption: B
Sep 6, 2022

Not mandatory to have format

mbacelarOption: B
Sep 29, 2022

Copy Into: https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html

seaunOption: B
Oct 27, 2022

https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html

PravinWadikar
Nov 14, 2022

Its not mendatory. Answer is B

Tapasgup007Option: B
Dec 2, 2022

B is True

ajay_1233456
Jan 22, 2023

False is correct answer

rajivgupta780Option: B
Jan 22, 2023

B, as you can provide file format at multiple layer...either question is incomplete or B is correct option.

alfredofmtOption: B
Apr 3, 2023

If a File Format is not specified, Snowflake will use the default format options. https://docs.snowflake.com/en/sql-reference/sql/copy-into-table

Mayuri917233Option: A
May 11, 2023

A is correct

PoornaChandraIn
Jul 4, 2023

Answer is B as it optional to provide in here as we can provide it later part also at stage or table level.

SanjayR
Aug 27, 2023

Correct Answer is B. Specifying FILE Format is not pre-requisite. see below Copy command e.g -- S3 bucket COPY INTO mytable FROM 's3://mybucket/./../a.csv'; -- Google Cloud Storage bucket COPY INTO mytable FROM 'gcs://mybucket/./../a.csv'; -- Azure container COPY INTO mytable FROM 'azure://myaccount.blob.core.windows.net/mycontainer/./../a.csv';

ETC2Option: B
Sep 1, 2023

The answer is FALSE. According to snowflake documentation, FILE FORMAT is an optional parameter. https://docs.snowflake.com/en/sql-reference/sql/copy-into-table#required-parameters

annasriOption: B
Oct 8, 2023

file format is nor mandatory

KHarish
Dec 4, 2023

B is correct

_yyuktaOption: A
Feb 23, 2024

A.True

AnireddySaikiranReddy
Feb 25, 2024

True-A

Stevec80Option: B
Apr 15, 2024

In the COPY command, the File_Format is not mandatory. With the Internal Named Stage you can specify file_format during creation of the stage

JasMozaiOption: B
May 8, 2024

It is optional

pranalig
Jun 16, 2024

correct answer:B

Mallikharjuna452
Jul 17, 2024

A.True

jirizOption: B
Sep 29, 2024

False, it's possible but not neccesary.

MikasSiOption: B
Feb 19, 2025

It is not mandatory to specify a FILE FORMAT for COPY operations. While it is not mandatory a FILE FORMAT should always be created for COPY into <table> operations and file unloading and COPY into <location> operations. Automatic inference should only be used with small sets of data and for testing or low importance data.

cappper05Option: B
Mar 10, 2025

No need to specify a File

jeny12138Option: B
Apr 7, 2025

FALSE FALSE

Prakas1954Option: B
Apr 8, 2025

File format is not necessary