Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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