exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 1053 discussion

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

Which function unloads data from a relational table to JSON?

  • A. TO_OBJECT
  • B. TO_JSON
  • C. TO_VARIANT
  • D. OBJECT_CONSTRUCT
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
azprepd
1 month, 1 week ago
Selected Answer: D
OBJECT_CONSTRUCT builds the JSON structure from relational data, and TO_JSON converts that structure into the final JSON string for unloading into files. Both answers seem to be steps of the solution, but since the question mentions the table as the source, my guess would be D
upvoted 1 times
...
37ceea2
6 months, 1 week ago
Selected Answer: A
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.
upvoted 1 times
2cb777b
5 months, 3 weeks ago
Sorry, my answer is B
upvoted 1 times
...
...
Aparna98
10 months, 3 weeks ago
d is correct
upvoted 1 times
...
nexerSnow
10 months, 4 weeks ago
Selected Answer: D
D correct
upvoted 1 times
...
4762448
11 months, 1 week ago
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
upvoted 1 times
...
icegrandpa
11 months, 1 week ago
d is correct: https://community.snowflake.com/s/article/faq-can-i-unload-a-relational-table-with-multiple-columns-to-json
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 ...