exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 173 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 173
Topic #: 1
[All SnowPro Core Questions]

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 S 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?

  • A. Compress the file and load the compressed file.
  • B. Split the file into multiple files in the recommended size range (100 MB - 250 MB).
  • C. Use a larger-sized warehouse.
  • D. Set STRIP_OUTER_ARRAY=TRUE in the COPY INTO command.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
0e504b5
Highly Voted 1 year, 2 months ago
Selected Answer: D
D https://docs.snowflake.com/en/user-guide/semistructured-considerations#data-size-limitations Semi-structured Data Size Limitations A VARIANT can have a maximum size of up to 16 MB of uncompressed data. However, in practice, the maximum size is usually smaller due to internal overhead. The maximum size is also dependent on the object being stored. For more information, see VARIANT. In general, JSON data sets are 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 <table> command to remove the outer array structure and load the records into separate table rows
upvoted 6 times
...
PrasantSadangi
Most Recent 3 days, 16 hours ago
Selected Answer: D
https://snowflake.discourse.group/t/what-json-format-does-strip_outer_array-support/7771
upvoted 1 times
...
Siif97
2 months ago
Selected Answer: B
The reason D. Set STRIP_OUTER_ARRAY=TRUE in the COPY INTO command is not the correct answer is because this option is used to handle JSON data that is wrapped in an outer array. It does not address the issue of exceeding the maximum LOB size. The error you encountered, “Max LOB size (16777216) exceeded,” indicates that the size of a single JSON document within your file exceeds the maximum allowed size for a large object (LOB) in Snowflake So it's B
upvoted 2 times
...
necroz
3 months, 3 weeks ago
Selected Answer: D
Removing brackets turns the JSON into an NDJSON, since every entry is valid json it can be parsed separately, the file won't be read in memory before being parsed
upvoted 1 times
...
HICH9173
5 months, 2 weeks ago
it should be B split the files. https://community.snowflake.com/s/article/Max-LOB-size-exceeded#:~:text=When%20ingesting%20XML%20or%20JSON,of%20parsed%20column%20is%2017894470.
upvoted 2 times
...
sam_art
8 months ago
Have you considered studying instead of guessing all the answers?
upvoted 2 times
...
NeerajaVoleti
9 months, 2 weeks ago
Correct Answer - B The error “Max LOB size (16777216) exceeded” indicates that the size of the parsed column exceeds the maximum size allowed for a single column value in Snowflake, which is 16 MB. To resolve this issue, the file should be split into multiple smaller files that are within the recommended size range of 100 MB to 250 MB. This will ensure that each JSON document within the files is smaller than the maximum LOB size allowed. Compressing the file, using a larger-sized warehouse, or setting STRIP_OUTER_ARRAY=TRUE will not resolve the issue of the column size exceeding the maximum allowed. References: COPY INTO Error during Structured Data Load: “Max LOB size (16777216) exceeded…”
upvoted 2 times
...
pranalig
9 months, 2 weeks ago
Correct Answer: D
upvoted 1 times
...
GRKaushal
1 year, 1 month ago
Selected Answer: A
Ans A ...........
upvoted 1 times
...
AnireddySaikiranReddy
1 year, 1 month ago
Correct Answer: D
upvoted 3 times
...
_yyukta
1 year, 1 month ago
Selected Answer: D
D is correct
upvoted 3 times
...
0e504b5
1 year, 2 months ago
Selected Answer: B
https://community.snowflake.com/s/article/Max-LOB-size-exceeded#:~:text=When%20ingesting%20XML%20or%20JSON,of%20parsed%20column%20is%2017894470. When ingesting XML or JSON documents, if the size of the compressed column data exceeds Snowflake’s limit of 16MB [1], an error may occur: Max LOB size (16777216) exceeded, actual size of parsed column is 17894470.
upvoted 1 times
...
oscarglob
1 year, 3 months ago
The message also says that the column size that was read is a bit over 17MB. It's not the entire 3GB file. Wouldn't this create a problem by separating parts of the JSON that should be together?
upvoted 1 times
...
Colourseun
1 year, 4 months ago
The correct answer is B. Split the file into multiple files in the recommended size range (100 MB - 250 MB). The error message indicates that the size of the JSON data exceeds the maximum LOB size of 16 MB. This can happen if the JSON data contains large nested arrays or objects.
upvoted 1 times
...
Arnab14
1 year, 10 months ago
Selected Answer: D
https://community.snowflake.com/s/article/Max-LOB-size-exceeded#:~:text=When%20ingesting%20XML%20or%20JSON,of%20parsed%20column%20is%2017894470.
upvoted 1 times
...
Raju039
2 years ago
Selected Answer: D
D is correct.
upvoted 1 times
...
KarBiswa
2 years, 1 month ago
Selected Answer: D
Failed on maximum column size
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago