Valid DAA-C01 Dumps shared by EduDump.com for Helping Passing DAA-C01 Exam! EduDump.com now offer the newest DAA-C01 exam dumps, the EduDump.com DAA-C01 exam questions have been updated and answers have been corrected get the newest EduDump.com DAA-C01 dumps with Test Engine here:
You are tasked with loading data from a CSV file stored in AWS S3 into a Snowflake table named 'SALES DATA. The CSV file has a header row, is comma-delimited, and contains a date field (SALE DATE) in the format 'MM/DD/YYYY'. Some rows in the CSV contain invalid date values (e.g., '02/30/2024'). You need to create a file format, a stage, and a copy command to load the data, skipping rows with invalid dates and logging the errors for later analysis. Which of the following snippets correctly define the file format and COPY command to achieve this? Assume an external stage named already exists.
Correct Answer: A
The correct answer is A. 'ON_ERROR = SKIP_FILE skips the entire file if any errors are encountered during loading. Other options like 'CONTINUE' might load invalid data and 'ABORT STATEMENT will stop the loading process entirely. The question specifically asks for skipping rows with invalid dates, while still loading the valid rows from the file. SKIP_FILE ignores the entire file and logs the error. However, this approach skips the entire file if even one row is invalid. A better approach would be to use VALIDATION MODE and potentially a transformation during load, but given the options presented, SKIP_FILE is the closest solution to the problem statement.