What is the behaviour of the COPY INTO
command when the ON_ERROR option is set to CONTINUE?
Load the file even when errors are found.
Cloning a table copies the underlying data effectively doubling storage costs. True or false?
False. A clone is merely a reference to the initial data micro-partitions (until the data changes).
Every securable object is owned by a single role. True or false?
True. At least a single role.
External tables can be cloned. True or false?External tables can be cloned. True or false?
False. External tables exist outside of Snowflake and so can not be cloned.
What attributes make Snowflake a SaaS solution?
No hardware management. Pay for what you use pricing plan.
Snowflake uses the following access control schemes: role based access control (RBAC) and _________.
Discretionary Acces Control (DAC).
Which type of view bypasses some query optimizations to improve data security?
Secure Views. Secure views are data reduction views for security purposes. Users can not access the underlyinmg tables. Snowflake has made the decision to not include Secure views in query optimisation to ensure that queries do not expose the restricted data.
The COPY INTO
statement does NOT require a virtual warehouse to run. True or false?
False. Data importation into Snowflake requires a warehouse.
Natural clustering is determined by the order in which data is loaded. True or false?
True. Table data is partitioned and stored in the order it was loaded.
What happens to historical data when the retention period for an object ends?
A company’s security audit requires generating a report listing all Snowflake logins (e.g., date and user) within the last 90 days.
SELECT EVENT_TIMESTAMP, USER_NAME FROM ACCOUNT_USAGE.LOGIN_HISTORY;
Which view in SNOWFLAKE.ACCOUNT_USAGE shows which IP address a user connected to Snowflake?
Which Snowflake feature can be used to find sensitive data in a table or column?
Which functions can be used to identify the data type stored in a VARIANT column?
IS_DATE_VALUE, IS_NULL_VALUE.
How are privileges inherited in a role hierarchy in Snowflake?
Parents inherit privileges from their children. Confusing but Snowflake wording for this is Privileges are inherited by any roles above 'that' role in the hierarchy.
What is the recommended Snowflake data type to store semi-structured data like JSON?
Which of the following Snowflake features provide continuous data protection automatically?
Time travel and Fail-Safe.
What is the maximum row size in Snowflake?
A Snowflake user wants to optimize performance for a query that queries only a small number of rows in a table. The rows require significant processing. The data in the table does not change frequently.
What should the user do?
Creaet a materialised view. This is given away by the keywords, significant processing, small number of rows and does not change frequently. Materialised views are store the result of complex queries, so the storage cost here would be small. Also materialised views use serverless compute for data refresh. The fact that it doesn't change often means this cost is reduced.
What is the advantage of using a reader account?
It can be used by a client that doen't have a Snowflake Account.
Which stages are created by default, with no need to use the CREATE STAGE command?
Table Stages and User Stages.
Which columns are available in the output of a Snowflake directory table?
RELATIVE_PATH, LAST_MODIFIED.
What type of function returns one value for each invocation?
Which Snowflake object will consume credits during automatic background maintenance?
Materialised View consume serverless compute to constantly refresh the data based onchanges in the source table.
A Snowflake user needs to import a JSON file larger than 16 MB.
What file format option could be used?
strip_outer_array=True. allows snowflake to process each element in the array as a separate row.
Which Snowflake table objects can be shared with other accounts?
Permanent tables and External tables. Transient or temporary tables can not be shared.
Which Snowflake table objects can be shared with other accounts?
Stream. A stream in Snowflake is a lightweight object that tracks row-level changes (inserts, updates, and deletes) made to a table, a view, or another supported object. It's essentially a Change Data Capture (CDC) mechanism that records the metadata of these changes.
What is the recommended approach for unloading data to a cloud storage location from Snowflake?
Unload the data directly to the cloud storage location.
Which file format will keep floating-point numbers from being truncated when data is unloaded?
Parquet. Parquet have specific data type for floating point numbers. Other file types store floats as text.
What type of columns does Snowflake recommend to be used as clustering keys?
Columns that are used in JOINS and selective filters.
What does the client redirect feature in Snowflake enable?
A redirect of client connection to Snowflake accounts in different regions for business continuity.
If a Small Warehouse is made up of 2 servers/cluster, how many servers/cluster make up a Medium Warehouse?
4. Warehouse size doubles with every increase in size name.
What authentication method does the Kafka connector use within Snowflake?
Key Pair. Key pair is an authentication method. Connections and service processes do not use normal auth methods. They also do not require anything authorisation protocol like OAuth.
Query results are stored in the Result Cache for how long after they are last accessed, assuming no data changes have occurred?
24 Hours. Results cache is stored for 24 hours after last accessing.
What feature of Snowflake Continuous Data Protection can be used for maintenance of historical data?
What information is included in the display in the Query Profile?
Graphical representation of the query plan. Details and statistics for the overall query.
What are the key characteristics of ACСOUNT_USAGE views?
Records dropped objects.
Data Latency of 45 mins to 3 hours.
Which Snowflake object can be created to be temporary?
Stages, tables and views are temporary objects that are session based.
Why would a Snowflake user load JSON data into a VARIANT column instead of a string column?
A VARIANT column can be used to create a data hierarchy, whereas string columns can not. Also you can use dot notation to extract information from VARIANT columns.
The first user assigned to a new account, ACCOUNTADMIN, should create at least one additional user with which administrative privilege?
USERADMIN. Snowflake recommends creating a USERADMIN to manage user, role and privileges.
Which command can be used to delete staged files from a Snowflake stage when the files are no longer needed?
REMOVE. REMOVE is used on staged files, not DROP.
What happens to the objects in a reader account when the DROP MANAGED ACCOUNT command is executed?
The objects are dropped immediately.
When should you consider disabling auto-suspend for a Virtual Warehouse?
When compute must be available with no lag time. When managing a steady workload.
Which common query problems can the Query Profile help a user identify and troubleshoot?
When there are exploding JOINS. Where there is a UNION with ALL.
Which command is used to take away staged files from a Snowflake stage after a successful data ingestion?
How does Snowflake enable OAuth?
By configuring a security integration.
What commands can be used to see what files are stored in a stage?
A Snowflake user wants to temporarily bypass a network policy by configuring the user object property MINS_TO_BYPASS_NETWORK_POLICY.
What should they do?
Contact Snowflake Support.
Which clients does Snowflake support Multi-Factor Authentication (MFA) token caching for?
Python and ODBC connectors.
What is the purpose of a Query Profile?
To profile a particular query to understand the mechanics of the query, it's behaviour and performance.
What strategies can be used to optimize the performance of a virtual warehouse?
Increase the warehouse size. Reduce queuing.
What is the Snowflake multi-clustering feature for virtual warehouses used for?
To improve concurrency for users and queries.
Which table type has a Fail-safe period of 7 days?
What are the available Snowflake scaling modes for configuring multi-cluster virtual warehouses?
What is the MOST performant file format for loading data in Snowflake?
hat columns are returned when performing a FLATTEN command on semi-structured data?
KEY and VALUE. This is because Flatten just parses out the first level of the semi-structured data (JSON), which is essentailly a dictionary.
Who can create network policies within Snowflake?
SECURITYADMIN or higher. Anyone with CREATE NETWORK POLICY privilege.
Which loop type iterates until a condition is true?
REPEAT iterates until a condition = TRUE.
Which system-defined Snowflake role has permission to rename an account and specify whether the original URL can be used to access the renamed account?
OORGADMIN is the only account with privileges to administrate Snowflake accoutns within an org. The URL part of this question is what informs us that this is a question about Snowflake accounts, not user accounts.
Which Snowflake features can be enabled by calling the SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER function by a user with the ORGADMIN role?
Account level database replication. Client redirect.
What triggers the automated maintenance of a table's clustering key after it has been defined?
Snowflake determination that the table will benefit from maintennance.
During periods of warehouse contention, which parameter controls the maximum length of time a warehouse will hold a query for processing?
STATEMENT_QUEUED_TIMEOUT_IN_SECONDS.
What is the Snowflake recommended Parquet file size when querying from external tables to optimize the number of parallel scanning operations?
How should a virtual warehouse be configured if a user wants to ensure that additional multi-clusters are resumed with the shortest delay possible?
Use the standard warehouse scaaling policy.
Which of the following terms best describes Snowflake's database architecture?
Multi-cluster shared data.
What is the default access of a securable object until other access is granted?
What is the purpose of collecting statistics on data in Snowflake?
To enable efficient pruning based on query filters.
What function can be used with the recursive argument to return a list of distinct key names in all nested elements in an object?
What issues can be identified and troubleshooted using the Query Profile?
Queries too large to fit into memory. Cartesian products.
Snowflake users can create a resource monitor at which levels?
Account leve. Virtual Warehouse level.
Which Snowflake governance feature allows users to assign metadata labels to improve data governance and database access control?
Which command is used to generate a zero-copy "snapshot" of any table, schema, or database?
Which stream type can be used for tracking the records in external tables?
What actions can be performed by a consumer account on a shared database?
Selecting the shared data. Joining the data to another table.
A user wants to unload data from a relational table into a CSV file in an external stage. The table must be named exactly as specified by the user.
Which file format option MUST be used to do this?
Single. SINGLE+TRUE is a file format option that ensures the data is written to a single file. file_extension paramter allows for selection of the output file type, but by itself, does not guarantee that the file will be a single file. The trick in the answer here is that the file must be named exactly. If a secondary file is generated, it will have a different name.
What role should be used when creating a new user?
Snowflake will return an error when a user attempts to share which object?
Standard Views. Standard views are not designed for sharing as they are just a reference to a query that generates a result.
What value provides information about disk usage for operations where intermediate results do not fit in memory in a Query Profile?
Spilling. Spilling is when the warehouse runs out of RAM and spills over to local disk. When local disk is exceeded, spillage can go to remote disk. Both of these spillages impact query performance.
Which common query issues can be identified by the Query Profile?
JOIN explosion and inefficient query pruning.
A virtual warehouse initially suffers from poor performance as a result of queries from multiple concurrent processes that are queuing. Over time, the problem resolved.
What action can be taken to prevent this from happening again?
Change the mutli-cluster settings to add additonal clusters. The key here is the words 'concurrent' and queuing. Problems with queuing can be resolved by multi-cluster warehouses.
Which Snowflake object does not consume any storage costs?
Secure views are logical representaton of the underlying data and don't incur any addition storage costs.
Which pages are included in the Monitoring area of Snowsight?
Copy history, Query history.
What action can a user take to address query concurrency issues?
Add additional clusters to the warehouse.
What aspect of an executed query is represented by the remote disk I/O statistic of the Query Profile in Snowflake?
Time spent reading and writing data from and to remote storage when the data being accessed does not fit into either the virtual warehouse memory or the local disk
Which Snowflake feature records changes made to a table so actions can be taken using that change data capture?
Stream. A stream is table data CDC.
What is the MINIMUM role required to set the value for the parameter ENABLE_ACCOUNT_DATABASE_REPLICATION?
How can a 5 GB table be downloaded into a single file MOST efficiently?
How does Snowflake store a table's underlying data?
Columnar file formation, Micro-partitions.
Which table function is used to perform additional processing on the results of a previously-run query?
RESULT_SCAN. Often run with RESULT_SCAN().
Snowflake provides two mechanisms to reduce data storage costs for short-lived tables. These mechanisms are
Transient and Temporary tables.
A Snowflake query took 40 minutes to run. The results indicate that ‘Bytes spilled to local storage’ was a large number.
What is the issue and how can it be resolved?
Increase the size of the warehouse.
What does an integration between Snowflake and Microsoft Private Link or AWS PrivateLink support?
A secure, direct connection to Snowflake that does not use the internet.
A developer is granted ownership of a table that has a masking policy. The developer’s role is not able to see the masked data.
Will the developer be able to modify the table to read the masked data?
No, because ownership of a table does not include the ability to change masking policies
Which function should be used to authorize users to access rows in a base table when using secure views with Secure Data Sharing?
CURRENT_ACCOUNT() function should be used to authorize users to access rows in a base table when using secure views with Secure Data Sharing.
What is the purpose of using the OBJECT_CONSTRUCT function with the COPY INTO command?
Convert the rows in a relational table to a single VARIANT column and then unload the rows into a file.
Convert the rows in a relational table to a single VARIANT column and then unload the rows into a file.
Use a multi-cluster warehouse.
Why is a federated environment used for user authentication in Snowflake?
To separate user atuhtentication from user access.
If a virtual warehouse runs for 61 seconds, shuts down, and then restarts and runs for 30 seconds, for how many seconds is it billed?
121. Billed by the second after the first minute.
Which statistic displayed in a Query Profile is specific to external functions?
A A role is created and owns 2 tables. This role is then dropped. Who will now own the two tables?
The role that dropped the 'owner' role.
By default, which Snowflake role is required to create a share?
What transformations are supported in a CREATE PIPE ... AS COPY `¦ FROM (`¦) statement?
Columns can be omitted. Columns can be reordered.
Which REST API can be used with unstructured data?
How does Snowflake Fail-safe protect data in a permanent table?
Fail-safe makes data available for 7 days, recoverable only by Snowflake Support.
What does a table with a clustering depth of 1 mean in Snowflake?
Tha table has no overlapping micro-partitions. Clustering depth of 1 indicates optimal clustering meaning each micro-partition is well organised without overlap.
How does a Snowflake user extract the URL of a directory table on an external stage for further transformation?
Use the GET_STAGE_LOCATION function.
In which layer of its architecture does Snowflake store its metadata statistics?
What is the MINIMUM permission needed to access a file URL from an external stage?
What privilege does a user need in order to receive or request data from the Snowflake Marketplace?
Which types of subqueries does Snowflake support?
Uncorrelated scalar subqueries in any place that a value expression can be used.
EXISTS, ANY/ALL, and IN subqueries in WHERE clauses: these subqueries can be correlated or uncorrellated.
How are network policies defined in Snowflake?
They are a set of rules that control access to Snowflake accounts by specifying the IP addresses or ranges of IP addresses that are allowed to connect to Snowflake.
What parameter controls if the Virtual Warehouse starts immediately after the CREATE WAREHOUSE statement?
INITIALLY_SUSPENDED=TRUE;
Which privilege grants the ability to set a column-level security masking policy on a table or view column?
How can a data provider share their Snowflake data?
Which ACCOUNT_USAGE view will identify long-running queries?
What is the maximum total Continuous Data Protection (CDP) charges incurred for a temporary table?
Temporary tables are only held in Fail Safe for 24 hours.
How do Snowflake data providers share data that resides in different databases?
What setting in Snowsight determines the databases, tables, and other objects that can be seen and the actions that can be performed on them?
Roles, RBAC. The reason that this answer is not row or column based data masking/security is that the requirements are too broad to be able to be satisfied by Row or Column level data security in isolation.
Which objects together comprise a namespace in Snowflake?
Which feature is only available in the Enterprise or higher editions of Snowflake?
Which property needs to be added to the ALTER WAREHOUSE command to verify the additional compute resources for a virtual warehouse have been fully provisioned?
WAIT_FOR_COMPLETION. This property ensures that all resources are completely deployed before processing occurs in the warehouse.
Which Snowflake URL type allows users or applications to download or access files directly from Snowflake stage without authentication?
How does Snowflake handle the data retention period for a table if a stream has not been consumed?
The data retention period is temporarily extended to the stream’s offset.
A Snowflake user needs to share unstructured data from an internal stage to a reporting tool that does not have Snowflake access.
Which file function should be used?
Which file format option should be used when unloading data into a stage to create a CSV or a JSON file?
Which view will show the MOST recent information about table-level storage utilization?
The TABLE_STORAGE_METRICS view in the INFORMATION_SCHEMA. INFORMATION_SCHEMA does not have any lag.
What versions of Snowflake should be used to manage compliance with Personal Identifiable Information (PII) requirements?
Virtual Private Snowflake, Business Critical Edition.
Snowflake best practice recommends that which role be used to enforce a network policy on a Snowflake account?
Which command should be used to load data from a file, located in an external stage, into a table in Snowflake?
Which data types in Snowflake are synonymous for FLOAT?
What data types are not allowed as clustering keys?
Not allowed data types for clustering keys: GEOGRAPHY, VARIANT, OBJECT, ARRAY.
What type of account can be used to share data with a consumer who does not have a Snowflake account?
What type of account can be used to share data with a consumer who does not have a Snowflake account?
More control over object-level access for different user groups
What does Snowflake recommend when configuring the auto-suspend parameter for a virtual warehouse?
Enable auto-suspend to a low value to minimize credit consumption during inactivity.
A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the STRIP_OUTER_ARRAY file format option.
What does the STRIP_OUTER_ARRAY file format do?
It removes the outer array structure and loads the records into separate table rows.
Which views are included in the DATA_SHARING_USAGE schema?
MONETIZED_USEAGE DAILY, LISTING_TELEMETRY_DAILY
What are the responsibilities of Snowflake's Cloud Service layer?
Resource management, Authentication, Query parsing and optimisation.
What Snowflake features are recommended to restrict unauthorized users from accessing Personal Identifiable Information (PII)?
Secure views and Dynamic Data Masking.
A user has semi-structured data to load into Snowflake but is not sure what types of operations will need to be performed on the data.
Based on this situation, what type of column does Snowflake recommend be used?
Which functions can be used to share unstructured data through a secure view?
BUILD_SCOPED_FILE_URL, GET_PRESIGNED_URL
What is the default behavior of internal stages in Snowflake?
Each user and table are automatically allocated an internal stage.
How many resource monitors can be assigned at the account level?
1. Only one can be assigned at the account level.
The Snowflake Cloud Data Platform is described as having which of the following architectures?
Mutli-cluster shared data.
What does Snowflake recommend a user do if they need to connect to Snowflake with a tool or technology that is not listed in Snowflake’s partner ecosystem?
Connect through Snowflake’s JDBC or ODBC drivers.
Which data formats are supported by Snowflake when unloading semi-structured data?
Binary file in Parquet, Newline Delimited in JSON.
Which governance features is supported by all Snowflake editions?
Object tags, OBJECT_DEPENDENCIES view.
When loading data into Snowflake via Snowpipe what is the compressed file size recommendation?
Which task is supported by the use of Access History in Snowflake?
In the Data Exchange, who can get or request data from the listings?
ACCOUNTADMIN, andyone with IMPORT SHARE privilege.
Which command line flags can be used to log into a Snowflake account using SnowSQL?
-a (account name),-d (database).
Which type of loop requires a BREAK statement to stop executing?
LOOP. Unlike other loop types, it doesn’t have a natural stopping condition, so a BREAK is needed to exit the loop based on a specific condition.
Which Snowflake data types can be used to build nested hierarchical data?
What SQL command would be used to view all roles that were granted to USER1?
A tabular User-Defined Function (UDF) is defined by specifying a return clause that contains which keyword?
What is the only supported character set for loading and unloading data from all supported file formats?
When unloading the data for file format type specified (TYPE = 'CSV'), SQL NULL can be converted to string ‘null’ using which file format option?
By definition, a secure view is exposed only to users with what privilege?
What happens to foreign key constraints when a table is cloned to another database?
The cloned table will reference the primary key in the source table.
When floating-point number columns are unloaded to CSV or JSON files, Snowflake truncates the values to approximately what?
(15,9) meaning 15 digits of precision and 9 digits after the decimal point.
When sharing data in Snowflake, what privileges does a Provider need to grant along with a share?
USAGE on the database a schema, and SELECT on the tables.
At what level can the ALLOW_CLIENT_MFA_CACHING parameter be set?
To use the OVERWRITE option on INSERT, which privilege must be granted to the role?
In a SPLIT_PART function, what will the returned value be if the partNumber is out of range?
Which privileges are required for a user to restore an object?
CREATE, OWNERSHIP. Undrop is not a privilege. Ownership grants full permissions. You would also need create to create an object AS a time travel object.
What does Snowflake attempt to do if any of the compute resources for a virtual warehouse fail to provision during start-up?
Repair the failed resources.
What is used to diagnose and troubleshoot network connections to Snowflake?
SnowCD is a tool designed to help identify and resolve network connectivity issues.
Which function will provide the proxy information needed to protect Snowsight?
When should a multi-cluster virtual warehouse be used in Snowflake?
When queuing is delaying query execution on the warehouse
How does the ACCESS_HISTORY view enhance overall data governance pertaining to read and write operations?
Provides a unified picture of what data was accessed and when it was accessed. It also shows how the accessed data was moved from the source to the target objects
What is the MINIMUM configurable idle timeout value for a session policy in Snowflake?
Which element in the Query Profile interface shows the relationship between the nodes in the execution of a query?
What storage cost is completely eliminated when a Snowflake table is defined as transient?
What is the minimum Snowflake Edition that supports secure storage of Protected Health Information (PHI) data?
Business Criticcal Edition.
What entity is responsible for hosting and sharing data in Snowflake?
Which VALIDATION_MODE value will return the errors across the files specified in a COPY command, including files that were partially loaded during an earlier load?
The MAXIMUM size for a serverless task run is equivalent to what size virtual warehouse?
A Snowflake user is trying to load a 125 GB file using SnowSQL. The file continues to load for almost an entire day.
What will happen at the 24-hour mark?
The import could be aborted without any part of the file being saved.