Snowflake
ADA-C01 · Question #57
A user accidentally truncated the data from a frequently-modified table. The Administrator has reviewed the query history and found the truncate statement which was run on 2021-12-12 15:00 with…
The correct answer is D. CREATE TABLE RESTORE_TABLE CLONE CURRENT_TABLE before (statement =>. See the full explanation below for the reasoning.
Question
A user accidentally truncated the data from a frequently-modified table. The Administrator has reviewed the query history and found the truncate statement which was run on 2021-12-12 15:00 with query ID 8e5d0ca9-005e-44e6-b858-a8f5b37c5726. Which of the following statements would allow the Administrator to create a copy of the table as it was exactly before the truncated statement was executed, so it can be checked for integrity before being inserted into the main table?
Options
- ACREATE TABLE RESTORE_TABLE CLONE CURRENT_TABLE BEFORE (timestamp => '2021-
- BSELECT * FROM CURRENT_TABLE before (statement => '8e5d0ca9-005e-44e6-b858-
- CINSERT INTO CURRENT_TABLE SELECT * FROM CURRENT_TABLE before (statement =>
- DCREATE TABLE RESTORE_TABLE CLONE CURRENT_TABLE before (statement =>
How the community answered
(35 responses)- A14% (5)
- B3% (1)
- C6% (2)
- D77% (27)
Community Discussion
No community discussion yet for this question.