COF-R02 practice question 34 of 35

A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip__outer_array file format option What does the STRIP_OUTER_ARRAY file format do?

Full set: 330 questions
Answer options
A: It removes the last element of the outer array.
B: It removes the outer array structure and loads the records into separate table rows, Correct answer
C: It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
D: It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
Correct Answer:
B. It removes the outer array structure and loads the records into separate table rows,
Explanation

Data Size Limitations

The VARIANT data type imposes a 16 MB size limit on individual rows.

For some semi-structured data formats (e.g. JSON), data sets are frequently a simple concatenation

of multiple documents. The JSON output from some software is composed of a single huge array

containing multiple records. There is no need to separate the documents with line breaks or

commas, though both are supported.

If the data exceeds 16 MB, enable the STRIP_OUTER_ARRAY file format option for the COPY INTO

 command to remove the outer array structure and load the records into separate table rows:

copy into

from @~/.json

file_format = (type = 'JSON' strip_outer_array = true);

https://docs.snowflake.com/en/user-guide/semistructured-considerations.html

Scroll to Top