A VM currently has 2 vCPUs and 4 GB RAM and is running out of memory. You want the VM to have 8 GB RAM. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Stop the VM, increase the memory to 8 GB, and start the VM..
Why this is the answer
To increase a VM's memory, you must first stop the instance. Once stopped, you can modify its memory allocation to 8 GB. After the change, restart the VM for the new configuration to take effect. This is a standard procedure for adjusting VM resources in most cloud environments. Relying on live migration is not a method for increasing a VM's resources; it's for moving a running VM. Adding metadata does not change hardware specifications. Changing the machine type to n1-standard-8 would give 8 vCPUs and 30 GB RAM, which is more than the desired 8 GB RAM and also changes the vCPU count, making it an inefficient and incorrect solution if only memory needs to be adjusted.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed