Misc Flashcards
How to validate a COPY INTO command before running it?
USE parameter VALIDATION_MODE = RETURN__ROWS | RETURN_ERRORS | RETURN_ALL_ERRORS
Recommended size for Bulk Loading?
10-100mb Compressed
Recommended file size for Snowpipe?
10-100mb Compressed
Cast column employeename to VARCHAR
SELECT employeename::VARCHAR (real casting) SELECT TO_VARCHAR(employeename)
Name the valid context functions?
CURRENT_WORKSHEET()
CURRENT_REGION()
CURRENT_SESSION()
CURRENT_CLIENT()
What is the default compression algorithm Snowflake applies while unloading data?
GZIP
Recommended file size for Parquet loading?
1GB
What transform statements does COPY INTO not support?
FLATTEN
JOIN
GROUP BY
Default Time Travel Retention for Enterprise
1 Day
Change current warehouse of a session?
USE WAREHOUSE
Functions performed by Cloud Services layer?
- Metadata Management
- User Authentication
- Metadata Storage
- Data Security
What type of tech business model is Snowflake?
Cloud Data Platform as a service (SaaS)
What features make micro-partitions immutable within Snowflake?
- Snowflake creates new micro-partitions every time there is a change in data.
- Micro-partitions are editable
Types of stages that do NOT support File Formats
- Internal Table Stage
- Internal User Stage
Where do the compute resources come from for Snowpipe?
Snowflake (managed service)
If Federated Authentication is enabled in your account can you (admins) still maintain user ids and passwords?
Yes, but Snowflake does not recommend this. Instead Snowflake recommends leaving these tasks to your Identity Provider (IdP)
SnowPipe AUTO_INGEST only works with External Stages (True/False)
True, the SnowPipe REST API does work with both Internal/External stages however.
Data Structures Types/Files supported by VARIANT in Snowflake?
- JSON
- Parquet
- XML
- ORC
- Avro
DDL (with examples)
Data Definition Language
Examples:
- CREATE TABLE
- ALTER TABLE
- DROP
- TRUNCATE
Do you need to grant usage on newly created objects within a Share for new objects to be available to Consumers?
Yes
What level of privilege is required to view a Resource Monitor?
MODIFY and or MONITOR
Can tasks be triggered manually?
No