Google Cloud Associate Cloud Engineer — Question 243

You just installed the Google Cloud CLI on your new corporate laptop. You need to list the existing instances of your company on Google Cloud. What must you do before you run the gcloud compute instances list command? (Choose two.)

Answer options

Correct answer: A

Explanation

The correct answer is A because you must authenticate your account with gcloud CLI before listing instances. Options B and C involve using service accounts or user account keys, which are not necessary for basic authentication. Options D and E are related to configuration settings but do not address the need for authentication required to run the command.