D2: Launching Compute Engine Instances
Google Cloud Associate Cloud Engineer exam practice questions · 13 flashcards
Question
How do you create a VM with gcloud?
1 / 13
Tip: Space flips the card, ← / → navigate.
Show all 13 Launching Compute Engine Instances practice questions and answers
- How do you create a VM with gcloud?gcloud compute instances create NAME --zone=ZONE --machine-type=TYPE --image-family=FAMILY --image-project=PROJECT.
- What is the availability policy?Settings for host maintenance behavior, automatic restart and provisioning model.
- onHostMaintenance options?MIGRATE (live migrate, default) or TERMINATE.
- What does automaticRestart do?Restarts the VM if it's terminated by a non-user event (e.g. hardware failure).
- Which VMs can't live migrate?Spot/preemptible VMs and many GPU VMs; they use TERMINATE.
- Machine families?General-purpose (E2, N2, N4, C3...), compute-optimized (C2/H3), memory-optimized (M), accelerator-optimized (A/G).
- How are SSH keys added via metadata?As project-wide or instance-level ssh-keys metadata.
- How do you block project-wide SSH keys on a VM?Set block-project-ssh-keys=TRUE in instance metadata.
- What's the recommended alternative to metadata SSH keys?OS Login (IAM-based).
- What is a startup script?A script in metadata (startup-script) that runs at boot.
- How do you add labels to VMs?--labels=key=value; used for organization and billing.
- What is deletion protection?A setting preventing accidental VM deletion.
- What is a sole-tenant node?A physical server dedicated to your VMs, for licensing or compliance.