Question 101
You are developing a Snowpark application using Visual Studio Code and the Snowflake VS Code extension. You want to configure the extension to automatically detect and use a specific Anaconda environment for your Snowpark development. Assuming you have already created an Anaconda environment named 'snowpark_env', which configuration setting in the VS Code settings.json file would correctly specify the Python path for the Snowflake extension?
Question 102
You are tasked with creating a Snowpark stored procedure that needs to access a secret stored in Snowflake's Secret Managen The secret contains credentials required to connect to an external API. Which of the following steps are necessary to correctly and securely access and use the secret within your Snowpark stored procedure? (Select all that apply)
Question 103
You need to create a Snowpark DataFrame using a SQL query. The query requires a user-defined variable (e.g., a date for filtering records). What are the correct and recommended ways to safely pass this variable into the SQL query when creating the DataFrame using 'session.sql()' to prevent SQL injection vulnerabilities?
Question 104
You are developing a Snowpark application that processes large datasets stored in Snowflake. You need to implement custom User-Defined Functions (UDFs) written in Java. The UDF requires specific third-party libraries that are not available in the default Snowflake Java environment. What steps are necessary to package and deploy these UDFs correctly?
Question 105
Given a Snowpark DataFrame 'df with a column named 'data' of VARIANT type, where the VARIANT contains JSON objects with nested fields. You need to extract the value of the nested field 'address.city' as a STRING and the value of as a DOUBLE, handling cases where either 'address' or 'items' might be missing. Which combination of Snowpark functions is best suited to achieve this robustly and efficiently?
