Which types of subqueries does Snowflake support? (Select TWO).
Correct Answer: B,E
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'); Reference:For comprehensive details on the types of subqueries supported by Snowflake and examples of their usage, consult the Snowflake documentation on subqueries: https://docs.snowflake.com/en/sql-reference/constructs/subqueries.html
Which privilege grants the ability to set a column-level security masking policy on a table or view column?
Correct Answer: A
In Snowflake, the APPLY privilege 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 the CREATE MASKING POLICY command. Grant APPLY Privilege: Grant the APPLY privilege on the masking policy to the relevant roles or users. Apply the Masking Policy: Use the ALTER TABLE or ALTER VIEW command to apply the masking policy to a column. Reference: Snowflake Documentation: Data Masking Snowflake Documentation: CREATE MASKING POLICY Snowflake Documentation: Privileges for Masking Policies
Question 369
How does Snowflake utilize clustering information to improve query performance?
Correct Answer: A
Snowflake utilizes clustering information to enhance query performance by pruning unnecessary micro-partitions. * Clustering Metadata: Snowflake stores clustering information for each micro-partition, which includes data range and distribution. * Pruning Micro-partitions: When a query is executed, Snowflake uses this clustering metadata to identify and eliminate micro-partitions that do not match the query criteria, thereby reducing the amount of data scanned and improving query performance. References: * Snowflake Documentation on Clustering * Snowflake Documentation on Micro-partition Pruning
Question 370
If queries start to queue in a multi-cluster virtual warehouse, an additional compute cluster starts immediately under what setting?
Correct Answer: A
In Snowflake, when queries begin to queue in a multi-cluster virtual warehouse, an additional compute cluster starts immediately if the warehouse is set to auto-scale mode. This mode allows Snowflake to automatically add or resume additional clusters as soon as the workload increases, and similarly, shut down or pause the additional clusters when the load decreases