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

45 minutes, 2 seconds remaining!

GCP Professional Data Engineer Practice Question

Your team keeps Beam pipeline code and the Airflow DAG that invokes it in a single Git repository. You need a CI/CD workflow that automatically runs tests, builds an immutable Flex Template image, deploys the template and DAG to the dev Cloud Composer environment, and, after manual sign-off, promotes the exact same artifacts to production. Which approach meets these requirements with the least manual effort and provides a clear rollback path?

  • Use a GitHub Actions workflow that pushes DAG files directly into the dev Composer bucket; promote to production by manually re-running the Dataflow job from the Cloud Console with the newest template.

  • Create a Cloud Build trigger on commits to main that runs a three-stage cloudbuild.yaml: (1) execute unit tests; (2) build the Flex Template image tagged with the commit SHA, generate the template JSON, and copy the JSON and DAG file to the dev Composer bucket using gsutil cp; (3) after a Cloud Build manual approval, copy the same tagged image, template JSON, and DAG file to the production buckets with gsutil cp and gcloud composer environments storage dags import.

  • Adopt Cloud Deploy to release DAG files to Composer buckets, but continue building the Flex Template manually in Cloud Shell and launching jobs in each environment via gcloud commands.

  • Configure one Cloud Build trigger that always builds the Flex Template with the "latest" tag and uploads the template JSON and DAG file simultaneously to both dev and prod Composer buckets on every commit, skipping any approval steps.

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