
Answer-first summary for fast verification
Answer: gcloud deployment-manager deployments update --config
**Correct Answer: C** The command `gcloud deployment-manager deployments update --config` is the right choice because it updates an existing deployment without the need to create a new one, thus minimizing the risk of downtime. **Why not the others?** - **A** and **D** are incorrect because the Deployment Manager does not support direct resource updates or creations through these commands. - **B** is incorrect because creating a new deployment would not update the existing one and could lead to downtime. For more details, refer to the [Create deployment](https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/create) and [Update deployment](https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update) documentation.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Imagine you're at a leading e-commerce company with thousands of users accessing your website every minute. You've set up a deployment using the Deployment Manager and have just updated the deployment definition file to include a new Compute Engine instance. Your goal is to update the deployment on Google Cloud Platform without causing any downtime for existing resources. Which command should you use?
A
gcloud deployment-manager resources update --config
B
gcloud deployment-manager deployments create --config
C
gcloud deployment-manager deployments update --config
D
gcloud deployment-manager resources create --config
No comments yet.