
Answer-first summary for fast verification
Answer: An instance reset through an API Call
Correct answer: **An instance reset through an API Call**. Shutdown scripts are designed to execute commands just before an instance is terminated or restarted, on a best-effort basis. This feature is particularly useful for automated scripts that manage instance lifecycles, allowing for cleanup tasks or data synchronization before shutdown. However, resetting an instance via an API call does not trigger these scripts. For more details, refer to the [Google Cloud documentation on shutdown scripts](https://cloud.google.com/compute/docs/shutdownscript).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Which of the following methods will not trigger the execution of a shutdown script? (Select One)
A
Shut down via the Cloud Console
B
Preemptible instance being shutdown
C
When a user initiates a shutdown through a request to the guest operating system
D
An instance reset through an API Call