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?
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.
Disclaimer
This is a practice question. There is no guarantee of coming this question in the certification exam.
Answer
D
Explanation
A. Disable the CI pipeline and revert to manually building and pushing the artifacts.
(It didn’t mention anything urgent, so no need to mitigate in this non-SRE way.)
B. Change the CI pipeline to push the artifacts is Container Registry instead of Docker Hub.
(It worked perfectly without Container Registry, why change it?)
C. Upload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix the issue.
(Upload the YAML to Cloud Storage won’t identify the issue for you.)
D. Run a Git compare between the previous and current Cloud Build Configuration files to find and fix the bug.
(This option allows you to compare the previous and current Cloud Build Configuration files and find what has been changed and understand what could be causing the issue. After identifying the problem, you can fix it and ensure that the pipeline is working correctly again. This approach is based on the SRE practices of identifying and resolving issues quickly and effectively.)