Google Cloud Associate Cloud Engineer — Question 311
You deployed an App Engine application using gcloud app deploy, but it did not deploy to the intended project. You want to find out why this happened and where the application deployed. What should you do?
Answer options
- A. Check the app.yaml file for your application and check project settings.
- B. Check the web-application.xml file for your application and check project settings.
- C. Go to Deployment Manager and review settings for deployment of applications.
- D. Go to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment.
Correct answer: D
Explanation
The correct answer is D because running 'gcloud config list' in Cloud Shell allows you to see the active configuration, including the project set for the deployment. Options A and B refer to checking application configuration files which do not directly indicate the project used during deployment. Option C involves Deployment Manager, which is not relevant for checking the project settings used during the gcloud app deploy command.