Time Travel Flashcards

1
Q

What tasks can be done via Time Travel

A

Restoring data related objects (tables, schemas, and databases) that might have been deleted accidentally or on purpose
Duplicating and backing up data from key points in the past
Querying data in the past that has since been updated or deleted
Analyzing data usage/manipulation over specific periods of time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you query data using time travel

A

select from table <table> at | before

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you create a new object using time travel

A

create table …. clone …. at | before
create schema …. clone … at | before
create database … clone … at |before

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you bring back a deleted object using time travel

A

undrop database …
undrop schema …
undrop table …

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the standard retention period automatically enabled on all accounts

A

1 day (24 hours)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

T/F for the standard and enterprise accounts, the retention period can be set to 0

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For permanent databases, schemas, and tables, what is the retention period that can be set

A

0 - 90 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When the retention period ends for an object, the historical data is moved in to…

A

Snowflake Fail Safe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Once objects are moved into fail safe, what options are no longer available

A

Historical data is no longer available for querying
Past objects can no longer be cloned
Past objects that were cloned can no longer be restored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What snowflake editions allow for time travel beyond 1 day

A

Enterprise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following ALTER commands will impact a column’s availability in Time Travel?
A. ALTER TABLE … SET DATA TYPE …
B. ALTER TABLE … RENAME COLUMN …
C. ALTER TABLE … SET NOT NULL …
D. ALTER TABLE … DROP COLUMN …

A

A.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the param to set the time travel number of days

A

DATA_RETENTION_TIME_IN_DAYS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How is the retention days for an object determined when MIN_DATA_RETENTION_TIME_IN_DAYS is set

A

MAX(DATA_RETENTION_TIME_IN_DAYS, MIN_DATA_RETENTION_TIME_IN_DAYS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

T/F Time Travel can be disabled on the account level

A

False - It can only be set to 0 Days retention. This can be overridden at the object level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

T/F when a database is dropped, the retention periods for the schema and the tables are not honored if they are different

A

True. If you want them to be honored, they have to be dropped before the entire database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the purpose of fail-safe

A

ensures historical data is protected in the event of a system failure or other event. It provides a 7 day period during which historical data can be recoverable by Snowflake.

17
Q

When does the fail safe period begin

A

immediately after the time travel period ends

18
Q

T/F Fail Safe is a means for accessing historical data after the Time Travel retention period has ended.

A

False. It is only used by Snowflake to recover data that may have been lost or damaged due to extreme operational failures