Soru

Zorluk: OrtaManaging Compute Engine Resources

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?

  1. Create an Instance Schedule resource policy specifying the required start and stop times, and attach the policy to the Compute Engine instances.Cevap
  2. B
    Recreate the development virtual machines as Spot VMs so Compute Engine automatically terminates and restarts them on a fixed 24-hour cycle.
  3. C
    Grant the primitive Compute Admin role to an external cron service running on-premises to execute daily gcloud compute instances start and stop commands.
  4. D
    Submit 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

1
Identify the operational requirement for automated VM start/stop state changes.
Recognize that scheduled power management requires a recurring time-based policy mechanism.
Compute Engine provides built-in Resource Policies specifically designed for scheduling instance operations.
2
Define an Instance Schedule resource policy using gcloud or the Google Cloud Console.
A resource policy configured with CRON-like expressions or explicit start and stop schedules for weekdays.
Instance schedules natively handle starting and stopping instances at defined times without requiring external orchestrators.
3
Attach the Instance Schedule resource policy to the targeted Compute Engine VM instances.
The target virtual machines automatically adhere to the schedule, shutting down at 8:00 PM and starting at 7:00 AM on weekdays.
Attaching the policy applies the scheduling logic directly to the instance life cycle while adhering to Google best practices.

Anahtar Kavram

Compute Engine Instance Schedules and Resource Policies
Tahmini Süre:1m 30s
Bu soruyu puanla