nerdexam
Google

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…

Submitted by chiamaka_o· Mar 30, 2026Optimizing technical and business processes

Question

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 business-critical and is used 24/7, while the acceptance and development environments are only critical during office hours. Your CFO has asked you to optimize these environments to achieve cost savings during idle times. What should you do?

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)
  • A
    2% (1)
  • B
    78% (32)
  • C
    7% (3)
  • D
    12% (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

#Cloud Scheduler#Cloud Functions#cost optimization#Compute Engine

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice