Question 71

You are working with a Snowpark DataFrame containing customer data, including a 'phone_number' column. Some phone numbers are missing or have incorrect formats. You want to impute missing values with a default phone number '000-000-0000' and remove any phone numbers that do not match the pattern 'XXX-XXX-XXXX' using Snowpark Python. Which of the following code snippets achieves this most efficiently?
  • Question 72

    When using key pair authentication with Snowpark, what security best practices should you implement to protect your private key?
    (Select all that apply)
  • Question 73

    You have a Snowpark DataFrame named with the following schema: 'product_id' (INTEGER), (STRING), 'category' (STRING), 'price' (FLOAT), and 'description' (STRING). You want to perform several data cleaning and transformation steps. Which of the following operations can be efficiently chained together using Snowpark DataFrames to clean null values in 'description', replace special characters in 'product_name' and standardize 'category' values? Select all that apply:
  • Question 74

    You are working with a Snowpark DataFrame containing website traffic data'. The DataFrame has columns like 'date' , 'page_url', and 'visit_count'. You need to calculate the cumulative sum of visit counts for each 'page_url' over time (i.e., ordered by 'date'). However, you only want to consider data from the last 30 days for each calculation. Which of the following Snowpark code snippets will correctly achieve this using window functions with a frame specification?
  • Question 75

    Consider a Snowpark DataFrame with a containing date values, some of which are corrupted (e.g., invalid date formats or out-of-range values). You need to identify and either remove or correct these corrupted date values. Which of the following approaches can be effectively used in Snowpark Python to handle such scenarios? (Select all that apply)