GCP Professional Data Engineer Practice Question

Your analytics team must orchestrate a nightly ETL workflow in Cloud Composer. The workflow must:

  1. Launch a Dataflow Flex Template that loads JSON files from Cloud Storage into a staging BigQuery table.
  2. Run a BigQuery SQL transformation after the Dataflow job successfully completes.
  3. Delete the processed objects from the Cloud Storage bucket.
  4. Automatically retry the Dataflow step up to three times, using an exponential back-off strategy, if the job fails. You want to minimize custom code and rely on built-in Airflow integrations with Google Cloud services. Which approach best meets these requirements?
  • Configure Pub/Sub notifications that trigger individual Cloud Functions for each step and connect them to Cloud Composer with TriggerDagRunOperator; use Dead Letter Topics for retries.

  • Create BashOperator tasks that invoke gcloud dataflow flex-template run, bq query, and gsutil rm commands in sequence, setting retries at the DAG level for failure handling.

  • Use PythonOperator functions that programmatically call the Dataflow SDK, run the BigQuery API through the Google client library, and delete files, implementing custom retry logic inside the Python code.

  • Build a DAG that uses DataflowStartFlexTemplateOperator with retries=3 and retry_exponential_backoff enabled, followed by a DataflowJobStatusSensor, a BigQueryInsertJobOperator, and a GoogleCloudStorageDeleteOperator, relying on the Composer environment's default service account for authentication.

GCP Professional Data Engineer
Ingesting and processing the data
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot