GoogleGoogle Professional Data Engineer (PDE) Certification·EN·Updated 21 Aug 2026
You have two Cloud Composer environments (dev and prod) and a Git repo for DAG code. You want DAGs deployed automatically to Composer when a specific Git tag is pushed. What deployment workflow should you implement?
Choose an answer
Tap an option to check your answer.
Correct answer: 1. Use Cloud Build to copy the code of the DAG to the Cloud Storage bucket of the development instance for DAG testing. 2. If the tests pass, use Cloud Build to copy the code to the bucket of the production instance..
Why this is the answer
The correct approach leverages Cloud Build to automate DAG deployment. Cloud Composer environments automatically load DAGs placed in their designated Cloud Storage buckets. Therefore, the most straightforward and recommended method is to use Cloud Build to copy the DAG code from your Git repository to the development Composer environment's Cloud Storage bucket for testing. If tests are successful, Cloud Build then copies the same tested code to the production Composer environment's Cloud Storage bucket. The incorrect options involve using KubernetesPodOperator or GKE directly for DAG deployment, which is not how Composer manages DAGs. Composer abstracts away the underlying GKE cluster for DAG management, relying on the Cloud Storage bucket for DAG synchronization.