You are deploying a production application on Compute Engine. You want to prevent anyone from accidentally destroying the instance by clicking the wrong button. What should you do?
A.
Disable the flag ג€Delete boot disk when instance is deleted.ג€
Correct Answer is (B):
Preventing Accidental VM Deletion
This document describes how to protect specific VM instances from deletion by setting the deletionProtection property on an Instance resource. To learn more about VM instances, read the Instances documentation.
As part of your workload, there might be certain VM instances that are critical to running your application or services, such as an instance running a SQL server, a server used as a license manager, and so on. These VM instances might need to stay running indefinitely so you need a way to protect these VMs from being deleted.
By setting the deletionProtection flag, a VM instance can be protected from accidental deletion. If a user attempts to delete a VM instance for which you have set the deletionProtection flag, the request fails. Only a user that has been granted a role with compute.instances.create permission can reset the flag to allow the resource to be deleted.
https://cloud.google.com/compute/docs/instances/preventing-accidental-vm-deletion
Mr.ESP_SAP, your answers are on the spot and I look forward to your notes on all the questions first.. Appreciate your effort and support for this cloud community.. :)
Enabling delete protection helps safeguard your instances from accidental deletion. This means that even if someone attempts to delete the instance through the console or API, they will receive an error, preventing accidental deletion. It acts as an additional layer of protection to avoid critical mistakes.
Preventing Accidental VM Deletion
This document describes how to protect specific VM instances from deletion by setting the deletionProtection property on an Instance resource. To learn more about VM instances, read the Instances documentation.
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.
ESP_SAP
Highly Voted 3 years, 6 months agoNaree
8 months agoMohammedGhouse
Highly Voted 3 years, 6 months agomufuuuu
Most Recent 3 months, 1 week agomufuuuu
3 months, 1 week agoscanner2
5 months, 4 weeks agoCaptain1212
6 months agoAzureDP900
1 year, 8 months agoHimadhar1997
1 year, 9 months agoSurat
2 years, 1 month agokped21
2 years, 1 month agojaffarali
2 years, 2 months agoSreedharveluru
2 years, 6 months agoNARWAL
2 years, 11 months agoGCP_Student1
3 years agoLomy
3 years agoRockAJ
3 years, 4 months agomuk5658
3 years, 5 months agoSSPC
3 years, 6 months ago