🔥 3-day streak
Snowflake SnowPro Core (COF-C03)49 / 148
Question 49 of 148
A data engineer needs to create a scalar UDF that parses a URL string, extracts the query parameters into a set of key-value pairs, and returns a formatted VARIANT. The logic requires procedural string manipulation with loops and conditional branching that is awkward to express in pure SQL. Performance on large row counts is a concern, but the function must remain a scalar UDF callable in SELECT statements. Which approach best fits these requirements?
Reviewed for accuracy · Report an issueNext question