Which command will identify the names of files that are in a Snowflake stage?
DESCRIBE FILE FORMAT
SHOW FILE FORMAT
LIST
SELECT $1 FROM
Who can activate a network policy for users in a Snowflake account? (Select TWO)
ACCOUNTADMIN
USERADMIN
PUBLIC
SYSADMIN
Any role that has the global ATTACH POLICY privilege
Network policies in Snowflake are used to control access to Snowflake accounts based on IP address ranges. These policies can be activated by specific roles that have the necessary privileges.
Role: ACCOUNTADMIN:
The ACCOUNTADMIN role has full administrative rights across the Snowflake account.
This role can manage all aspects of the Snowflake environment, including network policies.
Role with Global ATTACH POLICY Privilege:
Any role that has been granted the global ATTACH POLICY privilege can activate network policies.
This privilege allows the role to attach policies that control network access to the account.
Snowflake Documentation: Network Policies
What metadata is stored for each micro-partition? (Select TWO)
The number of distinct values
The clustering key used in the table
The average depth of values for each of the columns
The range of values for each of the columns in the full table
The minimum and maximum values for each of the columns
By default, which system roles can create and manage users? (Select TWO)
USERADMIN
SYSADMIN
SECURITYADMIN
PUBLIC
ORGADMIN
USERADMIN: Used for managing users and roles.
SECURITYADMIN: Can manage users, roles, and access control.
SYSADMIN is used primarily for object creation, not user management.
What object does Snowflake recommend using when planning to unload similarly-formatted data on a regular basis?
Stream
Task
Storage integration
Named file format
Which steps will help optimize query performance? (Select TWO).
Using the query acceleration service
Clustering a table
Indexing a column
Increasing the size of the micro-partitions
Decreasing the size of the virtual warehouse
A query runs significantly slower than expected. Which Query Profile metrics will help identify the issue? (Select TWO).
Processing
Resource usage
Query Plan execution steps
Bytes scanned
Partitions scanned
Which virtual warehouse configuration requires the maximum number of clusters to be equal to the minimum number of clusters?
Auto-scale mode
Maximized mode
Standard scaling policy
Economy scaling policy
In the Data Exchange, who can get or request data from the listings? (Select TWO).
Users with ACCOUNTADMIN role
Users with sysadmin role
Users with ORGADMIN role
Users with import share privilege
Users with manage grants privilege
In the Snowflake Data Exchange, the ability to get or request data from listings is generally controlled by specific roles and privileges:
A. Users with ACCOUNTADMIN role: This role typically has the highest level of access within a Snowflake account, including the ability to manage and access all features and functions. Users with this role can access data listings within the Data Exchange.
D. Users with import share privilege: This specific privilege is necessary for users who need to import shared data from the Data Exchange. This privilege allows them to request and access data listings explicitly shared with them.
What is the default authentication method while using the JDBC driver connection in Snowflake?
externalbrowser
snowflake
username_password_mfa
snowflake_jwt
The default authentication mechanism for Snowflake clients (including JDBC) is the snowflake method, which uses username and password authentication.
Which Snowflake feature or tool helps troubleshoot issues in SQL query expressions that commonly cause performance bottlenecks?
Persisted query results
QUERY_HISTORY View
Query acceleration service
Query Profile
The Snowflake feature that helps troubleshoot issues in SQL query expressions and commonly identify performance bottlenecks is theQuery Profile. The Query Profile provides a detailed breakdown of a query's execution plan, including each operation's time and resources consumed. It visualizes the steps involved in the query execution, highlighting areas that may be causing inefficiencies, such as full table scans, large joins, or operations that could benefit from optimization.
By examining the Query Profile, developers and database administrators can identify and troubleshoot performance issues, optimize query structures, and make informed decisions about potential schema or indexing changes to improve performance.
Which Snowflake objects can be restored using Time Travel? (Select VNO).
Roles
Users
Databases
Schemas
Virtual warehouses
Snowflake’s Time Travel feature allows users to access historical data within a specific period. This feature supports the restoration of various objects, including databases and schemas, to their previous states. Time Travel can be used for recovering dropped objects, undoing accidental changes, or analyzing data changes over time. However, it does not support user or role objects like Users and Roles, or compute resources like Virtual Warehouses.
What happens when a table or schema with a standard retention period is dropped?
The object is immediately removed from the system.
The object is instantaneously moved to Fail-safe.
The object is retained but all associated data is immediately purged.
The object is retained for the data retention period.
In Snowflake, when a table or schema is dropped, it is not immediately deleted but retained for the configured data retention period, also known as "Time Travel." During this period, users can use commands like UNDROP to recover the dropped object if needed. After the retention period expires, the object is then moved to Fail-safe (if applicable) for an additional seven days before being permanently removed. This feature is intended to provide data protection and recovery options in case of accidental deletions.
When sharing data among multiple Snowflake accounts, what charges are incurred by a data consumer when viewing shared data using their own account?
Cloud services charges
Compute charges
Data storage charges
Data egress charges
Which service or tool is a Command Line Interface (CLI) client used for connecting to Snowflake to execute SQL queries?
Snowsight
SnowCD
Snowpark
SnowSQL
SnowSQL is the Command Line Interface (CLI) client provided by Snowflake for executing SQL queries and performing various tasks. It allows users to connect to their Snowflake accounts and interact with the Snowflake data warehouse.
Installation:SnowSQL can be downloaded and installed on various operating systems.
Configuration:Users need to configure SnowSQL with their Snowflake account credentials.
Usage:Once configured, users can run SQL queries, manage data, and perform administrative tasks through the CLI.
A Snowflake user needs to optimize the definition of a secure view, but the user cannot see the view.
Which of the LEAST-PRIVILEGED access or role that should be granted to the user to complete this task?
Grant the user the AYSADMIN role.
Grant the user the ownership privilege on the secure view.
Grant the user the imported privileges privilege on the database.
Grant the user the SHOWFLAKE. object viewer database role.
What costs are associated with sharing Snowflake data with a reader account?
The data provider incurs costs for the data storage costs, and the data consumer incurs compute costs.
The data provider incurs costs for compute, and the data consumer incurs costs for data storage.
The data provider does not incur costs when sharing data; the data consumer incurs costs for data storage and compute.
The data consumer does not incur costs when accessing shared data; the data provider incurs costs for data storage and compute.
With reader accounts, the provider pays for:
Storage of shared data
Compute used by the reader account
The consumer does not pay, as the infrastructure is provisioned and managed by the provider.
What is the LEAST-PRIVILEGED role that can create a share in Snowflake by default?
SYSADMIN
SECURITYADMIN
USERADMIN
ACCOUNTADMIN
Which types of subqueries does Snowflake support? (Select TWO).
Uncorrelated scalar subqueries in WHERE clauses
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 uncorrelated only
EXISTS, ANY / ALL, and IN subqueries in where clauses: these subqueries can be correlated only
EXISTS, ANY /ALL, and IN subqueries in WHERE clauses: these subqueries can be correlated or uncorrelated
Snowflake supports a variety of subquery types, including both correlated and uncorrelated subqueries. The correct answers are B and E, which highlight Snowflake's flexibility in handling subqueries within SQL queries.
Uncorrelated Scalar Subqueries:These are subqueries that can execute independently of the outer query. They return a single value and can be used anywhere a value expression is allowed, offering great flexibility in SQL queries.
EXISTS, ANY/ALL, and IN Subqueries:These subqueries are used inWHEREclauses to filter the results of the main query based on the presence or absence of matching rows in a subquery. Snowflake supports both correlated and uncorrelated versions of these subqueries, providing powerful tools for complex data analysis scenarios.
Examples and Usage:
Uncorrelated Scalar Subquery:
SELECT*FROMemployeesWHEREsalary > (SELECTAVG(salary)FROMemployees);
Correlated EXISTS Subquery:
SELECT*FROMorders oWHEREEXISTS(SELECT1FROMcustomer cWHEREc.id = o.customer_idANDc.region ='North America');
Which object can be used to query the data loading history for the last 365 days for a Snowflake account?
What happens when a suspended virtual warehouse is resized in Snowflake?
It will return an error.
It will return a warning.
The suspended warehouse is resumed and new compute resources are provisioned immediately.
The additional compute resources are provisioned when the warehouse is resumed.
In Snowflake, resizing a virtual warehouse that is currently suspended does not immediately provision the new compute resources. Instead, the change in size is recorded, and the additional compute resources are provisioned when the warehouse is resumed. This means that the action of resizing a suspended warehouse does not cause it to resume operation automatically. The warehouse remains suspended until an explicit command to resume it is issued, or until it automatically resumes upon the next query execution that requires it.
This behavior allows for efficient management of compute resources, ensuring that credits are not consumed by a warehouse that is not in use, even if its size is adjusted while it is suspended.
Which table function should be used to view details on a Directed Acyclic Graphic (DAG) run that is presently scheduled or is executing?
TASK_HISTORY
TASK_DEPENDENTS
CURRENT_TASK_GRAPHS
COMPLETE_TASK_GRAPHS
TheCURRENT_TASK_GRAPHStable function is designed to provide information on Directed Acyclic Graphs (DAGs) that are currently scheduled or executing within Snowflake. This function offers insights into the structure and status of task chains, enabling users to monitor and troubleshoot task executions. DAGs in Snowflake represent sequences of tasks with dependencies, and understanding their current state is crucial for managing complex workflows.
Which privilege grants the ability to set a column-level security masking policy on a table or view column?
APPLY
CREATE
SET
MODIFY
In Snowflake, theAPPLYprivilege is required to set a masking policy on a table or view column. This privilege allows a user to associate a masking policy with a specific column, thereby controlling how data in that column is masked or hidden.
Create a Masking Policy:Define a masking policy using theCREATE MASKING POLICYcommand.
Grant APPLY Privilege:Grant theAPPLYprivilege on the masking policy to the relevant roles or users.
Apply the Masking Policy:Use theALTER TABLEorALTER VIEWcommand to apply the masking policy to a column.
Which metrics in the QUERY_HISTORY Account_Usage View can be used to assess the pruning efficiency of a query? (Select TWO).
EXECUTION_TIME
PARTITIONS_TOTAL
COMPILATION_TIME
TOTAL_ELAPSED_TIME
PARTITIONS_SCANNED
Which functions are used to manipulate semi-structured data? (Select TWO)
WIDTH_BUCKET
HASH_AGG
ARRAY_APPEND
OBJECT_INSERT
LISTAGG
Functions like ARRAY_APPEND() and OBJECT_INSERT() are system-defined for manipulating ARRAY and OBJECT types within VARIANT data structures.
Which Query Profile metrics can be used to determine if a query is pruning efficiently?
Bytes read from result and Bytes written to result
Partitions scanned and Partitions total
Bytes spilled to local storage and Bytes spilled to remote storage
Number of rows inserted and Number of rows updated
When connecting to Snowflake using SnowSQL, what are ways to explicitly specify the password? (Select TWO).
Use public and private key pair authentication
Run a web-based authorization flow
Use an OAuth token
Enter through an interactive prompt
Specify using SNOWSQL_PWD environment variables
What is the MINIMUM Snowflake edition required to add masking policies to selectively mask plain-text data in a table or in view columns at query time?
Standard
Enterprise
Business Critical
Virtual Private Snowflake (VPS)
What happens when a value in a single row of a large table is updated?
The affected micro-partition will be modified.
All existing micro-partitions will be modified.
The affected micro-partition will be deleted and recreated.
All micro-partitions will be deleted and recreated.
Which queries will require a running virtual warehouse? (Select TWO).
SELECT COUNT(*) FROM