
Answer-first summary for fast verification
Answer: Enable delete protection on the instance.
Enabling delete protection on the instance is the correct action because it prevents the VM from being accidentally deleted, either through the Google Cloud Console or via API calls. This adds a crucial layer of protection against human error. Disabling the 'Delete boot disk when the instance is deleted' flag (Option B) only prevents the boot disk from being deleted, not the instance itself. Disabling automatic restart (Option C) affects the instance's behavior after failures but does not prevent deletion. Making the instance preemptible (Option D) allows Google to terminate it based on resource availability, which does not protect against accidental deletions by users.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To prevent accidental deletion of a production Compute Engine instance by an intern, which action should you take?
A
Enable delete protection on the instance.
B
Disable the 'Delete boot disk when the instance is deleted' flag.
C
Disable Automatic restart on the instance.
D
Make the instance preemptible.
No comments yet.