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

2 hours, 31 minutes remaining!

GCP Professional Data Engineer Practice Question

Your team stores Apache Beam pipelines in a GitHub repository. You need to trigger a Cloud Build job only when code is pushed to the main branch-ignoring all other branches and tags-and run the build only if at least one file in the dataflow/ directory (or its subfolders) has changed. The build must execute under a dedicated Cloud Build service account that has the minimum IAM roles required to launch Dataflow jobs and upload artifacts to Cloud Storage (roles/dataflow.admin and roles/storage.admin). Which trigger configuration meets all of these requirements?

  • Set up a GitHub App trigger for "push to tag" events matching v.*, without includedFiles filtering, and let the default Cloud Build service account run the build.

  • Create a Cloud Source Repositories trigger that fires on any push (branch regex ".*"), omit file-path filters, and allow the default Compute Engine default service account to execute the build.

  • Configure a GitHub App trigger that starts on pull_request events, rely on Cloud Build's default service account with the broader roles/editor role, and skip path filtering.

  • Define a GitHub App Cloud Build trigger that listens for the "push to branch" event, uses the branch regex ^main$, sets includedFiles to ["dataflow/**"], and runs under a custom Cloud Build service account granted only roles/dataflow.admin and roles/storage.admin.

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