Google Cloud Associate Cloud Engineer — Question 199
Your company runs one batch process in an on-premises server that takes around 30 hours to complete. The task runs monthly, can be performed offline, and must be restarted if interrupted. You want to migrate this workload to the cloud while minimizing cost. What should you do?
Answer options
- A. Create an Instance Template with Spot VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.
- B. Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.
- C. Migrate the workload to a Google Kubernetes Engine cluster with Spot nodes.
- D. Migrate the workload to a Compute Engine Spot VM.
Correct answer: B
Explanation
The correct answer is B because migrating the workload to a Compute Engine VM allows for flexibility in starting and stopping the instance as needed, which is ideal for a monthly batch process. Options A, C, and D involve using Spot VMs or managed groups, which may not be suitable for a long-running job that requires reliability and must be restarted if interrupted.