exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 49 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 49
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cesar7816
Highly Voted 4 years, 10 months ago
coldpar, why are you getting the people confused? you need to stop teh VM and modify the RAM, that's all
upvoted 65 times
iambatmanadarkknight
3 years, 3 months ago
who is coldpar
upvoted 7 times
spatidar2711
2 years, 6 months ago
He deleted his comment
upvoted 1 times
chikorita
1 year, 9 months ago
i dont think we can delete our comments
upvoted 2 times
...
...
...
...
CarlS
Highly Voted 4 years, 10 months ago
D is correct. If you pay attention to the question, option C mentions n1-standard-8. That instance type has 8vCPUs and 30 GB RAM, and we only need 8GB. On top of that, it is possible to use custom machine type to adjust current VM RAM to the value we need. Got the answer from this course I did to prepare the exam: https://www.udemy.com/course/google-cloud-associate-engineer-exam-practice-tests/?couponCode=21CDE6A4C2B95F79BD97 good luck!
upvoted 45 times
Veera_Venkata_Satyanarayana
2 years, 7 months ago
How to use coupon code carls
upvoted 2 times
...
...
warbon
Most Recent 1 week, 6 days ago
Selected Answer: C
In Google Cloud, you cannot directly modify the memory allocation for an existing VM. Instead, you must change the VM's machine type to one with the desired memory and vCPU configuration (e.g., n1-standard-8, which has 8 GB of memory). The VM needs to be stopped before making this change, and then it can be restarted. Why not other options? A (Live migration): Live migration moves workloads during maintenance but does not change the VM's memory allocation. B (Metadata change): Adding metadata does not affect memory allocation. D (Directly increasing memory): You cannot manually increase only the memory of a VM; you must select a predefined machine type.
upvoted 1 times
...
martin2099
3 months ago
C. Esto implica detener la máquina virtual, cambiar el tipo de máquina a uno que tenga 8 GB de memoria (como n1-standard-8), y luego reiniciarla.
upvoted 1 times
...
Captain1212
1 year, 5 months ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
gpais
1 year, 5 months ago
You can add extended memory only to custom machine types. Predefined machine types are not supported.
upvoted 2 times
...
samrat46
1 year, 10 months ago
D is correct. C.n1 standard8 has 30GB RAM. A&B- No vm instance stop, Hence can't be updated.
upvoted 2 times
...
Buruguduystunstugudunstuy
1 year, 11 months ago
Selected Answer: D
ANSWER D is correct because it is the correct process to follow to increase the memory of a virtual machine in the Google Cloud Platform. To increase the memory of a virtual machine, you need to first stop the VM, since it is not possible to modify the memory of a running VM. Then, you can increase the memory of the VM by editing the machine type and selecting a machine type with more memory. Once you have made the change, you can start the VM again. ANSWER A is not the best approach as it relies on live migration which can be a risky operation. ANSWER B is incorrect because adding metadata to the VM will not change the amount of memory allocated to the VM. ANSWER C is incorrect because changing the machine type to n1-standard-8 would also increase the number of vCPUs to 8, which may not be necessary and could result in overprovisioning of resources. In addition, changing the machine type would also affect the cost of the VM instance, which may not be desired. Since the primary concern in this scenario is to increase memory.
upvoted 16 times
...
cslince
2 years, 2 months ago
Selected Answer: D
Option D
upvoted 1 times
...
leogor
2 years, 3 months ago
Selected Answer: D
C is incorrect because the 8 in "n1-standard-8" means 8 cpus instead of 8 gb of ram
upvoted 3 times
...
santhu1039
2 years, 6 months ago
Selected Answer: D
D is right one
upvoted 1 times
...
haroldbenites
2 years, 8 months ago
Go for D
upvoted 1 times
...
ChiefArch
2 years, 10 months ago
The reason A is not correct is because live migration simply moves an existing VM between hosts, no attributes or properties are changed otherwise. Hence, you cannot live migrate from 1 VM type to another. https://cloud.google.com/compute/docs/instances/live-migration
upvoted 5 times
...
mchaconr
3 years, 1 month ago
To be exact... There is no "n1" option that has 2vCPU and 4GB. The closest would be n1-standard-2 with 2vCPU and 7.50GB RAM. This machine is already custom. So, option D.
upvoted 2 times
...
vishnukumartr
3 years, 2 months ago
D. Stop the VM, increase the memory to 8 GB, and start the VM.
upvoted 5 times
...
Jaira1256
3 years, 2 months ago
Ans - D
upvoted 1 times
...
Gpjha
3 years, 6 months ago
We do not have the option to increase memory in GCP VM directly. Instead, machine type needs to be changed. However, given the choices, D is the best answer here.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago