COF-C02 · Question #328
Which Snowflake data types can be used to build nested hierarchical data? (Select TWO)
The correct answer is B. OBJECT C. VARIANT. Snowflake supports semi-structured data through three native types: VARIANT, OBJECT, and ARRAY. VARIANT (C) is the most flexible - it can store any value of any type, including entire JSON documents, XML, Avro, or Parquet structures, making it ideal for arbitrary nested…
Question
Which Snowflake data types can be used to build nested hierarchical data? (Select TWO)
Options
- AINTEGER
- BOBJECT
- CVARIANT
- DVARCHAR
- ELIST
How the community answered
(21 responses)- A5% (1)
- B90% (19)
- D5% (1)
Explanation
Snowflake supports semi-structured data through three native types: VARIANT, OBJECT, and ARRAY. VARIANT (C) is the most flexible - it can store any value of any type, including entire JSON documents, XML, Avro, or Parquet structures, making it ideal for arbitrary nested hierarchical data. OBJECT (B) is a collection of key-value pairs (analogous to a JSON object) and directly supports nested structures when values are themselves OBJECTs or VARIANTs. INTEGER (A) and VARCHAR (D) are scalar types with no nesting capability. LIST (E) is not a valid Snowflake data type - the correct array type is ARRAY.
Topics
Community Discussion
No community discussion yet for this question.