professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A data engineering team is deploying a critical daily data pipeline in Google Cloud Composer. The pipeline extracts transactional records, transforms them, and writes them to BigQuery.
The pipeline must satisfy the following operational resilience and error handling requirements:
Which configuration should you implement in the DAG definition?
Define default_args with retries and retry_exponential_backoff=True, set depends_on_past=True on the relevant tasks, and configure the on_retry_callback parameter with an alerting and cleanup function.
Adjust [scheduler]task_queued_timeout to match [core]parallelism, set depends_on_past=False, and configure the on_execute_callback parameter with an alerting function.
Define default_args with retries and retry_exponential_backoff=True, set wait_for_downstream=True on the relevant tasks, and configure the on_failure_callback parameter with an alerting and cleanup function.
Configure wait_for_downstream=True, set catchup=True with a dynamic start_date=datetime.now(), and configure the sla_miss_callback parameter with an alerting function.
Define default_args with retries and retry_exponential_backoff=True, set depends_on_past=True on the relevant tasks, and configure the on_retry_callback parameter with an alerting and cleanup function.
Adjust [scheduler]task_queued_timeout to match [core]parallelism, set depends_on_past=False, and configure the on_execute_callback parameter with an alerting function.
Define default_args with retries and retry_exponential_backoff=True, set wait_for_downstream=True on the relevant tasks, and configure the on_failure_callback parameter with an alerting and cleanup function.
This configuration leverages Apache Airflow's built-in resilience and callback mechanisms within Cloud Composer to manage task retries, cross-run dependencies, and terminal failure handling.
retries alongside retry_exponential_backoff=True ensures that if a task fails or is interrupted during Cloud Composer maintenance windows, Airflow retries the task while exponentially increasing the delay (retry_delay) between attempts to prevent hammering transiently degraded systems.wait_for_downstream=True enforces that a task in DAG run N cannot run until all tasks immediately downstream of that same task in DAG run N-1 have succeeded, maintaining strict pipeline integrity across consecutive runs.on_failure_callback hook triggers exclusively when a task reaches a terminal failed state (after all allotted retries have been exhausted), preventing premature alert noise during intermediate retries.This approach uses standard, declarative DAG parameters without requiring custom scheduling loops or external monitoring agents, providing a robust operational error handling posture.
Configure wait_for_downstream=True, set catchup=True with a dynamic start_date=datetime.now(), and configure the sla_miss_callback parameter with an alerting function.