Topic 1 Question 36
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?
Log in to a server, and iterate on the fox locally
Revert the source code change, and rerun the deployment pipeline
Log into the servers with the bad code change, and swap in the previous code
Change the instance group template to the previous one, and delete all instances
ユーザの投票
コメント(17)
Too many responses saying B is the answer - I wonder if GCP pays people to provide the wrong answers on this website. It's clearly D, MIG templates support versioning, they were created to solve this exact problem. You simply select the previous template version, set that as the new deployment, and it will roll back the KPI depriving deployment and roll out the previous working deployment. The only part of D I don't like is the "terminate all instances" since you should engage in a rolling deployment, but if it's not a live website I suppose that would be fine. https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups
👍 54ewredtrfygi2020/08/06Let's go with option elimination
A. Log in to a server, and iterate on the fix locally >> Long step, hence eliminate
B. Revert the source code change and rerun the deployment pipeline >> This revert will be logged in the source repo. Will go with this way although D also is correct.
C. login to the servers with the bad code change, and swap in the previous code >> C is manually doing what can be automatically done by B and C, hence eliminate.
D. Change the instance group template to the previous one and delete all instances >> This is similar to B but why manually do something which is automated. Hence eliminate. But is also correct. But B is better from code lifecycle perspective.
Hence B
👍 54amxexam2021/08/29- 正解だと思う選択肢: B
I only have 1 thing to say: CI / CD. Why creating a pipeline if you're fixing the issue manually.
👍 3zetalexg2022/12/11
シャッフルモード