Google Cloud Associate Cloud Engineer — Question 37
You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use?
Answer options
- A. gcloud deployment-manager deployments create --config <deployment-config-path>
- B. gcloud deployment-manager deployments update --config <deployment-config-path>
- C. gcloud deployment-manager resources create --config <deployment-config-path>
- D. gcloud deployment-manager resources update --config <deployment-config-path>
Correct answer: B
Explanation
The correct command to update a deployment without downtime is 'gcloud deployment-manager deployments update --config <deployment-config-path>' (Option B). Options A and C are for creating new deployments and resources, respectively, which would not achieve the goal of updating an existing deployment. Option D pertains to updating resources directly, which does not provide the same level of deployment management as Option B.