Update Deployment in Deployment Manager | Minimize Downtime | SEO-optimized

Update a Deployment in Deployment Manager Without Downtime

Question

You need to update a deployment in Deployment Manager without any resource downtime in the deployment.

Which command should you use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update

The correct answer to this question is B. gcloud deployment-manager deployments update --config <deployment-config-path>.

Explanation: Google Cloud Deployment Manager is a tool that allows users to specify a configuration of Google Cloud resources in a YAML or JSON file, and then deploy and manage those resources as a single unit. Deployment Manager provides a way to create, update, and delete deployments of resources, as well as to preview and validate deployments before they are executed.

To update a deployment in Deployment Manager without any resource downtime, the gcloud deployment-manager deployments update command should be used. This command updates an existing deployment with the specified configuration file, and it automatically determines whether resources need to be created, updated, or deleted in order to apply the changes.

The gcloud deployment-manager deployments create command creates a new deployment from the specified configuration file. It does not update an existing deployment.

The gcloud deployment-manager resources create command creates a new resource in an existing deployment. It does not update the deployment as a whole.

The gcloud deployment-manager resources update command updates an existing resource in an existing deployment. It does not update the deployment as a whole.

In summary, the correct command to use in this scenario is gcloud deployment-manager deployments update --config <deployment-config-path>. This will update the existing deployment with the new configuration file, and ensure that there is no downtime for the resources in the deployment.