Exam DEA-C02 Topic 1 Question 115 Discussion
Actual exam question for Snowflake's DEA-C02 exam
Question #: 115
Topic #: 1
Question #: 115
Topic #: 1
You've created a JavaScript UDF in Snowflake to perform complex string manipulation. You need to ensure this UDF can handle a large volume of data efficiently. The UDF is defined as follows:

When testing with a large dataset, you observe poor performance. Which of the following strategies, when applied independently or in combination, would MOST likely improve the performance of this UDF?

When testing with a large dataset, you observe poor performance. Which of the following strategies, when applied independently or in combination, would MOST likely improve the performance of this UDF?
Suggested Answer: A,C,E Vote an answer
Options A, C and E can all contribute to better performance. SQL UDFs benefit from Snowflake's optimized execution engine for standard operations, making them often faster than JavaScript UDFs for string manipulation when possible. Pre-compiling regular expressions (Option C) avoids redundant compilation steps during each UDF invocation. Converting to a Java UDF (Option E) gives more control over efficiency compared to JS. The option D may help, but the performance gain is not guaranteed and is more related to resource availability than the UDF's efficiency. The option B is not valid since the size of input STRING won't matter the javascript engine.
by Emmanuel at Mar 07, 2026, 05:21 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).