CertKeen

Google Cloud Associate Cloud Engineer · Free practice question 5 of 12

gcloud config list active settings

Before running a destructive command, an engineer at Kestrel Waters wants to confirm which account and project her gcloud CLI is currently using. Which command shows this?

  1. A.gcloud projects list
  2. B.gcloud config list
  3. C.gcloud info --show-log
  4. D.gcloud auth print-access-token
Show answer and explanation

Correct answer: B. gcloud config list

Why: gcloud config list displays the properties of the active configuration, including the account and project. gcloud projects list shows every project the account can access rather than the active one, printing an access token reveals a credential instead of settings, and the --show-log option prints the last log file.

More free Google Cloud Associate Cloud Engineer questions