GCP ACE · Question 07 · Domain 1.3: Installing and configuring the CLI
You are working in Cloud Shell and your current default project is set to 'dev-project-123'. You need to run several commands against resources in 'prod-project-999' without having to append the --project flag to every command.
Which command should you use to change your default project for the current session?
Answer options:
gcloud set project prod-project-999
gcloud config set project prod-project-999
gcloud projects update prod-project-999 --default
gcloud config update project prod-project-999
50 questions · hints · full answers · grading