Question 91

You are tasked with training a machine learning model within Snowflake using a Python UDTF. The UDTF is intended to process incoming sales data, calculate features, and update the model incrementally. The model is a simple linear regression using scikit-learn. Your initial attempt fails with a 'ModuleNotFoundError: No module named 'sklearn" error within the UDTF. You have already confirmed that scikit-learn is available in your Anaconda channel and specified it during session creation. Which of the following actions would MOST directly address this issue and allow the UDTF to successfully import and use scikit-learn?
  • Question 92

    You are performing exploratory data analysis on a large sales dataset in Snowflake using Snowpark. The dataset contains columns such as 'order_id', , and 'profit'. You want to identify the top 5 most profitable products for each month. You have already created a Snowpark DataFrame named 'sales_df. Which of the following Snowpark operations, when combined correctly, will efficiently achieve this?
  • Question 93

    Consider the following Python UDF intended to train a simple linear regression model using scikit-learn within Snowflake. The UDF takes feature columns and a target column as input and returns the model's coefficients and intercept as a JSON string. You are encountering an error during the CREATE OR REPLACE FUNCTION statement because of the incorrect deployment of the package during runtime. What would be the right way to fix this deployment and execute your model?
  • Question 94

    You have successfully trained a binary classification model using Snowpark ML and deployed it as a UDF in Snowflake. The UDF takes several input features and returns the predicted probability of the positive class. You need to continuously monitor the model's performance in production to detect potential data drift or concept drift. Which of the following methods and metrics, when used together, would provide the MOST comprehensive and reliable assessment of model performance and drift in a production environment? (Select TWO)
  • Question 95

    You are developing a machine learning model within a Snowflake UDF (User-Defined Function) written in Python. This UDF needs to access external Python libraries not included in the default Snowflake Anaconda channel. You've created a stage and uploaded the necessary file. You've successfully used 'conda create' and 'conda install --file requirements.txt' to create your environment locally, and subsequently zipped the environment. Now, what steps are essential to configure the Snowflake UDF to correctly use these external libraries from the stage? Select all that apply.