ExamGecko
Question list
Search
Search

Question 58 - SnowPro Core discussion

Report
Export

A user has 10 files in a stage containing new customer data. The ingest operation completes with no errors, using the following command:

COPY INTO my__table FROM @my__stage;

The next day the user adds 10 files to the stage so that now the stage contains a mixture of new customer data and updates to the previous data. The user did not remove the 10 original files.

If the user runs the same copy into command what will happen?

A.
All data from all of the files on the stage will be appended to the table
Answers
A.
All data from all of the files on the stage will be appended to the table
B.
Only data about new customers from the new files will be appended to the table
Answers
B.
Only data about new customers from the new files will be appended to the table
C.
The operation will fail with the error uncertain files in stage.
Answers
C.
The operation will fail with the error uncertain files in stage.
D.
All data from only the newly-added files will be appended to the table.
Answers
D.
All data from only the newly-added files will be appended to the table.
Suggested answer: A

Explanation:

When theCOPY INTOcommand is executed in Snowflake, it processes all files present in the specified stage that have not been ingested before or marked as already loaded. Since the user did not remove the original 10 files after the first load, running the sameCOPY INTOcommand again will result in all 20 files being processed. This means that the data from the original 10 files will be appended to the table again, along with the data from the new 10 files, potentially leading to duplicate records for the original data set.

Snowflake Documentation on Data Loading

SnowPro Core Certification Study Guide

asked 23/09/2024
Vicky Mukhy
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first