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 13 discussion

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

The JSON below is stored in a VARIANT column named V in a table named jCustRaw:

Which query will return one row per team member (stored in the teamMembers array) along with all of the attributes of each team member?

  • A.
  • B.
  • C.
  • D.
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
BigDataBB
1 month, 1 week ago
Selected Answer: B
https://docs.snowflake.com/user-guide/semistructured-considerations#using-flatten-to-list-distinct-key-names
upvoted 1 times
...
stopthisnow
1 month, 3 weeks ago
Selected Answer: B
Technically, none of the statements work properly. The nearest valid option is B. create or replace table persons as select parse_json( '{ "_id": "4534554654640", "company": "Boo", "name": "Dean", "teamMembers": [ { "age":29, "eyeColor": "green" }, { "age":39, "eyeColor": "green2" } ] }' ) as c ; select f.value:eyeColor::varchar as eyeColor, f.value:age from TASK_DB.PUBLIC.PERSONS as p, lateral flatten(input => p:teamMembers) f;
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