Exam DEA-C02 Topic 1 Question 114 Discussion

Actual exam question for Snowflake's DEA-C02 exam
Question #: 114
Topic #: 1
You are developing a data pipeline in Snowflake that uses SQL UDFs for data transformation. You need to define a UDF that calculates the Haversine distance between two geographical points (latitude and longitude). Performance is critical. Which of the following approaches would result in the most efficient UDF implementation, considering Snowflake's execution model?

Suggested Answer: A Vote an answer

SQL UDFs are generally the most efficient for simple calculations within Snowflake because they are executed within the Snowflake engine, minimizing data movement and overhead. While Java UDFs (option B) can offer optimizations, the overhead of invoking the Java environment often outweighs the benefits for this type of calculation. External Functions (option C) introduce significant latency due to network communication. Option D provides temporary performance improvements for the specific session, but is not the most efficient general solution. Vectorized keyword doesn't exists in snowflake to create UDFs, Hence it won't allow compilation. This questions emphasis on understanding the trade-offs between different UDF types and their performance implications within the Snowflake architecture.

by Winifred at Aug 20, 2025, 04:55 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

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.

0
0
0
10