nerdexam
Snowflake

COF-C02 · Question #300

Which languages requite that User-Defined Function (UDF) handlers be written inline? (Select TWO).

The correct answer is B. Javascript E. SQL. In Snowflake UDFs, 'inline' means the handler code is embedded directly within the CREATE FUNCTION statement itself. JavaScript and SQL UDFs only support inline handlers - there is no mechanism to reference an external staged file containing their logic. Java, Scala, and Python…

Data Transformations

Question

Which languages requite that User-Defined Function (UDF) handlers be written inline? (Select TWO).

Options

  • AJava
  • BJavascript
  • CScala
  • DPython
  • ESQL

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    93% (51)
  • C
    4% (2)
  • D
    2% (1)

Explanation

In Snowflake UDFs, 'inline' means the handler code is embedded directly within the CREATE FUNCTION statement itself. JavaScript and SQL UDFs only support inline handlers - there is no mechanism to reference an external staged file containing their logic. Java, Scala, and Python UDFs, by contrast, support both inline handlers (code written directly in the CREATE FUNCTION body) and staged handlers (pre-compiled .jar files or .py files uploaded to a Snowflake stage and referenced by the function definition).

Topics

#UDFs#Snowflake UDF Languages#Inline Code#Data Transformations

Community Discussion

No community discussion yet for this question.

Full COF-C02 Practice