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?
- A.gcloud projects list
- B.gcloud config list
- C.gcloud info --show-log
- 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
- Coldline minimum storage duration charge
- Cloud Run jobs for run-to-completion tasks
- Auto mode VPC creates regional subnets
- App Engine traffic splitting between versions
- Globally unique Cloud Storage bucket names
- bq load CSV into a table
- kubectl rollout undo for bad releases
- Browser role for hierarchy visibility
- Log Analytics SQL queries on logs
- Cloud SQL Auth Proxy benefits
- Secret Manager for application credentials