🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 57 minutes remaining!

GCP Professional Data Engineer Practice Question

Your team uses Cloud Composer (Airflow 2) to orchestrate a nightly pipeline that stages CSV files from Cloud Storage into BigQuery, transforms them, and then publishes dashboards. Compliance now requires the pipeline to stop and alert operations when more than 0.5 % of rows are missing the mandatory customer_id field or when any transaction_date is set in the future. The team wants to reuse managed services and write as little custom code as possible. Which design meets these requirements?

  • Replace the load step with a custom Dataflow Flex Template that calculates data-quality metrics and publishes them to Pub/Sub; a Cloud Run service reads the metrics, decides whether to continue, and triggers later DAG tasks through Cloud Tasks.

  • Add a BigQueryCheckOperator in the DAG immediately after the staging load. The task runs SQL assertions for the null-rate and future-date rules, fails if they are violated, triggers Composer's built-in alerts, and all downstream tasks depend on its success.

  • Create a Cloud Logging log-based metric that counts BigQuery load-job errors; configure an alerting policy to notify operators and let the remaining DAG tasks run regardless of the metric value.

  • Define a NOT NULL constraint on customer_id in the target table and schedule a nightly BigQuery job to delete any rows with future transaction_date values after loading completes; continue running transformations even if deletions occur.

GCP Professional Data Engineer
Maintaining and automating data workloads
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