exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 1159 discussion

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

Which function is used to unload a relational table into a JSON file?

  • A. PARSE_JSON
  • B. JSON_EXTRACT_PATH_TEXT
  • C. OBJECT_CONSTRUCT
  • D. TO_JSON
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
pieterjacobi1
3 weeks, 3 days ago
Selected Answer: D
The TO_JSON function in Snowflake is used to convert relational data into a JSON-formatted string. It is the appropriate function to use when unloading a relational table into a JSON file, as it serializes the data into a JSON representation.
upvoted 1 times
...
MatthieuDN
3 weeks, 5 days ago
Selected Answer: C
I'm changing my answer to C
upvoted 1 times
NPass
2 weeks, 4 days ago
Answer is D. OBJECT_CONSTRUCT Returns an OBJECT constructed from the arguments -- NOT JSON
upvoted 1 times
...
...
MatthieuDN
1 month ago
Selected Answer: D
D is correct, I think the first two are for unloading json and C needs the COPY INTO [location] to successfully unload json
upvoted 2 times
...
md_2000
4 months, 1 week ago
Selected Answer: D
D. TO_JSON Explanation: TO_JSON is used to convert relational data into JSON format, which is ideal when unloading a relational table into a JSON file. Why the others are wrong: A. PARSE_JSON: This function is used to parse a JSON string into a Snowflake-compatible format, not for converting relational data into JSON. B. JSON_EXTRACT_PATH_TEXT: This function extracts specific values from JSON data, but it doesn't convert relational data into JSON. C. OBJECT_CONSTRUCT: This creates a JSON object from key-value pairs, but it doesn't convert the entire relational data into JSON format. Example of using TO_JSON: SELECT TO_JSON(OBJECT_CONSTRUCT(*)) FROM my_table;
upvoted 2 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