Exam SPS-C01 Topic 1 Question 372 Discussion
Actual exam question for Snowflake's SPS-C01 exam
Question #: 372
Topic #: 1
Question #: 372
Topic #: 1
You have a Snowflake table named 'CUSTOMER DATA' with columns 'CUSTOMER ID', 'NAME, 'CITY , and 'ORDER COUNT. You want to create a Snowpark DataFrame named 'customer_df containing only customers from 'New York' with an 'ORDER COUNT greater than 10. Which of the following code snippets is the MOST efficient and correct way to achieve this, minimizing data transfer and maximizing pushdown optimization to Snowflake?
Suggested Answer: A Vote an answer
Option A is the most efficient. It directly uses the 'filter' method with the combined condition, allowing Snowpark to push down the entire filter to Snowflake for execution. Option B uses 'session.sqr, which might not be as optimized as using the table API directly. Option C pulls the entire table into Pandas, which is highly inefficient for large tables, defeating the purpose of Snowpark. Option D, while functional, is less readable than A, and the multiple 'where' calls are logically equivalent to a single 'filter' with combined conditions. Option E, while functional, contains redundant 'select(' 'V operation.
by Bevis at Feb 23, 2026, 11:58 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).