QuestionQ142

Ensuring solution and operations excellence

You created a pipeline that deploys your source-code changes to infrastructure running in self-healing instance groups. One change adversely affects your key performance indicator. You are unsure how to correct it, and investigating could take up to a week.

What should you do?

  • A Log in to a server, and iterate on the fox locally
  • B Revert the source code change, and rerun the deployment pipeline
  • C Log into the servers with the bad code change, and swap in the previous code
  • D Change the instance group template to the previous one, and delete all instances
Explanation

Restore the last known-good source revision and deploy it through the existing pipeline. This rapidly removes the harmful code while maintaining a consistent, repeatable, version-controlled state across all instances; manual server changes can create drift and may be replaced by the self-healing mechanism. Google Cloud guidance recommends controlled deployments with rollback mechanisms, and Cloud Deploy rollbacks use a prior successful release.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!