General Flashcards
How many databases can you have per share
one
What is the limit for the number of shares you can create
no hard limit
What is the limit for the number of accounts you can add to a share
no hard limit
What metrics does the data provider have when consumers access a data share
Consumer’s Snowflake Account Name
Consumer’s Snowflake Org name
Statistical data on consumption including date, and the number of queries ran
Any info consumer provides when submitting the data request
What database objects can be shared
Tables
External Tables
Secure Views
Secure Materialized views
secure udfs
What does each share consist of
the privileges that grant access to the database and the schema containing the objects to share
the privs that grant access to the specific objects
the consumer accounts with which the database and the objects are shared
T/F Data sharing is only supported between Snowflake Accounts
True
Who does the reader account belong to
The provider account that created it
T/F A consumer using a reader account can consume shares from anyone
False - only the provider account that created the reader account
What three product offerings are there for data sharing
Direct Share
Snowflake Marketplace
Data Exchange
What users can manage a Data Exchange
An account admin or a user with IMPORT PRIVILEGES granted
How do you grant import privileges to a rol
grant import privileges on data exhange ‘exchange_name’ to ‘role_name’
When a role is granted IMPORT PRIVILEGES, what does SHOW GRANTS show
USAGE
What rights or user do you have tobe do use the Private Sharing page in Snowsight
AccountAdmin or a role that has been granted the CREATE SHARE or IMPORT SHARE
What tasks can be performed on an inbound share
Create a database from the share
View all shares from the providers and the data sharing mechanism used
What tasks can be performed for outbound shares
View the share - includes the database, the consumer accounts, date when the share was created, and the objects that have been shared
Create a share/data listing
Edit a share/data listing
revoke access to the share for individual consumer accounts
To share a table, what access needs to be granted to the share
USAGE on Database and schema
SELECT on table
T/F If you share across different regions or cloud platforms, a database with one or more external tables will blocked
True
T/F Creating secure views on streams is not recommended
True, instead, allow consumers to create their own streams on the tables and secure views you share.
how do you add multiple accounts to a share
alter share share_name add accounts=xyz12345, xyz8908
For secure views based on tables in multiple databases, which additional privilege must be granted
REFERENCE_USAGE on every database that is not the database where the secured view is created
Which editions support data sharing
Standard, Enterprise, and Business Critical (not VPS)
Partner Connect is limited to which role
AcccountAdmin
T/F when sharing a view across regions or cloud platforms, and the view references multiple databases, each of these other databases must be replicated
True
T/F autosuspend applies to the whole cluster and not individual instances
True
Can you create temporary and non-temporary tables with the same name within the same schema?
Yes
Snowflake limits the size of query text (i.e. SQL statements) submitted through Snowflake clients to..?
1 MB per statement
T/F Snowpark is GA
False, it is preview only
What is the default size for warehouses created using CREATE WAREHOUSE?
X Small
What is the default size for warehouses created in the web interface?
X Large
What are the types of Snowflake’s product releases?
Full
Behavioral Change Release
Batch Release
What Actions or Triggers does a Resource Monitor Support
Notify & Suspend
Notify & Suspend Immediately
Notify
In Resource Monitoring, what is the difference between Notify and Notify and Suspend immediately
Notify and Suspend will wait for all statements being executed by the warehouse to be completed
Each Resource Monitor can have what number of actions
One Suspend Action
One Suspend Immediate Action
Up to Five Notify Actions
Roles need to be granted what privileges on a specific resource monitor in order to view or modify the resource
MONITOR
MODIFY
STATEMENT_TIMEOUT_IN_SECONDS can be set at what levels
Account
User
Session
Warehouse
What Languages are supported for created UDFs
Java
JavaScript
Python
SQL
Snowflake deploys new releases at what frequency
weekly
What method does Snowflake use to limit the number of micro-partitions accessed during a query?
Pruning
The “load metadata” (which maintains which files have already been loaded) for a table expires after how many days?
64
Which Account or user type can use the Snowflake web interface or SQL to view the credits billed to your Snowflake account within a specified date range?
ACCOUNTADMIN
Users with a role granted the MONITOR USAGE global privilege
What are the Database Privileges
MODIFY
MONITOR
USAGE
CREATE SCHEMA
IMPORTED PRIVILEGES
OWNERSHIP
ALL
Describe the insertFiles endpoint
informs snowflake the files to be ingested into a table. A successful response means that Snowflake has recorded the list, it does not necessarily mean the files have been ingested
what endpoint reports files recently submitted via insertFiles and ingested into a table
insertReport
which endpoint fetches a report about ingested files whose contents have been added to a table
loadHistoryScan
T/F If you’re in the middle of running queries when you refresh, they will resume running when the refresh is completed
True
What are the system defined roles
ORGADMIN
ACCOUNTADMIN
SECURITYADMIN
USERADMIN
SYSADMIN
PUBLIC
T/F The PUBLIC role cannot own securable objects
False, they can but the objects are then available to every other user and role in the account
What is the purpose of USERADMIN
Dedicated to user and role management only
What privileges does USERADMIN have
CREATE USER
CREATE ROLE
What is the purpose of SYSADMIN
To create warehouses and databases
USERADMIN is granted to what role via the system role hierarchy
SECURITYADMIN
Which role is granted the MANAGE GRANTS security privilege
SECURITYADMIN
What is the purpose of SECURITYADMIN
Can manage object grants globally as well as create, monitor, and manage users and roles
A session can have how many primary and secondary roles
one active primary role
any number of secondary roles
When an object is created, its ownership is set to which role
the currently active primary role
T/F Snowflake Client repository provider SnowSQL Installer requires no authentication for downloading and this version of the SnowSQL installer enables auto-upgrade for patches?
True
All commands in SnowSQL start with what?
an exclamation point
What are the two scaling modes
Maximized
Auto Scaling
What is it called when the value of the min clusters is equal to the value of the max clusters
Maximized
What are the scaling policies
Standard
Economy
What file formats are supported for loading
Delimited files
JSON
avro
ORC
Parquet
XML is only in preview
Creating a stage that uses a storage integration requires what privileges
CREATE STAGE for the schema
USAGE on the storage integration
The role with ownership on the stage must have what privilege on the storage integration
USAGE
T/F To load or unload data from or to a stage that uses an integration, it is not necessary to have the USAGE privilege on the storage integration
True, but you must have the USAGE privilege on the stage
What are the data load REST endpoints
insertFiles
insertReport
loadHistoryScan
What is the purpose of the Search Optimization Service
it can significantly improve the performance of certain types of lookups and analytical queries that use an extensive set of predicates for filtering
Of these three, which have storage and compute costs
Search Optimization Service
Materialized View
Clustering the table
Search Optimization Service
Materialized View
To add, configure, or remove search optimization for a table, you must have what privileges
OWNERSHIP on the table
ADD SEARCH OPTIMIZATION on the schema that contains the table
How might you identify table that benefit from search optimization
Improve the performance of a query when the table is frequently queried on columns other than the primary cluster key.
What type of privilege is SELECT, INSERT, UPDATE, DELETE, TRUNCATE
Table Privileges
What type of privilege is MONITOR USAGE, CREATE SHARE, CREATE ACCOUNT
Global privileges
Currently, users can choose between what two behaviors in terms of how Snowflake clients or drivers respond during an OCSP event.
Fail-Open
Fail-Close
T/F Snowflake supports using unencrypted private keys with SnowSQL
True
Snowflake provides what open specification to help facilitate the automated management of user identities and groups?
SCIM
T/F there is no guarantee that files are loaded in the same order they are staged
True
T/F When using Bulk Load, Loads are always performed in a single transaction
True
T/F Search optimization supports external tables
False
T/F Search optimization does no t support tables and views protected by row access policies
True
T/F Search optimization does not support column concatenation
True
T/F Search optimization supports analytical expressions
False
T/F Search optimization supports materialized view
False
When using the REST endpoints for Snowpipe, what authentication is required
JSON Web Token (JWT)
Support for AWS Private Link and Azure Private Link requires what edition or higher
Business Critical
How to retrieve a JSON representation of the Pipe Status?
SYSTEM$PIPE_STATUS
Snowflake tracks the resource consumption of loads for all pipes in an account, with what granularity?
per-second/per-core
T/F In standard mode, each successive warehouse waits to start 20 seconds after the prior one
True
Max number of warehouses that can be defined in the multi cluster warehouse are
10
T/F Bulk loaded relies on user-provided virtual warehouses
True
T/F Using the warehouse page in the web ui, you can transfer the ownership of a warehouse to a different role
True
T/F Search optimization aims to significantly improve the performance of selective point lookup queries on tables
True
Which Scaling policy follow the below consideration while doing warehouse shutdown: After 2 to 3 consecutive successful checks (performed at 1 minute intervals), which determine whether the load on the least-loaded warehouse could be redistributed to the other warehouses without spinning up the warehouse again
Standard
Pipes only maintain the load history metadata for 14 days. What will happen if the same files are modified and staged again within 14 days?
Snowpipe ignores modified files that are staged again
The snowflake web interface wizard has a loading limit of what when loading flat files to a table
50 MB
T/F If you log out of Snowflake, any active queries continue running
False
T/F In the snowflake web ui, under databases, you can unload data
False
Valid execution states for a pip are
Paused, stopped_missing_pipe, running
T/F Table stage type is designed to store files that are staged and managed by one or more users but only loaded into a single table.
True
The Snowflake SCIM Api can address what use cases
Manage Users
Manage Roles
Auditing
Internal Stages: What are the different stage types
User, Table, Named
What is a User Stage
Allocated to each user for storing files. Managed by a single user, cannot be altered or dropped
What is a Table Stage
A table stage is available for each table created in Snowflake. It stores files that are staged and managed by one or more users but only loaded into a single table. Cannot be altered or dropped
T/F a table stage has no grantable privileges of its own
True, it is an implicit stage tied to the table itself. To stage, list, or query files on the stage, you must be the table owner.
What is a named stage
A named internal stage is a database object created in a schema. Can store files that are staged and managed by one or more users and loaded into one or more tables.
Automated snowpipe cross cloud support is only available to accounts hosted on what cloud platform
AWS
T/F UDF will contribute to your account level usage
False
How big is the data in micropartitions, uncompressed?
50 -500 MB
T/F Micropartitions are immutable
True
What metadata is stored for each micropartition
Range of values of each column
Count of distinct values for each column
Additional Metadata Used for optimization
If a warehouse is requested to be suspended, what happens to active queries
They must be completed before the warehouse will be suspended.
T/F The virtual warehouse’s cache is dropped when the warehouse is suspended
True
A cost is associated if you are
* Transfering Data In
* Transfering Data Out
* Both
Transfering Data Out
What are the serverless compute costs
Snowpipe
Automatic Clustering
Database Replication
Materialized View
Search Optimization
What are the three type of internal stages
Named
Table
User
T/F a table stage can be dropped
False, it is there for the life of the table
T/F a table stage can load to multiple tables
false, only the table it is attached to
How do you reference an internal stage
@internal_stage_name
T/F a materialized view on an external table does not automatically refresh
True
The load metadata for a table expires after how many days?
64
You are required to store JSON data in a Snowflake table. Which data type will you use?
Variant
T/F An external table can only be created against an external stage
True
The clone comand supports what objects
Databases
Schemas
Tables
Streams
Stages
File Format
Sequences
Tasks
What can’t be cloned
External tables
Internal Named Stages
T/F Min Max is not stored in the metadata cache if it is a character column
True
Automatic Clustering Service is responsible for what activity in Snowflake?
Redistributing data in micro partitions according to the cluster key
An external function’s code executes in which location?
Outside of Snowflake
True or False: Snowflake supports only Scalar external functions?
True. Snowflake supports only scalar external functions, i.e., the function should return only one value.
True or False: Snowflake Scripting be used to create stored procedures.
True
True or False: Snowpark can push down your user-defined functions to the server, where the code then operates on the data.
True
T/F Snowflake SQL UDFs can return either Scalar or Tabular results?
True
T/F Snowflake patch releases are applied to all accounts at the same time.
True The patch releases are applied to all accounts at the same time. The staged released process is only used for new software releases.
T/F TO_NUMBER AND TO_NUMERIC are both valid conversions
True
T/F Yaml is a supported file format
False
T/F Shares can be cloned
False
T/F You can concatenate columns in the copy command
True
In the Snowflake staged release process for new releases, which account types are applied updates the LAST?
Enterprise and Higher Accounts
T/F Transpose can be used while loading data through the COPY command?
False
T/F Under the Download section in Snowflake Web UI, Python Components are available for download
True
T/F When cloning data you can use CREATE_COPY to force a copy of the data
False, no such command
When a database or a schema is cloned, snowpipes hooked up to what stages are cloned
Any that are not hooked up to an internal stage
How many databases per share
one
T/F In order to share data as a producer and consume data as a consumer you must have two separate Snowflake accounts, one for sharing data and one for consuming shared data.
False
T/F When a virtual warehouse is resized to a smaller size, the cache associated with the servers is dropped?
True
T/F In a Worksheet, you can select the Schema along with the Database, warehouse, and role
True
T/F If a virtual warehouse is suspended it is likely that the results stored in its cache will be cleared.
True
T/F SCALING_POLICY is a valid option when creating a new multicluster virtual warehouse
True
T/F Shares can be cloned
False
T/F Sequences can be cloned
False
T/F An ACCOUNTADMIN can see the results of any query executed by any user in a Snowflake system?
False, even if you had the rights to see all the queries, the page only displays info, not the results
T/F When setting up replication for cross cloud or cross region data sharing, the data provider must replicate data once for each data consumer.
False, only needs to be replicated once
What is not available for replication
Temporary tables, stages, tasks, pipes, and external tables are not currently supported for replication.
What can be cloned
Databases, Tables, Schemas, Stages, File Formats, Tasks, Sequences, and Streams
What can be shared
Tables, External tables, Secure views, Secure materialized views, Secure UDFs.