Google Cloud Associate Cloud Engineer — Question 118
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. Migrate the workload to a Compute Engine Preemptible VM.
- B. Migrate the workload to a Google Kubernetes Engine cluster with Preemptible nodes.
- C. Migrate the workload to a Compute Engine VM. Start and stop the instance as needed.
- D. Create an Instance Template with Preemptible VMs On. Create a Managed Instance Group from the template and adjust Target CPU Utilization. Migrate the workload.
Correct answer: C
Explanation
The correct answer is C because using a Compute Engine VM allows for manual control over starting and stopping the instance, which is ideal for a long-running and infrequent batch job. Options A and B may introduce interruptions due to the nature of Preemptible VMs, which are not suitable for workloads that need to be restarted. Option D, while potentially efficient, adds complexity that may increase costs unnecessarily for a simple batch process.