Data Ingestion and Transformation

A Redshift batch load must read only an approved list of S3 files and fail if any listed file is missing. Unrelated files share the same prefix. Which COPY configuration meets both requirements?

Show the answer

Correct answerC. Use a manifest with every entry marked mandatory: true.

AWhy not this: A shared prefix can include unrelated files; MAXERROR controls tolerated data errors, not an exact file list.

BWhy not this: A shared prefix can include unrelated files, and IGNOREALLERRORS does not enforce required file presence.

CWhy this is right: The manifest limits the load to listed files, and mandatory: true requires every listed file to exist.

DWhy not this: The manifest selects the files, but mandatory: false allows missing entries to be skipped.

A manifest specifies the exact files to load, and mandatory: true makes COPY fail if a listed file is missing. A manifest with mandatory: false selects the files but permits missing entries to be skipped.