SOL-C01 · Question #93
You are loading data from an external stage into a Snowflake table. Some of the rows in the data files contain invalid characters that cause the load operation to fail. You want to configure the 'COPY
The correct answer is D. Option D. The question tests knowledge of Snowflake's ON_ERROR parameter in the COPY INTO command. Option D is correct because setting ON_ERROR = 'CONTINUE' instructs Snowflake to skip individual invalid rows and continue loading all remaining valid rows, which is exactly the behavior desc
Question
You are loading data from an external stage into a Snowflake table. Some of the rows in the data files contain invalid characters that cause the load operation to fail. You want to configure the 'COPY INTO' command to skip these rows while continuing to load valid data. Which of the following options is the MOST efficient way to handle these errors during the data loading process?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
- EOption E
How the community answered
(48 responses)- A6% (3)
- B19% (9)
- C13% (6)
- D60% (29)
- E2% (1)
Explanation
The question tests knowledge of Snowflake's ON_ERROR parameter in the COPY INTO command. Option D is correct because setting ON_ERROR = 'CONTINUE' instructs Snowflake to skip individual invalid rows and continue loading all remaining valid rows, which is exactly the behavior described - partial success instead of an all-or-nothing load.
The distractors represent less suitable ON_ERROR values: ABORT_STATEMENT (the default) halts the entire load on the first error, loading nothing; SKIP_FILE abandons the entire file containing the bad row rather than just skipping the offending row; SKIP_FILE_<num> and SKIP_FILE_<num>% variants skip whole files once an error threshold is crossed, still discarding valid rows in flagged files. None of these achieve row-level granularity.
Memory tip: Think of the options on a spectrum from "strictest" to "most permissive" - ABORT_STATEMENT → SKIP_FILE → CONTINUE. The question asks to keep loading valid data row-by-row, so you want the most permissive end of the spectrum: CONTINUE.
Topics
Community Discussion
No community discussion yet for this question.
