PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #209
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #209: Real Exam Question with Answer & Explanation
The correct answer is A: Create a build trigger with the \d+\.\d+\.\d+ tag pattern.. \d+\.\d+\.\d+ matches semantic versioning (e.g., 1.2.3), which you use for releases. A tag pattern ensures the trigger only runs on release tags, not on development branches. This setup minimizes operational overhead by automating deployments only when a release is tagged.
Question
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?
Options
- ACreate a build trigger with the \d+\.\d+\.\d+ tag pattern.
- BCreate a build trigger with the \d+\.\d+\.\d+ branch pattern.
- CCreate a build trigger with the .* tag pattern.
- DCreate a build trigger with the branch pattern.
Explanation
\d+.\d+.\d+ matches semantic versioning (e.g., 1.2.3), which you use for releases. A tag pattern ensures the trigger only runs on release tags, not on development branches. This setup minimizes operational overhead by automating deployments only when a release is tagged.
Topics
Community Discussion
No community discussion yet for this question.