Topic 1 Question 111
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?
Create a shell script that uses the gcloud command to change the machine type of the development and acceptance instances to a smaller machine type outside of office hours. Schedule the shell script on one of the production instances to automate the task.
Use Cloud Scheduler to trigger a Cloud Function that will stop the development and acceptance environments after office hours and start them just before office hours.
Deploy the development and acceptance applications on a managed instance group and enable autoscaling.
Use regular Compute Engine instances for the production environment, and use preemptible VMs for the acceptance and development environments.
解説
ユーザの投票
コメント(17)
B is the answer.
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!
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" untouched
👍 28pamepadero2021/07/07Ans ) B , assuming VM doesn't need to be up after office hours .
👍 24kopper20192021/07/01Ans is C. It states Acceptance and development are "only critical" during business hs, it doesn't mean they are not used after bs hs. Using a MIG can help reducing the infrastructure while still allowing to use those environments.
👍 7diego_alejandro2022/07/12
シャッフルモード