Google Cloud Professional Cloud DevOps Engineer — Question 39
You have a CI/CD pipeline that uses Cloud Build to build new Docker images and push them to Docker Hub. You use Git for code versioning. After making a change in the Cloud Build YAML configuration, you notice that no new artifacts are being built by the pipeline. You need to resolve the issue following Site
Reliability Engineering practices. What should you do?
Answer options
- A. Disable the CI pipeline and revert to manually building and pushing the artifacts.
- B. Change the CI pipeline to push the artifacts is Container Registry instead of Docker Hub.
- C. Upload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix the issue.
- D. Run a Git compare between the previous and current Cloud Build Configuration files to find and fix the bug.
Correct answer: D
Explanation
The correct answer is D, as comparing the previous and current Cloud Build Configuration files allows you to identify the specific changes that may have caused the pipeline to fail. The other options either suggest reverting to a less efficient manual process (A), changing the artifact storage location without addressing the root cause (B), or relying solely on error reporting without direct investigation of the configuration (C).