ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 31 - ADA-C01 discussion

Report
Export

An Administrator has a table named SALES_DATA which needs some edits, but the Administrator does not want to change the main table data. The Administrator decides to make a transient copy of this table and wants the transient table to have all the same permissions as the original table.

How can the Administrator create the transient table so it inherits the same permissions as the original table, and what considerations need to be made concerning the requirements? (Select TWO).

A.
Use the following SQL command: create transient table TRANSIENT_SALES_DATA as select * from SALES_DATA;
Answers
A.
Use the following SQL command: create transient table TRANSIENT_SALES_DATA as select * from SALES_DATA;
B.
Use the following SQL command: create transient table TRANSIENT SALES DATA as select * from SALES_DATA copy grants;
Answers
B.
Use the following SQL command: create transient table TRANSIENT SALES DATA as select * from SALES_DATA copy grants;
C.
Use the following SQL commands: create transient table TRANSIENT_SALES_DATA like SALES_DATA copy grants; insert into TRANSIENT_SALES_DATA select * from SALES_DATA;
Answers
C.
Use the following SQL commands: create transient table TRANSIENT_SALES_DATA like SALES_DATA copy grants; insert into TRANSIENT_SALES_DATA select * from SALES_DATA;
D.
Transient tables will persist until explicitly dropped and contribute to overall storage costs.
Answers
D.
Transient tables will persist until explicitly dropped and contribute to overall storage costs.
E.
Transient tables will be purged at the end of the user session and do not have any Fail-safe period.
Answers
E.
Transient tables will be purged at the end of the user session and do not have any Fail-safe period.
Suggested answer: B, D

Explanation:

According to the Snowflake documentation1, the COPY GRANTS option can be used to copy all privileges, except OWNERSHIP, from the existing table to the new transient table. This option also preserves any future grants defined for the object type in the schema. Option A is incorrect because it does not copy any grants from the original table. Option C is incorrect because it does not copy the data from the original table, only the structure and grants. Option E is incorrect because transient tables are not session-based and do not have a Fail-safe period, but they do have a Time Travel retention period2.

1: CREATE TABLE | Snowflake Documentation 2: Working with Temporary and Transient Tables | Snowflake Documentation

asked 23/09/2024
Alessandro Cristofori
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first