Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 359

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

    Correct Answer: C

    To execute a series of SQL statements using a task, the most efficient way is to create a stored procedure that combines all the necessary SQL statements and then invoke this stored procedure from within the task. This ensures that all statements are executed in sequence as part of a single procedure call, providing better modularity and maintainability. Creating multiple tasks or attempting to use a task with direct SQL statements or sequences of stored procedures invocations is not ideal. Therefore, using a stored procedure with multiple SQL statements inside and invoking it from the task is the correct approach.

Discussion
halolOption: C

C is the answer

fahfouhi94Option: C

C is correct

sailooOption: C

https://community.snowflake.com/s/question/0D53r00009kC6WhCAK/can-a-task-have-multiple-sql-queries C is the answer

_yyuktaOption: C

C is correct

MultiCloudIronManOption: C

correct