GCP ACE · Question 08 · Domain 1.3: Installing and configuring the CLI
You are writing a bash script that will run on a CI/CD server. The script needs to deploy an application to App Engine. You want to ensure the script explicitly sets the target project to 'my-app-prod' for the deployment command, regardless of what the default gcloud configuration is set to on the server.
Which command should you use?
Answer options:
gcloud config set project my-app-prod && gcloud app deploy
gcloud app deploy --project=my-app-prod
gcloud app deploy --target=my-app-prod
export GCP_PROJECT=my-app-prod && gcloud app deploy
50 questions · hints · full answers · grading