nerdexam
Snowflake

COF-R02 · Question #205

A table needs to be loaded. The input data is in JSON format and is a concatenation of multiple JSON documents. The file size is 3 GB. A warehouse size small is being used. The following COPY INTO…

The correct answer is A. Compress the file and load the compressed file. See the full explanation below for the reasoning.

Question

A table needs to be loaded. The input data is in JSON format and is a concatenation of multiple JSON documents. The file size is 3 GB. A warehouse size small is being used. The following COPY INTO command was executed:

COPY INTO SAMPLE FROM @~/SAMPLE.JSON (TYPE=JSON) The load failed with this error:

Max LOB size (16777216) exceeded, actual size of parsed column is 17894470. How can this issue be resolved?

Options

  • ACompress the file and load the compressed file.
  • BSplit the file into multiple files in the recommended size range (100 MB -250 MB).
  • CUse a larger-sized warehouse.
  • DSet STRIP_OUTER_ARRAY=TRUE in the COPY INTO command.

How the community answered

(17 responses)
  • A
    71% (12)
  • B
    6% (1)
  • C
    6% (1)
  • D
    18% (3)

Community Discussion

No community discussion yet for this question.

Full COF-R02 Practice