SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 1053


Which function unloads data from a relational table to JSON?

Show Answer
Correct Answer: D

The function that unloads data from a relational table to JSON is OBJECT_CONSTRUCT. This function can be used in combination with the COPY command to convert the rows in a relational table to a single VARIANT column, which can then be unloaded into a JSON file.

Discussion

5 comments
Sign in to comment
icegrandpa
Sep 10, 2024

d is correct: https://community.snowflake.com/s/article/faq-can-i-unload-a-relational-table-with-multiple-columns-to-json

4762448
Sep 13, 2024

D is correct: Unloading a relational table to JSON You can use the OBJECT_CONSTRUCT function combined with the COPY command to convert the rows in a relational table to a single VARIANT column and unload the rows into a file. https://docs.snowflake.com/en/user-guide/data-unload-considerations

nexerSnowOption: D
Sep 23, 2024

D correct

Aparna98
Sep 30, 2024

d is correct

37ceea2Option: A
Feb 7, 2025

No, D is not correct. As long as Variant column is not part of the action, it is about TO_JSON, since, we do not need to construct any object, like Variant column.

2cb777b
Feb 27, 2025

Sorry, my answer is B