Flashcardsfor IT Certifications

D3: Connecting to & Viewing Compute Engine Instances

Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards

Question
How do you SSH with gcloud?
1 / 11

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 11 Connecting to & Viewing Compute Engine Instances practice questions and answers
  1. How do you SSH with gcloud?
    gcloud compute ssh INSTANCE --zone=ZONE.
  2. How do you SSH to a VM without an external IP?
    Identity-Aware Proxy TCP forwarding: gcloud compute ssh INSTANCE --tunnel-through-iap.
  3. Which firewall range must allow IAP?
    Ingress from 35.235.240.0/20 on the needed port (e.g. 22).
  4. Which role allows IAP tunneling?
    IAP-secured Tunnel User (roles/iap.tunnelResourceAccessor).
  5. How do you connect to a Windows VM?
    RDP after setting a password with gcloud compute reset-windows-password.
  6. How do you troubleshoot a VM that won't boot or has no network?
    Use the serial console or view serial port output.
  7. How do you list running VMs?
    gcloud compute instances list (optionally --filter=status=RUNNING).
  8. How do you view VM details?
    gcloud compute instances describe INSTANCE --zone=ZONE.
  9. How do you stop/start a VM?
    gcloud compute instances stop/start INSTANCE --zone=ZONE.
  10. Where can you see VMs in the console?
    Compute Engine → VM instances.
  11. What's the advantage of IAP over bastion hosts?
    No public IPs or bastion VMs; access controlled by IAM.