GCP Professional Data Engineer Practice Question

Your team maintains a Java Apache Beam pipeline packaged as a Dataflow Flex Template. You need to introduce CI/CD with Cloud Build so that when code is merged to the main branch it

  1. compiles and unit-tests the code, builds a container image, pushes it to Artifact Registry, and writes a versioned Flex Template to a central Cloud Storage bucket;
  2. automatically launches the template in the development project;
  3. promotes exactly the same template to production only after an explicit human approval, passing prod-specific --parameters values without rebuilding the image or template. How should you design the Cloud Build implementation to satisfy these requirements with minimal duplicate work?
  • Create a single Cloud Build trigger on main whose build steps deploy to dev, then pause for a Cloud Build approval in the middle of the build before continuing to deploy the same template to prod.

  • Define two Cloud Build triggers: the first runs on main, builds and pushes the image, creates the versioned Flex Template, and launches it in the dev project; the second trigger starts only after the template version is available, requires manual approval, and then launches the same template in the prod project with prod-specific parameters.

  • Use Cloud Build only to package a JAR and push it to Cloud Storage; orchestrate template creation and deployments for both dev and prod in a Cloud Composer DAG, sending a manual email confirmation before the prod run.

  • Adopt Cloud Deploy release pipelines that rebuild the container image and Flex Template separately for dev and prod tracks, inserting a manual promotion gate for production.

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