A data engineer needs to load a JSON file from an external S3 stage into a Snowflake table. The JSON file contains an array of objects at the top level. Which COPY INTO option should be used to instruct Snowflake to treat each element of the top-level array as a separate row during ingestion?
- A. STRIP_OUTER_ARRAY = TRUE✓ Correct
- B. TRIM_SPACE = TRUE
- C. ENABLE_OCTAL = TRUE
- D. STRIP_NULL_VALUES = TRUE
Explanation
STRIP_OUTER_ARRAY = TRUE tells the JSON parser to remove the outermost array brackets and load each array element as a separate row — this is the correct option for top-level JSON arrays. STRIP_NULL_VALUES removes null key-value pairs from JSON objects but does not affect array handling. ENABLE_OCTAL controls interpretation of octal numbers in JSON and is unrelated to array structure. TRIM_SPACE removes leading/trailing whitespace from string fields and has no effect on JSON array parsing.