Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You've set up multiple preemptible Linux virtual machine instances on Google Compute Engine and need to ensure your application shuts down gracefully before the instances are preempted. Which two methods should you use?
A
Develop a shutdown script and assign it as the value to a new metadata entry with the key 'shutdown-script' via the Cloud Platform Console during the creation of the new virtual machine instance.
B
Utilize the CLI, Console, or API to directly pass the script's contents.
C
Craft a shutdown script and set it as the value for a new metadata entry with the key 'shutdown-script' in Deployment Manager.
D
Design a shutdown script, assign it as the value to a new metadata entry with the key 'shutdown-script', and then refer to Google Cloud GitHub resources for further steps.