Google Cloud Professional Cloud Architect — Question 84
You created a pipeline that can deploy your source code changes to your infrastructure in instance groups for self-healing. One of the changes negatively affects your key performance indicator. You are not sure how to fix it, and investigation could take up to a week.
What should you do?
Answer options
- 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
Correct answer: B
Explanation
The best option is to revert the source code change and rerun the deployment pipeline, as this ensures a quick rollback to a stable version without manual intervention on each server. The other options involve either local fixes that could be time-consuming and error-prone or actions that do not guarantee a fast recovery, such as deleting instances.