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.
Correct is A.
Option B is wrong as the option to use gcloud app cp does not exist.
Option C is wrong as Deployment Manager does not copy the application, but allows you to specify all the resources needed for your application in a declarative format using yaml
Option D is wrong as gcloud app deploy would not create a new project. The project should be created before usage
you're missing one thing. D isn't about using deployment manager to copy the configuration, instead, using the configuration file to copy the configuration from test project.
A is correct since the documentation here explicitly mentioned the roles of external editors https://cloud.google.com/iam/docs/job-functions/auditing#scenario_external_auditors
Correct answer is A as gcloud can be used to create a new project and the gcloud app deploy can point to the new project.Refer GCP documentation - GCloud App Deploy.
Option B is wrong as the option to use gcloud app cp does not exist
.Option C is wrong as Deployment Manager does not copy the application, but allows you to specify all the resources needed for your application in a declarative format using yaml
Option D is wrong as gcloud app deploy would not create a new project. The project should be created before usage.
The correct answer is A.
This is the simplest and most straightforward way to create a new production environment. It is also the most efficient way, because it does not require you to copy the deployed application to the new project.
The other options are not as good:
* Option B is not as good, because it requires you to copy the deployed application to the new project. This can be time-consuming and error-prone.
* Option C is not as good, because it requires you to create a Deployment Manager configuration file. This can be complex and time-consuming.
* Option D is not as good, because it does not allow you to create a new project.
As this is test on cloud infra then definitely the question is about creating instance with all the configuration which was present in the development environment. I think C is correct because we can copy the existing configuration from deployment manager to the new project.
The correct answer is A. Use gcloud to create the new project, and then deploy your application to the new project.
Answer B, copying the deployed application to the new project, is not a recommended method for creating a new project since it can lead to inconsistencies and compatibility issues between the old and new projects.
Answer C, using a Deployment Manager configuration file to copy the current App Engine deployment to a new project, is also not recommended. Deployment Manager is a service that automates the deployment of infrastructure and applications, but it's not intended to copy a deployed application to a new project.
Answer D, deploying your application again using gcloud and specifying the project parameter with the new project name, is not recommended. This method will create a new deployment of your application in the same project as the development environment, rather than in a separate project for the production environment.
A is correct
You can deploy to a different project by using –project 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 –project flag:
$ gcloud app deploy ~/my_app/app.yaml –project=PROJECT
Ref: https://cloud.google.com/sdk/gcloud/reference/app/deploy
Although the answer is not worded correctly, I think C is the right answer . Command is
gcloud app deploy ~/my_app/app.yaml --project=PROJECT (https://cloud.google.com/sdk/gcloud/reference/app/deploy)
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
coldpar
Highly Voted 3 years, 11 months agomanu202020
3 years, 8 months agoAdelElagawany
5 months, 1 week agoleba
Highly Voted 3 years, 10 months agoTrundul
Most Recent 2 months, 4 weeks agoYourCloudGuru
5 months, 1 week agoCaptain1212
6 months agoBb_master
10 months, 3 weeks agoBuruguduystunstugudunstuy
1 year agoleogor
1 year, 4 months agoale_brd_111
1 year, 5 months agogcp_world123
1 year, 6 months agoAzureDP900
1 year, 8 months agoharoldbenites
1 year, 9 months ago[Removed]
2 years, 2 months agoonyb
2 years, 2 months agoshawnkkk
2 years, 3 months agovishnukumartr
2 years, 3 months agoJaira1256
2 years, 3 months ago