Question 101
You are designing a data pipeline that requires executing a sequence of SQL statements conditionally based on the success or failure of previous steps. You want to encapsulate this logic within a stored procedure in Snowflake. Which of the following approaches can be used to achieve this conditional execution within a stored procedure, and what are their key differences regarding error handling and control flow?
Question 102
How do row access policies and Dynamic Data Masking impact the creation of dashboards concerning data visibility and security?
Question 103
When maintaining reports and dashboards, why is it essential to build automated and repeatable tasks?
Question 104
You have a Snowflake table called 'PRODUCT SALES' with columns 'PRODUCT ID (INT), 'SALE DATE' (DATE), and 'SALES AMOUNT' You want to implement a data integrity rule to prevent duplicate records based on 'PRODUCT ID and 'SALE DATE. Which of the following methods provides the most effective way to achieve this in Snowflake, and why?
Question 105
You're working with a large dataset containing website user activity, including 'session_id', 'user_id', 'timestamp', and 'page_view'. You suspect bot activity is skewing your engagement metrics. Bots tend to have very short session durations and high page view counts within those sessions. Which of the following Snowflake SQL queries, used in combination, would be MOST effective in identifying and flagging potential bot sessions, considering performance on a large dataset? Assume you have access to Snowflake's statistical functions.
