
Answer-first summary for fast verification
Answer: Stop the VM, increase the memory to 8 GB, and start the VM.
To increase the memory of a virtual machine in Google Cloud Platform, you need to stop the VM first, as it is not possible to modify the memory of a running VM. Once the VM is stopped, you can increase the memory by customizing the machine type settings, and then start the VM again. This process is reflected in option D. Options A and B are not viable methods for changing the memory allocation, and option C involves changing to a machine type that includes unnecessary additional resources (more vCPUs) which is not required in this case.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As an Associate Cloud Engineer working with Google Cloud Platform (GCP), you are managing a virtual machine (VM) instance that is currently configured with 2 virtual CPUs (vCPUs) and 4 GB of memory. This VM is experiencing memory shortages and you need to upgrade its memory to 8 GB to ensure it operates efficiently. What steps should you take to upgrade the VM to 8 GB of memory?
A
Rely on live migration to move the workload to a machine with more memory.
B
Use gcloud to add metadata to the VM. Set the key to required-memory-size and the value to 8 GB.
C
Stop the VM, change the machine type to n1-standard-8, and start the VM.
D
Stop the VM, increase the memory to 8 GB, and start the VM.
No comments yet.