Google Cloud Professional Data Engineer — Question 231

You are creating the CI/CD cycle for the code of the directed acyclic graphs (DAGs) running in Cloud Composer. Your team has two Cloud Composer instances: one instance for development and another instance for production. Your team is using a Git repository to maintain and develop the code of the DAGs. You want to deploy the DAGs automatically to Cloud Composer when a certain tag is pushed to the Git repository. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it outlines a straightforward approach of transferring code to the development instance for testing and, upon successful tests, moving it to production. Options B and C involve unnecessary complexity by introducing containerization and GKE deployment, which is not required for the specified task. Option D mixes the correct testing process with an inappropriate production deployment method.