Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 219 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 219
Topic #: 1
[All Professional Data Engineer Questions]

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?

  • A. Assign a function with notification logic to the on_retry_callback parameter for the operator responsible for the task at risk.
  • B. Configure a Cloud Monitoring alert on the sla_missed metric associated with the task at risk to trigger a notification.
  • C. Assign a function with notification logic to the on_failure_callback parameter tor the operator responsible for the task at risk.
  • D. Assign a function with notification logic to the sla_miss_callback parameter for the operator responsible for the task at risk.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jonty4gcp
3 months, 1 week ago
What is Task is long-running and in between stuck?
upvoted 1 times
...
Anudeep58
6 months ago
Selected Answer: C
https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/callbacks.html
upvoted 2 times
...
JyoGCP
9 months ago
Selected Answer: C
on_failure_callback
upvoted 2 times
...
datapassionate
10 months, 2 weeks ago
Selected Answer: C
on_failure_callback is invoked when the task fails https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/callbacks.html
upvoted 3 times
...
Matt_108
10 months, 2 weeks ago
Selected Answer: C
Option C to me
upvoted 1 times
...
raaad
10 months, 3 weeks ago
Selected Answer: 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.
upvoted 4 times
...
e70ea9e
11 months ago
Selected Answer: 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.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...