Google Cloud Certified Associate Cloud Engineer Practice 2025 - Free Cloud Engineer Practice Questions and Study Guide

Question: 1 / 400

You need to connect to one of your Compute Engine instances using SSH. You don't have an SSH key deployed yet. In the fewest steps possible, what's the easiest way to connect to the app?

A. Create a key with the ssh-keygen command. Upload the key to the instance. Run gcloud compute instances list to get the IP address of the instance, then use the ssh command.

B. Use the gcloud compute ssh command.

The easiest way to connect to your Compute Engine instance using SSH is to use the gcloud compute ssh command. This command automatically generates a key pair, uploads the public key to the instance, and uses the private key to establish a secure connection. Option A is incorrect because it requires you to manually create a key and upload it to the instance. Option C is also incorrect because it adds an unnecessary step of creating a key before using the gcloud compute ssh command. Option D is incorrect because it only provides the IP address of the instance and does not include the gcloud command, which is necessary for establishing a secure connection.

Get further explanation with Examzify DeepDiveBeta

C. Create a key with the ssh-keygen command. Then use the gcloud compute ssh command.

D. Run gcloud compute instances list to get the IP address of the instance, then use the ssh command.

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy