Google Cloud Professional Cloud DevOps Engineer — Question 194

You recently created a Cloud Build pipeline for deploying Terraform code stored in a GitHub repository. You make Terraform code changes in short-lived branches and sometimes use tags during development. You tag releases with a semantic version when they are ready for deployment. You require your pipeline to apply the Terraform code whenever there is a new release, and you need to minimize operational overhead. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because using the \d+\.\d+\.\d+ tag pattern specifically targets semantic version tags for releases, ensuring that the pipeline triggers only on these tagged releases. Options B and D would not trigger on tags, while option C could trigger on any tag, which may not be desirable for managing specific releases.