exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 1337 discussion

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

How can a relational table be unloaded into a JSON file?

  • A. Use the OBJECT_CONSTRUCT function in conjunction with the COPY INTO [location] command.
  • B. Use the COPY INTO [location] command with the file_format set as JSON.
  • C. Use the PUT command with the file_format set as JSON.
  • D. Use the GET command with the file_format set as JSON.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
37ceea2
3 weeks, 1 day ago
Selected Answer: A
-- Unload the data to a file in a stage COPY INTO @mystage FROM (SELECT OBJECT_CONSTRUCT('id', id, 'first_name', first_name, 'last_name', last_name, 'city', city, 'state', state) FROM mytable) FILE_FORMAT = (TYPE = JSON); -- The COPY INTO location statement creates a file named data_0_0_0.json.gz in the stage.
upvoted 2 times
37ceea2
1 week, 5 days ago
Please, disregard. The question does not say anything about an Object_Construct. Right answer is B.
upvoted 1 times
...
...
bor4un
4 weeks, 1 day ago
Selected Answer: A
https://docs.snowflake.com/en/user-guide/data-unload-considerations#unloading-a-relational-table-to-json
upvoted 2 times
...
MatthieuDN
4 weeks, 1 day ago
Selected Answer: A
A, seen many times
upvoted 1 times
...
Mohit78jain
1 month, 1 week ago
Selected Answer: A
A is correct
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