Exam4Training

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

A user has 10 files in a stage containing new customer dat

a. 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
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.
D . All data from only the newly-added files will be appended to the table.

Answer: A

Explanation:

When the COPY INTO command 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 same COPY INTO command 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.

Reference: Snowflake Documentation on Data Loading

SnowPro® Core Certification Study Guide

Latest COF-C02 Dumps Valid Version with 254 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version