ALL is correct. https://docs.snowflake.com/en/sql-reference/user-defined-functions.html
Snowflake currently supports the following languages for writing UDFs:
Java: A Java UDF lets you use the Java programming language to manipulate data and return either scalar or tabular results.
JavaScript: A JavaScript UDF lets you use the JavaScript programming language to manipulate data and return either scalar or tabular results.
Python: A Python UDF lets you use the Python programming language to manipulate data and return either scalar or tabular results.
SQL: A SQL UDF evaluates an arbitrary SQL expression and returns either scalar or tabular results.
User-defined functions (UDFs) let you extend the system to perform operations that are not available through the built-in, system-defined functions provided by Snowflake. Snowflake currently supports the following languages for writing UDFs:
SQL: A SQL UDF evaluates an arbitrary SQL expression and returns either scalar or tabular results.
JavaScript: A JavaScript UDF lets you use the JavaScript programming language to manipulate data and return either scalar or tabular results.
Java: A Java UDF lets you use the Java programming language to manipulate data and return either scalar or tabular results.
For the SnowPro Core exam, the two correct languages that can be used to implement Snowflake User Defined Functions (UDFs) are:
B. Javascript
C. SQL
Here's the explanation:
Supported languages for UDFs:
1. SQL:
- Most common type of UDF
- Written in SQL/ANSI syntax
- Used for scalar and table functions
- Runs natively in Snowflake
2. Javascript:
- Supports more complex logic
- Runs in secure sandbox environment
- Can handle advanced calculations
- Allows for more programming flexibility
The incorrect options:
- A. Java: Not supported for UDFs in Snowflake
- D. Python: Not supported for UDFs (Note: Python is supported for Stored Procedures, but not for UDFs)
Key points for the exam:
- Only SQL and Javascript are supported for UDFs
- Don't confuse UDF language support with Stored Procedure language support
- JavaScript UDFs run in a secure execution environment
- SQL UDFs are most commonly used
All answers are correct. Also Java and Javascript are supported.
https://docs.snowflake.com/en/developer-guide/udf/udf-overview#label-udf-supported-languages
Here are the languages you can use to implement Snowflake User Defined Functions (UDFs) (choose two):
A. Java (Most Voted)
C. SQL (Most Voted)
Snowflake supports the following languages for creating UDFs:
SQL: You can write UDFs directly in standard SQL, allowing you to perform calculations or transformations within your queries.
Java: Snowflake provides a Java API for developing UDFs. This option is useful for complex logic or functionalities that might be challenging to implement purely in SQL.
Here's why the other options are not supported for UDF creation in Snowflake:
B. Javascript: While JavaScript is a popular language, Snowflake doesn't currently support JavaScript for UDF development.
D. Python: Similar to Javascript, Python is not a supported language for UDFs in Snowflake at this time.
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.
jveag
Highly Voted 2 years, 2 months agoKarBiswa
1 year, 9 months agoVenkataPhaniPavanKumar
9 months, 3 weeks agomoon2351
Highly Voted 2 years, 10 months agokentucky13caa
Most Recent 2 days, 16 hours agoWydad_19
1 week, 5 days agodSilu
1 month agomackel
1 month, 1 week agohotflake
3 months, 2 weeks agoMallikharjuna452
4 months agolevisn1
5 months agopranalig
5 months agoStevec80
6 months, 1 week agosushant02
7 months, 1 week agoAlex_Ovidiu
7 months, 2 weeks agoLena_Frazier
9 months, 3 weeks agosandy91
10 months, 1 week agozephyrvz
1 year agosaikot
1 year, 2 months ago