Google Cloud Certified Associate Cloud Engineer Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Google Cloud Certified Associate Cloud Engineer Exam with flashcards and multiple choice questions. Each question includes hints and explanations to help you study effectively. Get ready to pass your certification exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


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?

  1. 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.

  2. B. Use the gcloud compute ssh command.

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

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

The correct answer is: 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.