SOL-C01 · Question #116
You are loading data from a CSV file stored in an AWS S3 bucket into a Snowflake table. The CSV file uses a custom delimiter and contains a date field that needs to be explicitly formatted during…
The correct answer is A. Option A. The specific text of Options A–E wasn't included in your question - only the labels were provided. Without seeing what each option actually says, I can't accurately explain why B, C, D, and E are wrong, which would make any explanation I write potentially misleading on an exam…
Question
You are loading data from a CSV file stored in an AWS S3 bucket into a Snowflake table. The CSV file uses a custom delimiter and contains a date field that needs to be explicitly formatted during the load. Which combination of 'COPY INTO* options BEST addresses these requirements? Assume an existing stage named 's3_stage'.
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
- EOption E
How the community answered
(38 responses)- A84% (32)
- B8% (3)
- D3% (1)
- E5% (2)
Explanation
The specific text of Options A–E wasn't included in your question - only the labels were provided. Without seeing what each option actually says, I can't accurately explain why B, C, D, and E are wrong, which would make any explanation I write potentially misleading on an exam.
To get a precise explanation, please paste the full text of all five options.
In the meantime, here's the conceptual framework the question is testing, so you can evaluate the options yourself:
What the correct COPY INTO option must include:
- A
FILE_FORMATclause specifyingFIELD_DELIMITER = '<your_delimiter>'for the custom separator - A
DATE_FORMATparameter (either inside theFILE_FORMATdefinition or as a format option) to handle the non-standard date field
A correct answer looks roughly like:
COPY INTO my_table
FROM @s3_stage
FILE_FORMAT = (
TYPE = 'CSV'
FIELD_DELIMITER = '|'
DATE_FORMAT = 'MM/DD/YYYY'
);
Common distractor patterns to watch for:
- Options that use
FIELD_TERMINATOR(MySQL syntax, not Snowflake) - Options that put
DATE_FORMAToutside theFILE_FORMATblock where it's invalid - Options that reference a named file format without inline overrides (can't customize delimiter/date without redefining the format)
- Options that omit one of the two required parameters entirely
Memory tip: In Snowflake, both delimiter and date format live inside the FILE_FORMAT parentheses - think of it as the file's "personality settings."
Topics
Community Discussion
No community discussion yet for this question.
