
Answer-first summary for fast verification
Answer: OBJECT, VARIANT
The question asks for two Snowflake data types that can construct nested hierarchical data. According to Snowflake documentation and the community consensus (100% agreement on BC with upvoted comments), OBJECT and VARIANT are the correct choices. An OBJECT can contain key-value pairs where values can be VARIANT types, allowing nesting. A VARIANT can store any data type, including ARRAYs and OBJECTs, enabling hierarchical structures. INTEGER (A) and VARCHAR (D) are scalar types that cannot inherently nest data. LIST (E) is not a native Snowflake data type; ARRAY is used instead, but ARRAY itself stores VARIANT elements, making VARIANT the fundamental type for nesting.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.