Snowflake SnowPro Advanced: Data Scientist Certification - DSA-C03 Exam Practice Test
You have trained a classification model in Snowflake using Snowpark ML to predict customer churn. After deploying the model, you observe that the model performs well on the training data but poorly on new, unseen data'. You suspect overfitting. Which of the following strategies can be applied within Snowflake to detect and mitigate overfitting during model validation , considering the model is already deployed and receiving inference requests through a Snowflake UDF?
Correct Answer: A,C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are building a data science pipeline in Snowflake to perform time series forecasting. You've decided to use a Python UDTF to encapsulate the forecasting logic using a library like 'Prophet'. The UDTF needs to access historical data to train the model and generate forecasts. The data is stored in a Snowflake table named 'SALES DATA with columns 'DATE' and 'SALES'. Which of the following approaches is/are most efficient and secure for accessing the 'SALES DATA table from within the UDTF during model training?
Correct Answer: A,C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are tasked with predicting sales (SALES AMOUNT') for a retail company using linear regression in Snowflake. The dataset includes features like 'ADVERTISING SPEND', 'PROMOTIONS', 'SEASONALITY INDEX', and 'COMPETITOR PRICE'. After training a linear regression model named 'sales model', you observe that the model performs poorly on new data, indicating potential issues with multicollinearity or overfitting. Which of the following strategies, applied directly within Snowflake, would be MOST effective in addressing these issues and improving the model's generalization performance? Choose ALL that apply.
Correct Answer: A,B,D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are tasked with performing data profiling on a large customer dataset in Snowflake to identify potential issues with data quality and discover initial patterns. The dataset contains personally identifiable information (PII). Which of the following Snowpark and SQL techniques would be most appropriate to perform this task while minimizing the risk of exposing sensitive data during the exploratory data analysis phase?
Correct Answer: B,E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are building a machine learning pipeline that uses data stored in Snowflake. You want to connect a Jupyter Notebook running on your local machine to Snowflake using Snowpark. You need to securely authenticate to Snowflake and ensure that you are using a dedicated compute resource for your Snowpark session. Which of the following approaches is the MOST secure and efficient way to achieve this?
Correct Answer: D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are tasked with developing a multi-class image classification model to categorize product images stored in Snowflake external stage. The categories are 'Electronics', 'Clothing', 'Furniture', 'Books', and 'Food'. You plan to use a pre-trained Convolutional Neural Network (CNN) model and fine-tune it using your dataset. However, you're facing challenges in efficiently loading and preprocessing the image data within the Snowflake environment before feeding it to your model. Which of the following approaches would be MOST efficient for image data loading and preprocessing in Snowflake, minimizing data movement and leveraging Snowflake's scalability, for a large dataset exceeding 1 TB of images?
Correct Answer: A,B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are using Snowflake ML to predict housing prices. You've created a Gradient Boosting Regressor model and want to understand how the 'location' feature (which is categorical, representing different neighborhoods) influences predictions. You generate a Partial Dependence Plot (PDP) for 'location'. The PDP shows significantly different predicted prices for each neighborhood. Which of the following actions would be MOST appropriate to further investigate and improve the model's interpretability and performance?
Correct Answer: A,C,E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You've trained a sales forecasting model using Snowpark ML and want to deploy it within Snowflake for real-time predictions. You've decided to store the predictions directly in a Snowflake table. The model predicts sales for different product categories based on historical data and promotional activities. Which of the following approaches is the MOST efficient and scalable way to store these predictions, considering a high volume of prediction requests and the need for quick retrieval for downstream dashboards?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are investigating website session durations stored in a Snowflake table named 'WEB SESSIONS. You suspect that bot traffic is artificially inflating the average session duration. You have the following session durations (in seconds) in the 'SESSION DURATION' column: [10, 12, 15, 18, 20, 22, 25, 28, 30, 1000]. Given this data and the context of bot traffic, which measure of central tendency is MOST robust to the influence of the outlier (1000) in this dataset? Assuming you already have table and dataframe created for this analysis. (Choose ONE)
Correct Answer: E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are tasked with optimizing the hyperparameter tuning process for a complex deep learning model within Snowflake using Snowpark Python. The model is trained on a large dataset stored in Snowflake, and you need to efficiently explore a wide range of hyperparameter values to achieve optimal performance. Which of the following approaches would provide the MOST scalable and performant solution for hyperparameter tuning in this scenario, considering the constraints and capabilities of Snowflake?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You've built a regression model in Snowflake to predict customer churn. You've calculated the R-squared score on your test data and found it to be 0.65. However, after deploying the model to production and monitoring its performance over several weeks, you notice the model's predictive accuracy has significantly decreased. Which of the following factors could contribute to this performance degradation?
Select all that apply.
Select all that apply.
Correct Answer: A,B,D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are developing a churn prediction model using Snowpark Python and Scikit-learn. After initial model training, you observe significant overfitting. Which of the following hyperparameter tuning strategies and code snippets, when implemented within a Snowflake Python UDF, would be MOST effective to address overfitting in a Ridge Regression model and how can you implement a reproducible model with minimal code?


Correct Answer: B,C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are a data scientist working for a retail company. You've been tasked with identifying fraudulent transactions. You have a Snowflake table named 'TRANSACTIONS' with columns 'TRANSACTION ID', 'AMOUNT', 'TRANSACTION DATE', 'CUSTOMER ID', and 'LOCATION'. You suspect outliers in transaction amounts might indicate fraud. Which of the following SQL queries is the MOST efficient and appropriate to identify potential outliers using the Interquartile Range (IQR) method, and incorporate necessary data type considerations for robust percentile calculations? Consider also the computational cost associated with each approach on a large dataset.


Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are building a fraud detection model using transaction data stored in Snowflake. The dataset includes features like transaction amount, merchant category, location, and time. Due to regulatory requirements, you need to ensure personally identifiable information (PII) is handled securely and compliantly during the data collection and preprocessing phases. Which of the following combinations of Snowflake features and techniques would be MOST suitable for achieving this goal?
Correct Answer: B,E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).