0
0
Snowflakecloud~5 mins

Undrop for recovering dropped objects in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the UNDROP command do in Snowflake?
The UNDROP command recovers a dropped object, such as a table or schema, restoring it to its state before deletion.
Click to reveal answer
beginner
Which types of objects can you recover using UNDROP in Snowflake?
You can recover tables, schemas, and databases that were dropped, as long as they are within the retention period.
Click to reveal answer
intermediate
What is the retention period for dropped objects in Snowflake before they are permanently deleted?
Dropped objects are retained for a default period of 1 day (24 hours), but this can be extended up to 90 days depending on account settings.
Click to reveal answer
intermediate
How do you find the name of a dropped object to use with UNDROP?
You can use the SHOW <object_type> HISTORY command (where <object_type> is TABLES, SCHEMAS, or DATABASES) to see recently dropped objects and their names.
Click to reveal answer
beginner
What happens if you try to UNDROP an object that no longer exists in the dropped objects list?
The UNDROP command will fail because the object is permanently deleted and cannot be recovered.
Click to reveal answer
What is the main purpose of the UNDROP command in Snowflake?
ATo recover a dropped object
BTo permanently delete an object
CTo rename an object
DTo create a new object
Which of the following helps you find recently dropped objects in Snowflake?
AINFORMATION_SCHEMA.SCHEMATA
BINFORMATION_SCHEMA.TABLES
CINFORMATION_SCHEMA.COLUMNS
DSHOW TABLES HISTORY
How long is the default retention period for dropped objects in Snowflake?
A90 days
B7 days
C24 hours
D30 days
What happens if you try to UNDROP an object after the retention period has expired?
AThe command fails because the object is permanently deleted
BThe object is recovered anyway
CThe object is renamed
DThe retention period is extended automatically
Which of these objects can you NOT recover with UNDROP?
AA dropped table
BA dropped file in external storage
CA dropped database
DA dropped schema
Explain how to recover a dropped table in Snowflake using the UNDROP command.
Think about how to find the dropped object and the command syntax.
You got /3 concepts.
    Describe the retention period concept for dropped objects in Snowflake and its importance.
    Consider why Snowflake keeps dropped objects temporarily.
    You got /2 concepts.