Practice Test #2 Flashcards
Snowflake’s micro-partitions directly enable which of the following features?
Zero-copy cloning
Data sharing
Time travel
Bulk/continuous data loading
zero copy cloning
time travel
True or false: There is a difference in storage cost allocation between structured and semi-structured data.
false
True or false: Data stored in time travel and fail safe incur storage cost.
true
True or false: Once a table created through zero-copy cloning is modified, the modified data will be stored as new blocks and incur storage cost.
true
True or false: Time travel is enabled for all Snowflake accounts
true
True or false: The clustering depth for a table is not an absolute or precise measure of whether the table is well-clustered.
true. query performance is the best indicator.
Clustering depth is useful for:
Monitoring the clustering “health” of a large table
Determining whether a large table would benefit from explicitly defining a clustering key
both
True or false: Maintaining clustering of a column that has very high cardinality is more expensive than maintaining clustering of a column that has much lower cardinality.
true
True or false: Manually sort rows on key table columns and re-insert them into the table could be expensive.
true
True or false: A table with a clustering key defined is considered to be clustered.
true
true or false: The compute resources used to perform clustering does not consume credits.
false
True or false: All tables should be clustered to improve query efficiency.
false
True or false: Generally, the more frequently a table changes, the more expensive it will be to keep it clustered.
true
True or false: Putting a higher cardinality column before a lower cardinality column will generally reduce the effectiveness of clustering on the latter column
true
What should you consider before defining a clustering key for a table?
Associated credit & storage costs
True or false: A table can only have one clustering key at a time.
true
True or false: Snowflake only reclusters a clustered table if it will benefit from the operation.
true
True or false: When a Clone of a Table is created, the original Table’s data is physically copied.
false
True or false: A Data Provider can create a share for a consumer account location in a different cloud region.
false, must be from same region
What are the two ways to create a share?
sql
web ui
True or false: Data providers can share any views and/or UDFs with data consumers.
False: Can share secure views & secure UDFs only.
True or false: Not all editions of Snowflake support data sharing.
True. VPS doesn’t support it.
Which of the following can a data consumer do? Select all that apply.
Create a clone from a shared DB / schema / table
Time travel for a shared DB / schema / table
Modify any of the information in the shared DB / schema / table
Edit the comments for a shared DB / schema / table
none
t/f All objects in a share must be from the same DB?
true
True or false: A Data provider may grant privilege to a table without granting the privilege to the schema that the table belongs to,.
False: Must grant it to any container objects before granting to objects inside the container
True or false: A data provider may add an account before granting usage on a DB.
False: It will result in an error
Which function is used to convert nested values into separate columns?
FLATTEN
True or false: The steps for loading semi-structured data into tables are identical to those for loading structured data into relational tables.
TRUE
What are the semi-structure data types that Snowflake supports? HINT - there are 5.
JSON, Avro, Parquet, XML, ORC
What is the maximum row size for VARIANT data type?
16mb
Using the Snowflake Web UI, one can:
Create & manage users
Create Virtual WH
Load data
Create databases
ALL
True or false: You can use the Query Profile to monitor queries that have not finished executing.
True
The Query Profile shows:
Query status
Query ID
Warehouse
User
All
True or false: The syntax for loading data is COPY INTO
False
True or false: The syntax for unloading data is COPY INTO
True
True or false: A warehouse must be running in order to perform DELETE.
True
True or false: A warehouse consumes credits even when it’s in suspended state.
False
How many credits/hour doe a Small-sized warehouse consume?
2
How do we consider while calculating the number of credits billed for a multi-cluster warehouse?
Number of servers per cluster
Number of times the warehouse scale up and/or down
Number of clusters that run within the period
Whether auto-resume and/or auto-suspend is on
Number of servers per cluster
Number of clusters that run within the period
True or false: Large warehouse always executes queries faster than a small warehouse.
False
True or false: Auto-suspend is enabled by default by Snowflake.
False
True or false: You may apply auto-suspend to an individual cluster in a warehouse.
False
True or false: The default warehouse for a user is used as the warehouse for all sessions initiated by the user.
True
Select all that apply: Which of the following are blocking operators?
MERGE
UPDATE
INSERT
COPY
merge
update
Scaling policy for a multi-cluster warehouse? Choose 2
Standard
Economy
Optimized
Maximized
standard
economy
Which of the following are types of caching use by Snowflake? Select all that apply?
Metadata caching
Query result caching
Warehouse Caching
all
True or false: Snowflake only works with cloud-based tools.
false
True or false: You can use GET command in the UI.
false
What objects can you support time travels on?
tables, schemas, databases
What are the different types of tables?
Persistent
Temporary
Transient
Permanent
Temporary
Transient
Permanent
What can you download through UI?
SnowSQL
ODBC Driver
JDBC Driver
ODBC Driver
JDBC Driver
How often does Snowflake release updates?
Once a week
Once every two weeks
Once month
There is no set schedule
once a week
How to see your clustering information? Select all apply
SYSTEM$CLUSTERING_INFORMATION
SYSTEM$CLUSTERING_KEYS
SYSTEM$CLUSTERING_DEPTH
SYSTEM$CLUSTERING_RATIO
SYSTEM$CLUSTERING_INFORMATION
SYSTEM$CLUSTERING_DEPTH
Account Usage includes dropped objects.
true
Information Schema includes dropped objects.
false
True or false: You can clone a share.
false
You can grant usage of an object to a user as long as you have the SYSADMIN role.
false
Which languages can be used to create user-defined functions?
SQL
JAVASCRIPT
JAVA
Python
sql
javascript
How long does query history stay in INFORMATION_SCHEMA?
1 year
How long does query history stay in the UI?
14 days
True or false: When a clone of a table is created, the original table’s data is physically copied?
false
True or false: SECURITYADMIN has the highest privileges among all roles.
false
True or false: When a Snowflake account is created, the account automatically comes with three out-of-the-box roles: ACCOUNTADMIN, SECURITYADMIN, and SYSADMIN.
false
True or false: Users own objects which allows the role to access those objects.
false
True or false: Two databases with the same cannot be under the same account.
true
What can be used to limit the number of credits consumed?
resource monitors
True or false: Cloud-based data sharing can be nearly instantaneous, i.e. independent of data size.
true
Can you access anything in the Global Services Layer?
no
Which term is used to describe Snowflake’s architecture?
multi cluster shared data wh
What is the full name of the highest Snowflake edition?
virtual private snowflake
Which of the following doesn’t belong to the top bar in the UI?
Shares
Tables
Credit Usage
History
tables
credit usage
True or false: Snowflake is great for OLAP workload.
true
True or false: A single Snowflake deployment can run in multiple regions as long as the right permissions are granted.
false
True or false: The Query Profiler view is only available for completed queries.
false
True or false: Auto-clustering feature is only available for certain Snowflake editions.
false
Which of the following does SF not support?
Upsert
Insert
Merge
upsert
Why would you scale a Virtual Warehouse OUT?
handle concurrency
Which of the following table types have no fail-safe feature enabled?
Temporary
Transient
Permanent
temporary
transient
Which of the following table types have time-travel feature enabled?
Temporary
Transient
Permanent
all
Which of the following are serverless functions?
Auto-clustering
Snowpipe
Materialized Views
UDFs
Auto-clustering
Snowpipe
Materialized Views
What is the default file format for data loading if you do not specify one?
csv
True or false: When active, a pipe required a dedicated warehouse to execute against it.
false
true or false: Snowpipe only works with internal stages.
false
True or false: MFA is only for SSO
false
True or false: All data in Snowflake is encrypted
true
True or false: End-to-end encryption feature is only available for some Snowflake editions.
false
How many shares can a data providers create?
unlimited
How many shares can a data consumer consume?
unlimited
True or false: Data sharing is only available for some Snowflake editions.
true
True or false: You cannot modify tables in shared databases in Snowflake.
true
Can customers still use Snowflake while the releases are rolling out?
Yes, because there’s no down time for customers
True or false: In Snowflake, only NOT NULL constraint is enforced.
true
Which layer is the result set cache located?
services layer
Does SF external staging require the customer to encrypt the data before transmission?
yes
Can you configure fail-safe?
no
True or false: A stored procedure may return a value whereas a UDF must return a value.
true