nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #1

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…

The correct answer is D. Run a Git compare between the previous and current Cloud Build Configuration files to find and. When a CI/CD pipeline fails after a configuration change, SRE best practice is to use version control to identify the problematic change. This allows for quick diagnosis or rollback to restore functionality.

Submitted by haru.x· Apr 18, 2026Applying site reliability engineering principles to a service

Question

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?

Options

  • ADisable the CI pipeline and revert to manually building and pushing the artifacts.
  • BChange the CI pipeline to push the artifacts is Container Registry instead of Docker Hub.
  • CUpload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix
  • DRun a Git compare between the previous and current Cloud Build Configuration files to find and

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    15% (6)
  • D
    74% (29)

Why each option

When a CI/CD pipeline fails after a configuration change, SRE best practice is to use version control to identify the problematic change. This allows for quick diagnosis or rollback to restore functionality.

ADisable the CI pipeline and revert to manually building and pushing the artifacts.

Disabling the CI pipeline and reverting to manual processes goes against automation principles and is not a resolution, but a workaround that reduces reliability and efficiency.

BChange the CI pipeline to push the artifacts is Container Registry instead of Docker Hub.

Changing the artifact destination is irrelevant to a pipeline not building artifacts due to a configuration error and does not address the root cause of the build failure.

CUpload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix

Uploading the YAML to Cloud Storage and using Error Reporting might help with general logging but doesn't specifically target comparing versions of a configuration file to pinpoint a recent change as effectively as Git.

DRun a Git compare between the previous and current Cloud Build Configuration files to find andCorrect

SRE principles emphasize using version control systems like Git to manage all configurations. By running a Git compare between the last known good configuration and the current non-working configuration, you can quickly pinpoint the exact change that caused the pipeline to fail, facilitating a rapid fix or rollback.

Concept tested: SRE incident management, version control, troubleshooting CI/CD

Source: https://git-scm.com/docs/git-diff

Topics

#CI/CD Troubleshooting#Configuration Management#Git Version Control#Site Reliability Engineering (SRE)

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice