
Google Associate Cloud Engineer
Get started today
Ultimate access to all questions.
You need to connect to one of your Compute Engine instances using SSH. You’ve already authenticated gcloud, but you don’t have an SSH key deployed yet. What’s the quickest method to establish an SSH connection?
You need to connect to one of your Compute Engine instances using SSH. You’ve already authenticated gcloud, but you don’t have an SSH key deployed yet. What’s the quickest method to establish an SSH connection?
Real Exam
Explanation:
The correct answer is B because gcloud compute ssh
is the most straightforward and efficient method to establish an SSH connection. It automatically handles key generation and adds the key to the project's metadata for authentication. This command simplifies the process by eliminating the need for manual key management and IP address lookup, making it the quickest way to connect. For more details, refer to the GCP documentation on gcloud compute ssh
.