0
0
Snowflakecloud~20 mins

Time Travel retention periods in Snowflake - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Time Travel Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Time Travel retention limits

Snowflake's Time Travel feature allows querying historical data. What is the maximum retention period for Time Travel on a standard Snowflake account?

A1 day (24 hours)
B7 days
C90 days
D365 days
Attempts:
2 left
💡 Hint

Think about the default maximum retention period for Time Travel in Snowflake standard editions.

Configuration
intermediate
1:30remaining
Setting Time Travel retention period on a table

You want to set the Time Travel retention period to 3 days on a Snowflake table named sales_data. Which SQL command correctly sets this retention period?

AALTER TABLE sales_data SET TIME_TRAVEL_RETENTION_DAYS = 3;
BALTER TABLE sales_data SET DATA_RETENTION_TIME_IN_DAYS = 3;
CALTER TABLE sales_data SET RETENTION_PERIOD = 3;
DALTER TABLE sales_data SET DATA_RETENTION_DAYS = 3;
Attempts:
2 left
💡 Hint

Look for the exact property name Snowflake uses for retention period in table alteration.

Architecture
advanced
1:30remaining
Impact of Time Travel retention on storage costs

How does increasing the Time Travel retention period affect Snowflake storage costs?

AStorage costs increase because Snowflake retains more historical data for the longer retention period.
BStorage costs decrease because older data is compressed more efficiently with longer retention.
CStorage costs remain the same regardless of Time Travel retention period.
DStorage costs increase only if data is deleted, otherwise no change.
Attempts:
2 left
💡 Hint

Think about how storing more historical data affects storage usage.

service_behavior
advanced
1:30remaining
Behavior of Time Travel after retention period expires

What happens if you try to query data using Time Travel after the retention period has expired?

ASnowflake returns null values for the requested historical data.
BSnowflake automatically extends the retention period and returns the data.
CSnowflake returns an error indicating the data is no longer available for Time Travel.
DSnowflake returns the latest data ignoring the Time Travel timestamp.
Attempts:
2 left
💡 Hint

Consider what happens when historical data is purged after retention.

security
expert
2:00remaining
Time Travel retention and data privacy compliance

Your company must comply with data privacy laws that require permanent deletion of sensitive data within 30 days. How does Snowflake's Time Travel retention period affect compliance?

AYou must manually purge Time Travel data after 30 days to comply with deletion requirements.
BTime Travel retention does not affect data deletion; once deleted, data is immediately removed from all storage.
CYou can keep the default retention period since Time Travel data is encrypted and inaccessible to users.
DYou must set the Time Travel retention period to 0 days to ensure data is permanently deleted immediately.
Attempts:
2 left
💡 Hint

Think about how Time Travel retains deleted data and its impact on permanent deletion.