An operations team manages a fleet of non-critical development virtual machines on Compute Engine. To optimize monthly operational costs, the team needs to ensure these instances automatically shut down at 8:00 PM every weekday evening and automatically start back up at 7:00 AM every weekday morning. They require a solution that uses native Google Cloud capabilities with minimal management overhead. Which action should the team take?
- Create an Instance Schedule resource policy specifying the required start and stop times, and attach the policy to the Compute Engine instances.Cevap
- BRecreate the development virtual machines as Spot VMs so Compute Engine automatically terminates and restarts them on a fixed 24-hour cycle.
- CGrant the primitive Compute Admin role to an external cron service running on-premises to execute daily gcloud compute instances start and stop commands.
- DSubmit a Compute Engine quota increase request in the Cloud Console to enable automated daily power-state transitions for the project's instances.
Cevap
Create an Instance Schedule resource policy specifying the required start and stop times, and attach the policy to the Compute Engine instances.
Creating an Instance Schedule resource policy is the native Google Cloud solution for automatically starting and stopping VM instances on a schedule. It requires no external infrastructure or custom scripts and meets the requirement for minimal management overhead.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Instance Schedules and Resource Policies
Tahmini Süre:1m 30s