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.)
A.
Run gcloud auth login, enter your login credentials in the dialog window, and paste the received login token to gcloud CLI.
B.
Create a Google Cloud service account, and download the service account key. Place the key file in a folder on your machine where gcloud CLI can find it.
C.
Download your Cloud Identity user account key. Place the key file in a folder on your machine where gcloud CLI can find it.
D.
Run gcloud config set compute/zone $my_zone to set the default zone for gcloud CLI.
E.
Run gcloud config set project $my_project to set the default project for gcloud CLI.
AE (I couldn't select both).
In addition to authenticating your account (Option A) to ensure the necessary permissions, setting the default project using `gcloud config set project [Your_Project_ID]` is crucial. It guarantees that subsequent commands are executed within the intended project's context. Both steps are essential before listing instances in Google Cloud Platform: proper authentication for permissions and setting the default project to ensure the commands run in the correct project context.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
apb98
Highly Voted 10 months, 3 weeks agoapb98
10 months, 3 weeks agoTanTran04
Highly Voted 8 months agolouisaok
Most Recent 1 month, 3 weeks agoRKS_2021
2 months agoTimfdklfajlksdjlakf
2 months, 3 weeks agoleoalvarezh
9 months, 1 week agoBagibo
10 months, 3 weeks agoSrinivasJasti
10 months, 3 weeks agoKelvinToo
10 months, 3 weeks agoRLIII
1 week, 2 days agoKelvinToo
10 months, 3 weeks agoshiowbah
10 months, 4 weeks ago