Question 51
You have identified a valuable dataset on the Snowflake Marketplace related to weather patterns. To consume this data, you perform the following actions: 1. You request and receive the data share from the provider. 2. You create a database named 'WEATHER DB' from the share. Now you want to create a secure view named 'DAILY WEATHER SUMMARY in your own database 'ANALYTICS DB.PUBLIC', which joins your internal sales data C ANALYTICS DB.PUBLIC.SALES) with the weather data from the provider's 'WEATHER DB.WEATHER SCHEMA.DAILY WEATHER' table. You only want to expose specific columns from both tables in your view to minimize data exposure. Which of the following steps are required to ensure this secure and functional integration?
Question 52
In diagnostic analysis, what significance do demographics and relationships hold when identifying anomalies? (Select all that apply)
Question 53
You are working with a Snowflake table 'raw_data' containing a column of type TEXT that stores log messages in various formats, including JSON and CSV. You need to extract specific data points from these log entries, treating JSON entries differently from CSV entries. Specifically: For JSON log entries (identified by starting with '{l), extract the value of the 'user_id' key. For CSV log entries (identified by starting with a number), extract the second field (assuming comma-separated values). Which of the following queries is the most efficient and correct way to achieve this data extraction?
Question 54
You are preparing to load data from an internal stage that contains multiple CSV files into a Snowflake table. You need to ensure that only files matching a specific pattern are loaded (e.g., files starting with 'sales_'). You also need to transform the date column (located in the third position of each CSV file) from 'YYYYMMDD' to 'YYYY-MM-DD' format during the load. The target table 'SALES has columns 'product_id', and 'region'. Which combination of options correctly filters the files and transforms the date format during the load process?
Question 55
You are analyzing customer order data in Snowflake and need to determine if there is a statistically significant correlation between the number of items in an order ('ITEM COUNT) and the total order value CORDER VALUE'). You have a table named 'ORDERS' with columns 'ORDER ID', 'ITEM COUNT', and 'ORDER VALUE'. Which of the following Snowflake functions or methods, used in combination, would be the MOST appropriate and statistically sound for calculating the correlation coefficient between these two variables, taking into account the need to handle potential NULL values appropriately?
