Related questions
Question 46 - ADA-C01 discussion
A Snowflake Administrator needs to persist all virtual warehouse configurations for auditing and backups. Given a table already exists with the following schema:
Table Name : VWH_META
Column 1 : SNAPSHOT_TIME TIMESTAMP_NTZ
Column 2 : CONFIG VARIANT
Which commands should be executed to persist the warehouse data at the time of execution in JSON format in the table VWH META?
A.
1. SHOW WAREHOUSES; 2. INSERT INTO VWH META SELECT CURRENT TIMESTAMP (), FROM TABLE (RESULT_SCAN (LAST_QUERY_ID(1) ) ) ;
B.
1. SHOW WAREHOUSES; 2. INSERT INTO VWH META SELECT CURRENT TIMESTAMP (), * FROM TABLE (RESULT_SCAN (LAST_QUERY_ID ())) ;
C.
1. SHOW WAREHOUSES; 2. INSERT INTO VWH_META SELECT CURRENT_TIMESTAMP (), OBJECT CONSTRUCT (*) FROM TABLE (RESULT_SCAN (LAST_QUERY_ID ()));
D.
1. SHOW WAREHOUSES; 2. INSERT INTO VWH META SELECT CURRENT TIMESTAMP (), * FROM TABLE (RESULT_SCAN (SELECT LAST QUERY ID(-1)));
Your answer:
0 comments
Sorted by
Leave a comment first