1. What is the essential difference between Snowflake's OBJECT type and its VARIANT type?
- A. OBJECT specifically represents a semi-structured key-value structure (similar to a JSON object), while VARIANT is a more general container that can hold an OBJECT, ARRAY, or any scalar value✓ Correct
- B. OBJECT and VARIANT are exactly the same type with two different names
- C. OBJECT can only store numbers, while VARIANT can only store strings
- D. VARIANT is deprecated in favor of OBJECT
Explanation
OBJECT is specifically a key-value (JSON-object-like) structure, while VARIANT is the broader, general-purpose semi-structured container that can hold an OBJECT, an ARRAY, or a scalar value — VARIANT is effectively the superset type used when the exact shape isn't fixed to 'always an object.' Option B collapses a real distinction. Option C mischaracterizes both types, which are not restricted to a single scalar kind. Option D is false; VARIANT remains a core, actively used type, not deprecated.