Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam SnowPro Advanced Data Engineer All Questions

View all questions & answers for the SnowPro Advanced Data Engineer exam

Exam SnowPro Advanced Data Engineer topic 1 question 2 discussion

Actual exam question from Snowflake's SnowPro Advanced Data Engineer
Question #: 2
Topic #: 1
[All SnowPro Advanced Data Engineer Questions]

How can the following relational data be transformed into semi-structured data using the LEAST amount of operational overhead?

  • A. Use the TO_JSON function.
  • B. Use the PARSE_JSON function to produce a VARIANT value.
  • C. Use the OBJECT_CONSTRUCT function to return a Snowflake object.
  • D. Use the TO_VARIANT function to convert each of the relational columns to VARIANT.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
potterhead
1 month, 2 weeks ago
https://docs.snowflake.com/en/sql-reference/functions/object_construct.
upvoted 1 times
...
aba2s
2 months, 3 weeks ago
Selected Answer: C
OBJECT_CONSTRUCT supports expressions and queries to add, modify, or omit values from the JSON object. TO_JSON and PARSE_JSON are (almost) converse or reciprocal functions. The PARSE_JSON function takes a string as input and returns a JSON-compatible VARIANT. The TO_JSON function takes a JSON-compatible VARIANT and returns a string.
upvoted 1 times
...
rbeam
7 months, 4 weeks ago
Selected Answer: C
C is correct. sample from Snowflake: SELECT OBJECT_CONSTRUCT(*) AS oc FROM demo_table_1 ORDER BY oc['PROVINCE']; +---------------------------------+ | OC | |---------------------------------| | { | | "CREATED_DATE": "2020-01-19", | | "PROVINCE": "Alberta" | | } | | { | | "CREATED_DATE": "2020-01-18", | | "PROVINCE": "Manitoba" | | } | +---------------------------------+
upvoted 1 times
...
BigDataBB
11 months, 1 week ago
Selected Answer: C
https://docs.snowflake.com/en/sql-reference/functions/object_construct.
upvoted 2 times
...
azure_bimonster
11 months, 2 weeks ago
Selected Answer: C
C is the right one.
upvoted 2 times
...
stopthisnow
1 year ago
Selected Answer: C
Correction, C is the right answer. https://docs.snowflake.com/en/sql-reference/functions/object_construct. select OBJECT_CONSTRUCT(*) from PC_DBT_DB.DBT_ITAHIR.MANUAL_BOOK1
upvoted 3 times
...
stopthisnow
1 year ago
Selected Answer: B
https://docs.snowflake.com/en/sql-reference/functions/object_construct. select OBJECT_CONSTRUCT(*) from PC_DBT_DB.DBT_ITAHIR.MANUAL_BOOK1
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 ...