Complete the code to create a Snowflake task that runs every hour.
CREATE OR REPLACE TASK hourly_task
WAREHOUSE = my_warehouse
SCHEDULE = [1]
AS
CALL refresh_data();The schedule '1 HOUR' sets the task to run every hour, ensuring data freshness hourly.
Complete the code to resume the Snowflake task after creation.
ALTER TASK hourly_task [1];RESUME activates the task so it can run on its schedule.
Fix the error in the task creation by choosing the correct schedule syntax.
CREATE OR REPLACE TASK daily_task
WAREHOUSE = my_warehouse
SCHEDULE = [1]
AS
CALL refresh_daily_data();Snowflake expects schedule intervals like '1 DAY' for daily tasks.
Fill both blanks to create a task that runs every 30 minutes and calls the correct procedure.
CREATE OR REPLACE TASK [1] WAREHOUSE = my_warehouse SCHEDULE = [2] AS CALL refresh_half_hour_data();
The task name 'half_hour_task' and schedule '30 MINUTES' set the task to run every half hour.
Fill all three blanks to create a task that runs daily, calls the correct procedure, and resumes the task.
CREATE OR REPLACE TASK [1] WAREHOUSE = my_warehouse SCHEDULE = '[2]' AS CALL [3]; ALTER TASK [1] RESUME;
The task named 'daily_task' runs every '1 DAY' and calls 'refresh_daily_data()'. The ALTER TASK command resumes it.