PROFESSIONAL-CLOUD-ARCHITECT · Question #204
Your company is running its application workloads on Compute Engine. The applications have been deployed in production, acceptance, and development environments. The production environment is…
The correct answer is B. Use Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance. https://cloud.google.com/blog/products/it-ops/best-practices-for-optimizing-your-cloud-costs Schedule VMs to auto start and stop: The benefit of a platform like Compute Engine is that you only pay for the compute resources that you use. Production systems tend to run 24/7…
Question
Options
- ACreate a shell script that uses the gcloud command to change the machine type of the
- BUse Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance
- CDeploy the development and acceptance applications on a managed instance group and enable
- DUse regular Compute Engine instances for the production environment, and use preemptible VMs
How the community answered
(41 responses)- A2% (1)
- B78% (32)
- C7% (3)
- D12% (5)
Explanation
https://cloud.google.com/blog/products/it-ops/best-practices-for-optimizing-your-cloud-costs Schedule VMs to auto start and stop: The benefit of a platform like Compute Engine is that you only pay for the compute resources that you use. Production systems tend to run 24/7; however, VMs in development, test or personal environments tend to only be used during business hours, and turning them off can save you a lot of money! https://cloud.google.com/blog/products/storage-data-transfer/save-money-by-stopping-and- starting-compute-engine-instances-on-schedule Cloud Scheduler, GCP’s fully managed cron job scheduler, provides a straightforward solution for automatically stopping and starting VMs. By employing Cloud Scheduler with Cloud Pub/Sub to trigger Cloud Functions on schedule, you can stop and start groups of VMs identified with labels of your choice (created in Compute Engine). Here you can see an example schedule that stops all VMs labeled "dev" at 5pm and restarts them at 9am, while leaving VMs labeled "prod"
Topics
Community Discussion
No community discussion yet for this question.