SnowPro Core Certification — Question 528

What is the difference between a stored procedure and a User-Defined Function (UDF)?

Answer options

Correct answer: A

Explanation

The correct answer is A because stored procedures are designed to perform tasks that can include executing database operations, while UDFs are intended to return values without performing such operations. Options B and C are incorrect because stored procedures do not require a return value, and UDFs can indeed return values that can be used in SQL statements. Option D is also incorrect as multiple UDFs can be utilized within a single statement, but each can only execute one at a time.