An infrastructure team is deploying a Compute Engine instance named `fin-db-01` in zone `us-central1-a` to host a compliance-sensitive relational database engine. Company policy mandates strict hardware security and capacity specifications:
1. The instance must be provisioned with Shielded VM security features enabled, specifically Secure Boot and Virtual Trusted Platform Module (vTPM).
2. To optimize resource utilization, the VM must use a custom machine configuration with exactly 6 vCPUs and 24 GB (24,576 MB) of RAM.
Which `gcloud` command correctly provisions the Compute Engine instance according to these requirements?
- gcloud compute instances create fin-db-01 --zone=us-central1-a --machine-type=e2-custom-6-24576 --shielded-secure-boot --shielded-vtpmCevap
- Bgcloud compute instances create fin-db-01 --zone=us-central1-a --custom-cpu=6 --custom-ram=24GB --enable-secure-boot --enable-vtpm
- Cgcloud compute instances create fin-db-01 --zone=us-central1-a --machine-type=e2-custom-6-24576 --shielded-secure-boot --shielded-vtpm --provisioning-model=SPOT
- Dgcloud compute instances create fin-db-01 --zone=us-central1-a --machine-type=e2-custom-6-24576 --shielded-secure-boot --shielded-vtpm --scopes=roles/owner
Cevap
The command specifying `gcloud compute instances create fin-db-01 --zone=us-central1-a --machine-type=e2-custom-6-24576 --shielded-secure-boot --shielded-vtpm` correctly provisions the custom machine type and Shielded VM options.
The correct command provisions the virtual machine with the specified custom machine type configuration (`e2-custom-6-24576` representing 6 vCPUs and 24,576 MB RAM) and correctly sets the Shielded VM security capabilities using valid gcloud CLI flags (`--shielded-secure-boot` and `--shielded-vtpm`).
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Instance Provisioning Flags and Machine Specifications