Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 89

The FLATTEN function is used to query which type of data in Snowflake?

    Correct Answer: B

    The FLATTEN function in Snowflake is used to query semi-structured data. Semi-structured data often contains nested structures, such as JSON or XML, which require flattening to break the data into a more tabular form for easier querying. Structured data, on the other hand, is already in a tabular format and does not need flattening.

Discussion
MBratOption: C

C is correct, see https://docs.snowflake.com/en/sql-reference/data-types-structured#label-structured-types-working-flatten

lhstudylhOption: B

Correct answer FLATTEN is used to unnest semi-structured data. Don't see an application for structured data as by definition it shouldn't be nested.

Mallikharjuna452Option: C

It works for both

372110cOption: C

Works with both

MultiCloudIronManOption: B

Correct

Mayuri917233Option: B

B is correct

Tapasgup007Option: B

B is correct