Modify VM Instance for Cost Optimization (Solution)

Modify VM Instance for Cost Optimization (Solution)

Overview

  • Labs are timed and cannot be paused. The timer starts when you click Start Lab.

  • The included cloud terminal is preconfigured with the gcloud SDK.

  • Use the terminal to execute commands and then click Check my progress to verify your work.

Challenge scenario

You work as a cloud administrator for a technology company that utilizes Google Cloud extensively for its operations. Today, you have been tasked with modifying a virtual machine (VM) instance to better align with updated resource requirements by using a specific General purpose Machine type with low cost.

  • Currently, you have an existing VM instance named lab-vm with high cost. Your task is to update the machine type with e2-medium suitable for the VM instance with low cost.

Click Check my progress to verify the objective.

Update the Machine type of the VM instance.


Solution of Lab

curl -LO raw.githubusercontent.com/Techcps/Google-Cloud-Skills-Boost/master/Modify%20VM%20Instance%20for%20Cost%20Optimization/techcps.sh
sudo chmod +x techcps.sh
./techcps.sh