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