Topic 1 Question 219
You orchestrate ETL pipelines by using Cloud Composer. One of the tasks in the Apache Airflow directed acyclic graph (DAG) relies on a third-party service. You want to be notified when the task does not succeed. What should you do?
Assign a function with notification logic to the on_retry_callback parameter for the operator responsible for the task at risk.
Configure a Cloud Monitoring alert on the sla_missed metric associated with the task at risk to trigger a notification.
Assign a function with notification logic to the on_failure_callback parameter tor the operator responsible for the task at risk.
Assign a function with notification logic to the sla_miss_callback parameter for the operator responsible for the task at risk.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: C
- The on_failure_callback is a function that gets called when a task fails.
- Assigning a function with notification logic to this parameter is a direct way to handle task failures.
- When the task fails, this function can trigger a notification, making it an appropriate solution for the need to be alerted on task failures.
👍 4raaad2024/01/04 - 正解だと思う選択肢: C
Direct Trigger:
The on_failure_callback parameter is specifically designed to invoke a function when a task fails, ensuring immediate notification. Customizable Logic:
You can tailor the notification function to send emails, create alerts, or integrate with other notification systems, providing flexibility.
👍 3e70ea9e2023/12/30
シャッフルモード