ExamGecko
Question list
Search
Search

List of questions

Search

Question 2 - ARA-C01 discussion

Report
Export

A company has a table with that has corrupted data, named Dat

a. The company wants to recover the data as it was 5 minutes ago using cloning and Time Travel.

What command will accomplish this?

A.
CREATE CLONE TABLE Recover_Data FROM Data AT(OFFSET => -60*5);
Answers
A.
CREATE CLONE TABLE Recover_Data FROM Data AT(OFFSET => -60*5);
B.
CREATE CLONE Recover_Data FROM Data AT(OFFSET => -60*5);
Answers
B.
CREATE CLONE Recover_Data FROM Data AT(OFFSET => -60*5);
C.
CREATE TABLE Recover_Data CLONE Data AT(OFFSET => -60*5);
Answers
C.
CREATE TABLE Recover_Data CLONE Data AT(OFFSET => -60*5);
D.
CREATE TABLE Recover Data CLONE Data AT(TIME => -60*5);
Answers
D.
CREATE TABLE Recover Data CLONE Data AT(TIME => -60*5);
Suggested answer: C

Explanation:

This is the correct command to create a clone of the table Data as it was 5 minutes ago using cloning and Time Travel. Cloning is a feature that allows creating a copy of a database, schema, table, or view without duplicating the data or metadata. Time Travel is a feature that enables accessing historical data (i.e. data that has been changed or deleted) at any point within a defined period. To create a clone of a table at a point in time in the past, the syntax is:

CREATE TABLE <clone_name> CLONE <source_table> AT (OFFSET => <offset_in_seconds>);

The OFFSET parameter specifies the time difference in seconds from the present time. A negative value indicates a point in the past. For example, -60*5 means 5 minutes ago. Alternatively, the TIMESTAMP parameter can be used to specify an exact timestamp in the past.The clone will contain the data as it existed in the source table at the specified point in time12.

Snowflake Documentation: Cloning Objects

Snowflake Documentation: Cloning Objects at a Point in Time in the Past

asked 23/09/2024
John Murphy
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first