Question 86
You are developing a Snowpark Python application to process large datasets stored in a Snowflake table called 'CUSTOMER DATA' The application needs to perform complex data transformations and aggregations that benefit from Snowpark's lazy evaluation and query optimization. Which of the following approaches will lead to the MOST efficient execution in terms of resource utilization and performance?
Question 87
A Snowpark application needs to dynamically switch between different Snowflake accounts based on the environment (development, staging, production). Which of the following approaches provides the MOST secure and maintainable way to manage account credentials without hardcoding them in the application? Assume that deployment will occur via docker, Kubernetes or other modern deployment practices.
Question 88
Consider a scenario where you're developing a Snowpark stored procedure that accesses sensitive data'. Which of the following strategies, when used together, provide a comprehensive approach to secure this stored procedure and protect the underlying data?
Select all that apply:
Select all that apply:
Question 89
You are working with a Snowpark DataFrame 'sales_data' containing sales transactions. The DataFrame includes columns 'transaction_id' (STRING), 'product_id' (IN T), 'sale_date' (DATE), and 'sale_amount' (DOUBLE). You need to calculate the total sales amount for each product on a daily basis. Furthermore, you want to filter out any days where the total sales amount for a specific product is less than $50. Which of the following code snippets correctly achieves this using Snowpark Python?
Question 90
You are profiling a Snowpark application that uses a combination of SQL queries and Python UDFs. You observe that a particular stage involving a UDF is taking significantly longer than expected. You suspect that the UDF's performance is the bottleneck. Which of the following steps would be the MOST comprehensive approach to diagnose and address the performance issue?
