ExamGecko
Question list
Search
Search

Question 635 - COF-C02 discussion

Report
Export

How can staged files be removed during data loading once the files have loaded successfully?

A.
Use the DROP command
Answers
A.
Use the DROP command
B.
Use the purge copy option.
Answers
B.
Use the purge copy option.
C.
Use the FORCE = TRUE parameter
Answers
C.
Use the FORCE = TRUE parameter
D.
Use the LOAD UNCERTAIN FILES copy option.
Answers
D.
Use the LOAD UNCERTAIN FILES copy option.
Suggested answer: B

Explanation:

To remove staged files during data loading after they have been successfully loaded, the PURGE copy option is used in Snowflake.

PURGE Option: This option automatically deletes files from the stage after they have been successfully copied into the target table.

Usage:

FROM @my_stage

FILE_FORMAT = (type = 'csv')

PURGE = TRUE;

References:

Snowflake Documentation on COPY INTO

asked 23/09/2024
Zdenek Machura
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first