SnowPro Core Certification — Question 331

How would a user execute a series of SQL statements using a task?

Answer options

Correct answer: C

Explanation

The correct answer is C because it allows for the execution of multiple SQL statements within a single stored procedure, which can be called from the task. Option A is incorrect as it suggests including multiple SQL statements directly in the task, which is not the intended use. Option B is wrong because a stored procedure can contain multiple DML statements, and it misrepresents the capabilities of stored procedures. Option D is inefficient since it requires creating multiple tasks for each SQL statement, which is not necessary.