0
0
Snowflakecloud~20 mins

Data types in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Snowflake Data Types Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the correct Snowflake data type for storing variable-length text
Which Snowflake data type is best suited for storing text strings of varying length up to 16 MB?
ACHAR
BVARCHAR
CTEXT
DSTRING
Attempts:
2 left
💡 Hint
Think about which type allows flexible length and is optimized for text.
Configuration
intermediate
2:00remaining
Determine the output data type of a Snowflake expression
What is the resulting data type of this Snowflake expression?
SELECT 123.45 + 67;
Snowflake
SELECT 123.45 + 67;
AVARCHAR
BNUMBER(10,2)
CINTEGER
DFLOAT
Attempts:
2 left
💡 Hint
Consider how Snowflake handles numeric literals with decimals.
Architecture
advanced
2:00remaining
Choose the best Snowflake data type for storing JSON data
You need to store semi-structured JSON data efficiently in Snowflake. Which data type should you use?
AARRAY
BOBJECT
CVARIANT
DVARCHAR
Attempts:
2 left
💡 Hint
Snowflake has special types for semi-structured data.
security
advanced
2:00remaining
Identify the Snowflake data type that supports encryption at rest natively
Which Snowflake data type inherently supports encryption at rest without additional configuration?
ABINARY
BVARIANT
CTIMESTAMP_NTZ
DBOOLEAN
Attempts:
2 left
💡 Hint
Think about data types that store raw bytes.
service_behavior
expert
2:00remaining
Predict the behavior when inserting incompatible data types in Snowflake
What happens if you try to insert a string value 'abc' into a Snowflake column defined as NUMBER(5,0)?
Snowflake
CREATE TABLE test_num (id NUMBER(5,0));
INSERT INTO test_num VALUES ('abc');
AInsertion fails with a conversion error
BString 'abc' is truncated and stored as NULL
CString 'abc' is stored as 0
DInsertion succeeds storing 'abc' as a string
Attempts:
2 left
💡 Hint
Consider how Snowflake handles type mismatches during insert.