Question 21
You are working with a Snowpark DataFrame named 'employees_df' that contains employee data, including a column named 'hire_date' of type String. The date format in the 'hire_date' column is 'MM/DD/YYYY'. You need to convert this column to a DateType so you can perform date-based calculations. Which of the following Snowpark code snippets correctly converts the column to a DateType?
Question 22
Consider the following Snowpark Python stored procedure:

What steps are necessary to register this Python code as a stored procedure named 'GET ROW COUNT in Snowflake and allow users with the 'ANALYST' role to execute it, assuming the stored procedure will be created with the 'EXECUTE AS OWNER clause, and the table name parameter will be passed dynamically during invocation?

What steps are necessary to register this Python code as a stored procedure named 'GET ROW COUNT in Snowflake and allow users with the 'ANALYST' role to execute it, assuming the stored procedure will be created with the 'EXECUTE AS OWNER clause, and the table name parameter will be passed dynamically during invocation?
Question 23
You are developing a Snowpark application to process customer reviews. You need to use a third-party sentiment analysis library, 'SentimentAnalyzer', which is NOT available in the Anaconda repository. You have the library JAR file stored in an internal artifact repository accessible via HTTP. Which of the following steps are necessary to make this library available to your Snowpark session?
Question 24
You are tasked with creating a series of Snowpark DataFrames for a data transformation pipeline. For debugging purposes, you want to materialize these DataFrames as tables within Snowflake, but only for the duration of your session. You also need to make sure that these tables are automatically cleaned up when your session ends. Which of the following approaches offer(s) the MOST efficient and appropriate way to achieve this?
Question 25
You have a Snowpark DataFrame named 'products' with columns 'product_id' (INT), 'product_name' (STRING), and 'price' (DOUBLE). You want to apply a transformation to calculate a 'discounted_price' column, which is the 'price' reduced by 10% if the price is greater than $100.00. Which of the following code snippets is the most efficient way to achieve this using Snowpark Python?
