SnowPro Advanced: Data Engineer — Question 58
Database XYZ has the data_retention_time_in_days parameter set to 7 days and table XYZ.public.ABC has the data_retention_time_in_days set to 10 days.
A Developer accidentally dropped the database containing this single table 8 days ago and just discovered the mistake.
How can the table be recovered?
Answer options
- A. undrop database xyz;
- B. create table abc_restore as select * from xyz.public.abc at (offset => -60*60*24*8);
- C. create table abc_restore clone xyz.public.abc at (offset => -3600*24*8);
- D. Create a Snowflake Support case to restore the database and table from Fail-safe.
Correct answer: D
Explanation
The correct answer is D because the table can only be restored after the data retention period of the database has expired, which is 7 days in this case. The other options (A, B, and C) are not valid since the database and table data are no longer available for recovery after the specified retention times.