ExamGecko
Question list
Search
Search

Question 141 - COF-C02 discussion

Report
Export

Which methods can be used to delete staged files from a Snowflake stage? (Choose two.)

A.
Use the DROP <file> command after the load completes.
Answers
A.
Use the DROP <file> command after the load completes.
B.
Specify the TEMPORARY option when creating the file format.
Answers
B.
Specify the TEMPORARY option when creating the file format.
C.
Specify the PURGE copy option in the COPY INTO <table> command.
Answers
C.
Specify the PURGE copy option in the COPY INTO <table> command.
D.
Use the REMOVE command after the load completes.
Answers
D.
Use the REMOVE command after the load completes.
E.
Use the DELETE LOAD HISTORY command after the load completes.
Answers
E.
Use the DELETE LOAD HISTORY command after the load completes.
Suggested answer: C, D

Explanation:

To delete staged files from a Snowflake stage, you can specify thePURGEoption in theCOPY INTO <table>command, which will automatically delete the files after they have been successfully loaded.Additionally, you can use theREMOVEcommand after the load completes to manually delete the files from the stage12.

References =DROP STAGE,REMOVE

asked 23/09/2024
George Mabry
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first