You create a Snowflake task with a schedule set to run every 10 minutes. The task runs a SQL statement that inserts data into a table. What happens if the previous run of the task is still executing when the next scheduled time arrives?
Think about how Snowflake handles overlapping task executions.
Snowflake tasks do not run concurrently. If a scheduled run time occurs while the previous run is still executing, that run is skipped. The task waits for the next scheduled time to run again.
Which of the following SQL statements correctly creates a Snowflake task that runs every hour and executes a simple insert statement?
Check the cron expression for running every hour at minute zero.
The cron expression '0 * * * * UTC' runs the task every hour at minute zero. Option D uses the correct syntax and cron expression.
You want to design a Snowflake task chain where Task A loads raw data, Task B transforms it, and Task C aggregates results. Each task should start only after the previous one completes successfully. Which architecture best achieves this?
Think about how Snowflake tasks can trigger other tasks.
Snowflake supports task dependencies where one task triggers another upon successful completion. This ensures sequential execution without overlap.
Which role must own a Snowflake task to ensure it can execute SQL statements that modify tables in a specific schema?
Consider what privileges are needed to modify data in tables.
The task owner role must have ownership or appropriate privileges on the schema and tables to perform data modifications during task execution.
You have a critical Snowflake task that runs daily to update reports. Sometimes it fails due to transient errors like network issues. What is the best practice to ensure the task recovers and completes successfully without manual intervention?
Think about automation and monitoring outside the task itself.
Snowflake tasks do not have built-in retry logic. Best practice is to use external monitoring and automation to detect failures and rerun tasks as needed.