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

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

When would a Data Engineer use TABLE with the FLATTEN function instead of the LATERAL FLATTEN combination?

  • A. When TABLE with FLATTEN requires another source in the FROM clause to refer to.
  • B. When TABLE with FLATTEN requires no additional source in the FROM clause to refer to.
  • C. When the LATERAL FLATTEN combination requires no other source in the FROM clause to refer to.
  • D. When TABLE with FLATTEN is acting like a sub-query executed for each returned row.
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 year ago
Selected Answer: B
as wrote here: https://docs.snowflake.com/en/user-guide/json-basics-tutorial-flatten You can flatten the event objects in the events array into separate rows using the FLATTEN function. The function output includes a VALUE column that stores these individual events. You can then use the LATERAL modifier to join the FLATTEN function output with any information outside of the object
upvoted 2 times
...
prshntdxt7
1 year ago
Selected Answer: D
D. When TABLE with FLATTEN is acting like a sub-query executed for each returned row. The TABLE with FLATTEN combination is typically used when you want to treat the result of the FLATTEN function as a table that can be further joined or manipulated. This is particularly useful when you need to perform additional operations on each row returned by the FLATTEN function. The LATERAL FLATTEN combination is used when the FLATTEN function references other tables or sources in the FROM clause, and it allows for correlated subqueries.
upvoted 1 times
...
BigDataBB
1 year, 1 month ago
Selected Answer: D
By my opinion, as is wrote here: https://docs.snowflake.com/en/sql-reference/functions/flatten the answer should be: Flattens (explodes) compound values into multiple rows.
upvoted 1 times
...
Snow_P
1 year, 2 months ago
Selected Answer: B
https://docs.snowflake.com/en/sql-reference/functions/flatten
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 ...