You need to deploy a new Compute Engine virtual machine instance named 'web-server' in the zone 'us-central1-a' using the Google Cloud CLI. Which gcloud command should you run?
- gcloud compute instances create web-server --zone=us-central1-aCevap
- Bgcloud compute instances create web-server --region=us-central1-a
- Cgcloud compute vms create web-server --zone=us-central1-a
- Dgcloud instances create web-server --zone=us-central1-a
Cevap
The command 'gcloud compute instances create web-server --zone=us-central1-a' correctly deploys the VM instance to the specified zone.
To create a Compute Engine instance using the Google Cloud CLI, the command must target the 'gcloud compute instances create' resource path and pass the target zone using the '--zone' flag.
Adım Adım Çözüm
Anahtar Kavram
Deploying Compute Engine Virtual Machines via gcloud CLI syntax