Databricks Certified Data Engineer Associate · Free Practice Question Easy

Question 37

Which of the following code blocks can a data engineer use to create a user defined function (UDF) ?

  • A

    CREATE FUNCTION plus_one(value INTEGER)

    RETURNS INTEGER

    RETURN value +1;

  • B

    CREATE UDF plus_one(value INTEGER)

    RETURN value +1;

  • C

    CREATE FUNCTION plus_one(value INTEGER)

    RETURN value +1

  • D

    CREATE UDF plus_one(value INTEGER)

    RETURNS INTEGER

    RETURN value +1;

Reveal correct answer

Correct answer: A

Explanation

The correct syntax to create a UDF is:



Study materials from our exam preparation course on Udemy:

Hands-on


Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need