Question 51
You have a complex data pipeline implemented using Snowpark Tasks in a Directed Acyclic Graph (DAG). One of the tasks, , depends on the successful completion of two parent tasks, and 'task B'. You need to implement error handling such that if 'task_R fails, 'task_C' should not be executed, but should still complete its execution regardless of status. If 'task B' fails, 'task_C' should not be executed. How do you configure the task dependencies and error handling in Snowflake to achieve this behavior?
Question 52
You have a Snowpark DataFrame named with the following schema: '(timestamp: TmestampType, sensor_id: StringType, value: FloatType)'. You need to identify the top 3 sensors with the highest average value over the entire dataset. Which of the following Snowpark Python code snippets correctly implements this requirement?
Question 53
You have a Python function, 'calculate metrics(df: snowpark.DataFrame, metric name: str) -> snowpark.DataFrame', that calculates various metrics on a Snowpark DataFrame. You want to deploy this function as a stored procedure in Snowflake. You need to ensure that the stored procedure has appropriate permissions to read data from a table named 'customer data' and write results to a table named 'metrics_table'. Which of the following steps are necessary to achieve this, assuming you are using the 'session.sproc.register' method?
Question 54
You are developing a Snowpark application that involves creating a set of stored procedures and UDFs to process data'. To ensure proper version control and dependency management, you decide to package your Python code into a single Python Wheel file and deploy it to Snowflake. Which of the following methods are valid for deploying and utilizing this Python Wheel file within Snowflake, considering best practices for maintainability and security? (Select TWO)
Question 55
You are tasked with creating a Snowpark DataFrame from a Python list of tuples. Each tuple represents a customer record with the following structure: '(customer_id, signup_date, The 'customer _ id' should be an integer, 'signup_date' should be a date, and should be a decimal. You want to define the schema explicitly for type safety and performance. Which of the following code snippets correctly defines the schema and creates the Snowpark DataFrame?
