Question 1

You are tasked with optimizing a Snowpark Python application that performs complex data transformations on a large dataset. The application is running slower than expected, and you suspect that data serialization and transfer between the Snowpark client and the Snowflake engine are bottlenecks. Which of the following strategies could you implement to improve performance? (Select all that apply.)
  • Question 2

    You are tasked with optimizing a Snowpark Python application that performs complex data transformations using a large DataFrame. The application is running slower than expected. You suspect that data skew is causing uneven distribution of work across the Snowflake warehouse nodes. Which of the following techniques could be used to mitigate data skew and improve the performance of your Snowpark application? (Select TWO)
  • Question 3

    You have created a Snowpark Python UDF named to apply discounts based on customer purchase history. You now need to modify the UDF to accept an additional parameter for promotional codes. However, direct modification of the code on stage is restricted. How can you alter this UDF using SQL, assuming the existing UDF definition resides in the 'mydb.public' schema?
  • Question 4

    A data scientist is developing a Snowpark application that needs to authenticate to Snowflake using Key Pair Authentication. Which of the following steps are essential for configuring the Snowflake CLI to enable Key Pair Authentication and then correctly create a Snowpark session? (Select TWO)
  • Question 5

    A Snowpark application is designed to process data residing in a Snowflake table called 'ORDERS'. The application needs to create a temporary view named 'TEMP ORDERS VIEW based on a filtered subset of this table. The view should only be accessible within the current Snowpark session and should be automatically dropped when the session ends. What is the MOST efficient and correct Python code snippet using Snowpark to achieve this?