
Answer-first summary for fast verification
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.
The correct answer is A. This approach leverages Cloud Build to manage the deployment process. First, it deploys the code to the Cloud Storage bucket of the development instance for testing purposes. If the tests pass successfully, the same Cloud Build process is used to copy the code to the Cloud Storage bucket of the production instance. This method aligns well with the standard practices for managing DAG deployments in Cloud Composer. The other options involve unnecessary complexities such as using the Google Kubernetes Engine (GKE) and containerizing the code, which are not standard approaches for Cloud Composer DAG deployment.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your task is to establish a CI/CD pipeline for managing directed acyclic graphs (DAGs) in Google Cloud Composer. Currently, your team operates two Cloud Composer instances: one for development and another for production. The DAG code is maintained and developed in a Git repository. You want to automate the deployment of the DAGs to Cloud Composer as soon as a specific tag is pushed to the Git repository. What actions should you take to achieve this?
A
B
C
D