ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 49 - Associate Cloud Engineer discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Stop the VM, increase the memory to 8 GB, and start the VM.
Suggested answer: D

Explanation:

In Google compute engine, if predefined machine types don't meet your needs, you can create an instance with custom virtualized hardware settings. Specifically, you can create an instance with a custom number of vCPUs and custom memory, effectively using a custom machine type. Custom machine types are ideal for the following scenarios: 1. Workloads that aren't a good fit for the predefined machine types that are available to you. 2. Workloads that require more processing power or more memory but don't need all of the upgrades that are provided by the next machine type level. In our scenario, we only need a memory upgrade. Moving to a bigger instance would also bump up the CPU which we don't need so we have to use a custom machine type. It is not possible to change memory while the instance is running so you need to first stop the instance, change the memory and then start it again. See below a screenshot that shows how CPU/Memory can be customized for an instance that has been stopped. Ref:https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type

asked 18/09/2024
Bart Sandifort
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first