Topic 1 Question 101
You need to host an application on a Compute Engine instance in a project shared with other teams. You want to prevent the other teams from accidentally causing downtime on that application. Which feature should you use?
Use a Shielded VM.
Use a Preemptible VM.
Use a sole-tenant node.
Enable deletion protection on the instance.
ユーザの投票
コメント(17)
Correct Answer is (D):
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
👍 51ESP_SAP2020/08/23Agree with D
You can enabale Termination protection
👍 13professor2020/06/26From the documentation: https://cloud.google.com/compute/docs/instances/preventing-accidental-vm-deletion
Deletion prevention does not prevent the following actions:
Terminating an instance from within the VM (such as running the shutdown command) Stopping an instance Resetting an instance Suspending an instance Instances being removed due to fraud and abuse after being detected by Google Instances being removed due to project termination Deletion protection can be applied to both regular VMs and preemptible VMs.
Deletion protection cannot be applied to VMs that are part of a managed instance group but can be applied to instances that are part of unmanaged instance groups.
Deletion prevention cannot be specified in instance templates.
So it seems like probably not D.
👍 4yjw_10242023/02/21
シャッフルモード