
Answer-first summary for fast verification
Answer: Perform App Engine deploy using the --project parameter
The correct answer is **D** because the `gcloud app deploy` command allows the `--project` parameter to specify the target project for deployment, making it a straightforward and efficient method. This approach overrides the current project setting without requiring changes to the `app.yaml` file or additional steps. - **Option A** is incorrect because cloning the application is unnecessary and not a standard practice for deployment. - **Option B** is incorrect as modifying `app.yaml` for project deployment is not its intended use. - **Option C**, while valid, involves an extra step of activating the production config, making it less efficient than option D.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
After successfully testing an App Engine application in the development environment, you're ready to move it to production. What is the most efficient method to deploy the application to the production environment?
A
Clone the App Engine application to the production environment
B
Change the project parameter in app.yaml and redeploy
C
Activate the production config, perform App Engine deploy
D
Perform App Engine deploy using the --project parameter