Exam4Training

What should you do?

You have a project for your App Engine application that serves a development environment. The required testing has succeeded and you want to create a new project to serve as your production environment.

What should you do?
A . Use gcloud to create the new project, and then deploy your application to the new project.
B . Use gcloud to create the new project and to copy the deployed application to the new project.
C . Create a Deployment Manager configuration file that copies the current App Engine deployment into a new project.
D . Deploy your application again using gcloud and specify the project parameter with the new project name to create the new project.

Answer: A

Explanation:

You can deploy to a different project by using Cproject flag.

By default, the service is deployed the current project configured via: $ gcloud config set core/project PROJECT

To override this value for a single deployment, use the Cproject flag:

$ gcloud app deploy ~/my_app/app.yaml Cproject=PROJECT

Ref: https://cloud.google.com/sdk/gcloud/reference/app/deploy

Exit mobile version