Masking policies are created at what level in Snowflake?
Table
Column
Schema
Database
Masking policies in Snowflake are created and applied at the column level. These policies are used to obfuscate sensitive data by masking the values in a specific column. Masking policies can enforce data privacy and protection measures by dynamically masking the data based on the role of the user querying the data.
References:
Snowflake Documentation: Dynamic Data Masking
Which command allows a user to unload data from a Snowflake database table into one or more files in a Snowflake or external stage?
GET
LIST
PUT
COPY INTO
The COPY INTO
Syntax Example:
COPY INTO 's3://mybucket/'
FROM my_table
FILE_FORMAT = (TYPE = CSV);
References:
Snowflake Documentation: COPY INTO
Snowflake Data Unloading Best Practices
=========================
When a transient table in Snowflake is dropped, what happens to the table?
The table is no longer available for use.
The table can be undropped using Fail-safe.
The table can be recovered for 1 day only and after that it is no longer available.
The table can be recovered only with the assistance of Snowflake Support
Transient tables in Snowflake are designed for temporary storage with no Fail-safe.
When a transient table is dropped:
The table is immediately removed and cannot be recovered using Time Travel or Fail-safe.
This behavior minimizes storage costs.
References:
Snowflake Documentation: Transient Tables
Snowflake Table Types Comparison
How many credits does a size 3X-Large virtual warehouse consume if it runs continuously for 2 hours?
32
64
128
256
In Snowflake, the consumption of credits by a virtual warehouse is determined by its size and the duration for which it runs. A size 3X-Large virtual warehouse consumes 128 credits if it runs continuously for 2 hours. This consumption rate is based on the principle that larger warehouses, capable of providing greater computational resources and throughput, consume more credits per hour of operation. The specific rate of consumption is defined by Snowflake’s pricing model and the scale of the virtual warehouse.References: Snowflake Pricing Documentation
Which table function will identify data that was loaded using COPY INTO