COF-C02 · Question #416
Which data types optimally store semi-structured data? (Select TWO).
The correct answer is A. ARRAY E. VARIANT. Snowflake provides three native semi-structured data types: VARIANT, ARRAY, and OBJECT. VARIANT is the most flexible - it can store any semi-structured value including JSON, Avro, ORC, Parquet, and XML data. ARRAY is a typed collection that stores ordered lists of values. Both…
Question
Which data types optimally store semi-structured data? (Select TWO).
Options
- AARRAY
- BCHARACTER
- CSTRING
- DVARCHAR
- EVARIANT
How the community answered
(27 responses)- A89% (24)
- B4% (1)
- C7% (2)
Explanation
Snowflake provides three native semi-structured data types: VARIANT, ARRAY, and OBJECT. VARIANT is the most flexible - it can store any semi-structured value including JSON, Avro, ORC, Parquet, and XML data. ARRAY is a typed collection that stores ordered lists of values. Both are purpose-built for semi-structured data and support dot/bracket notation for querying nested elements. CHARACTER, STRING, and VARCHAR are all character/text types and can technically store semi-structured data as raw text, but they offer no structural awareness, traversal, or optimization - making them poor choices for this use case.
Topics
Community Discussion
No community discussion yet for this question.