Question 66

Which of the following are key benefits of using Snowpark's server-side execution capabilities for data processing tasks within Snowflake, compared to performing the same tasks on the client-side? (Select all that apply)
  • Question 67

    You have a Snowpark DataFrame 'employees df representing employee data'. You need to update the 'salary' column for employees in the 'Sales' department by applying a 10% increase. Which of the following Snowpark code snippets correctly performs this update? Assume a Snowflake table named 'employees' exists and 'employees df' is correctly created from it.
  • Question 68

    You are migrating a Pandas-based data processing pipeline to Snowpark to leverage Snowflake's scalability and performance. One part of the pipeline involves a computationally intensive custom function that is applied row-by-row to a DataFrame using the 'apply' method in Pandas. When migrating this to Snowpark, what are the most effective strategies for achieving similar functionality while maximizing performance within the Snowflake environment?
  • Question 69

    You are using Snowpark in Python within a Jupyter Notebook environment to analyze sales data'. You've established a connection to Snowflake and loaded your data into a Snowpark DataFrame named 'sales ff. You need to calculate the cumulative sales for each product category over time. The 'sales_df' DataFrame has columns 'SALE DATE' (DATE), 'PRODUCT CATEGORY' (VARCHAR), and 'SALE AMOUNT' (NUMBER). Which of the following approaches, or combination of approaches, will correctly calculate the cumulative sales while optimizing for Snowflake's performance and scalability? (Select all that apply)
  • Question 70

    A data engineer is tasked with creating a Snowpark session using JWT authentication. They have a private key 'rsa_key.pff, a user name 'snowpark_user' , and an account identifier 'my_account'. The goal is to create a session object suitable for submitting Snowpark jobs. Which code snippet correctly demonstrates the instantiation of a session object using JWT?