Soru

Zorluk: KolayManaging Compute Engine Resources

You need to increase the vCPU and memory allocated to an existing standalone Compute Engine virtual machine (VM) instance by changing its machine type. Which action must be taken on the VM instance before its machine type can be updated?

  1. Stop the VM instance.Cevap
  2. B
    Submit a quota increase request via the Cloud Console.
  3. C
    Assign the primitive Owner role to the instance service account.
  4. D
    Convert the VM instance into a Spot VM.

Cevap

Stop the VM instance prior to modifying its machine type attribute.
To modify the machine type of a standalone Compute Engine instance, the instance must be shut down and placed in the STOPPED (TERMINATED) state. Once stopped, the vCPU and memory configuration can be modified using the Cloud Console or gcloud compute instances set-machine-type, after which the instance can be restarted.

Adım Adım Çözüm

1
Identify the current execution state of the Compute Engine instance.
The instance is determined to be in the RUNNING state.
Machine type modifications cannot be applied to an active, running virtual machine.
2
Stop the Compute Engine instance using the gcloud command or Cloud Console.
The instance transitions to the TERMINATED state.
Compute Engine requires the instance resources to be halted so the underlying host hardware allocation can be reconfigured.
3
Update the machine type attribute and restart the instance.
The instance boots with the newly specified vCPU and memory resources.
Once stopped, configuration changes take effect upon the next instance launch.

Anahtar Kavram

Modifying Compute Engine Instance Attributes
Bu soruyu puanla