ExamGecko
Question list
Search
Search

Question 24 - DSA-C02 discussion

Report
Export

Which of the following Snowflake parameter can be used to Automatically Suspend Tasks which are running Data science pipelines after specified Failed Runs?

A.
SUSPEND_TASK
Answers
A.
SUSPEND_TASK
B.
SUSPEND_TASK_AUTO_NUM_FAILURES
Answers
B.
SUSPEND_TASK_AUTO_NUM_FAILURES
C.
SUSPEND_TASK_AFTER_NUM_FAILURES
Answers
C.
SUSPEND_TASK_AFTER_NUM_FAILURES
D.
There is none as such available.
Answers
D.
There is none as such available.
Suggested answer: C

Explanation:

Automatically Suspend Tasks After Failed Runs

Optionally suspend tasks automatically after a specified number of consecutive runs that either fail or time out. This feature can reduce costs by suspending tasks that consume Snowflake credits but fail to run to completion. Failed task runs include runs in which the SQL code in the task body either produces a user error or times out. Task runs that are skipped, canceled, or that fail due to a sys-tem error are considered indeterminate and are not included in the count of failed task runs.

Set the SUSPEND_TASK_AFTER_NUM_FAILURES = num parameter on a standalone task or the root task in a DAG. When the parameter is set to a value greater than 0, the following behavior applies to runs of the standalone task or DAG:

Standalone tasks are automatically suspended after the specified number of consecutive task runs either fail or time out.

The root task is automatically suspended after the run of any single task in a DAG fails or times out the specified number of times in consecutive runs.

The parameter can be set when creating a task (using CREATE TASK) or later (using ALTER TASK). The setting applies to tasks that rely on either Snowflake-managed compute resources (i.e. serverless compute model) or user-managed compute resources (i.e. a virtual warehouse).

The SUSPEND_TASK_AFTER_NUM_FAILURES parameter can also be set at the account, database, or schema level. The setting applies to all standalone or root tasks contained in the modified object. Note that explicitly setting the parameter at a lower (i.e. more granular) level overrides the parameter value set at a higher level.

asked 23/09/2024
Francinilo Leitao Ferreira
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first