Topic 1 Question 46
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?
Check the app.yaml file for your application and check project settings.
Check the web-application.xml file for your application and check project settings.
Go to Deployment Manager and review settings for deployment of applications.
Go to Cloud Shell and run gcloud config list to review the Google Cloud configuration used for deployment.
ユーザの投票
コメント(17)
I would opt option D : as it would help to check the config details and Option A is not correct, as app.yaml would have only the runtime and script to run parameters and not the Project details
👍 50Bharathy2020/03/23Option D - The config list will give the name of the project C:\GCP\appeng>gcloud config list [core] account = [email protected] disable_usage_reporting = False project = my-first-demo-xxxx
👍 36ahmed8122020/04/05Both A and D seem correct. Lots of people mentioned that app.yaml does not contain project id. That is an incorrect statement. Project is contained in app.YAML for "Standard" app engine application but gcloud config list is has to be used for "FLEXIBLE" application. Since the questions does not inform us whether it is a standard or flexible app, Option D is correct. Look at the link here. https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#app-id .
The doc states: "In some App Engine standard environment runtimes, you might have specified the Cloud Platform project ID (sometimes called "app ID") in the project's app.yaml file.
However, in the flexible environment, the project ID (app ID) is specified either:
By using gcloud init when you install the Google Cloud CLI. To view the default project ID of the gcloud CLI, run gcloud config list. By using the gcloud config set project [YOUR_PROJECT_ID] command to set the default project ID of the gcloud CLI. By using the --project flag when you deploy your app, for example: gcloud app deploy --project [YOUR_PROJECT_ID]"
👍 8danny19g2022/09/08
シャッフルモード