A cloud administrator needs to provision a new Compute Engine virtual machine named `web-server-01` using the Google Cloud CLI (`gcloud`). The instance must be configured with the `e2-standard-4` machine type. Which command flag must be included in the `gcloud compute instances create` command to specify this machine configuration?
- --machine-type=e2-standard-4Cevap
- B--instance-type=e2-standard-4
- C--flavor=e2-standard-4
- D--custom-vm=e2-standard-4
Cevap
The correct option is `--machine-type=e2-standard-4` because `--machine-type` is the mandatory Google Cloud CLI flag for setting the virtual machine configuration specs during creation.
The `--machine-type` flag is the exact gcloud parameter designed to select predefined compute shapes (e.g., `e2-standard-4`) or custom machine specifications during instance creation.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine VM Provisioning via gcloud CLI