Google
ASSOCIATE-CLOUD-ENGINEER · Question #26
You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory. What should you do
The correct answer is D. Stop the VM, increase the memory to 8 GB, and start the VM.. https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine- type#add_extended_memory_to_an_existing_vm_instance
Submitted by khalil_dz· Mar 30, 2026Ensuring successful operation of a cloud solution
Question
You have a virtual machine that is currently configured with 2 vCPUs and 4 GB of memory. It is running out of memory. You want to upgrade the virtual machine to have 8 GB of memory. What should you do?
Options
- ARely on live migration to move the workload to a machine with more memory.
- BUse gcloud to add metadata to the VM. Set the key to and the value
- CStop the VM, change the machine type to n1-standard-8, and start the VM.
- DStop the VM, increase the memory to 8 GB, and start the VM.
How the community answered
(21 responses)- A5% (1)
- B5% (1)
- D90% (19)
Explanation
https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine- type#add_extended_memory_to_an_existing_vm_instance
Topics
#Compute Engine#machine type#VM resize#memory upgrade
Community Discussion
No community discussion yet for this question.