Google Associate Cloud Engineer Question 61
Select 2Google Cloud PlatformYou are tasked with running a large-scale batch processing job on Google Cloud Platform that is cost-sensitive and can tolerate interruptions. The job needs to run with specific CPU and memory requirements. Which of the following configurations should you choose to minimize costs while meeting the job requirements?
- A
Use Spot VM instances with a custom machine type tailored to the job's CPU and memory needs.
- B
Use preemptible VM instances with the default machine type.
- C
Use on-demand VM instances with a custom machine type.
- D
Use Spot VM instances with the default machine type.
Show answer and explanation
Correct answers: A, D
Explanation
Spot VM instances are ideal for cost-sensitive workloads that can tolerate interruptions, like batch processing jobs. By combining Spot VMs with custom machine types, you can further optimize resource allocation, ensuring that the job's specific CPU and memory requirements are met without incurring the higher costs associated with on-demand instances.
- A. Correct.
Using Spot VM instances helps reduce costs significantly, and a custom machine type ensures that the job's specific CPU and memory requirements are met, optimizing resource usage.
- B. Incorrect.
Preemptible instances are an older term, and now Spot VMs are the correct term. Using the default machine type might not optimize for specific CPU and memory requirements.
- C. Incorrect.
On-demand instances are more expensive compared to Spot VMs, making them less cost-effective for batch processing jobs that can tolerate interruptions.
- D. Correct.
Spot VMs offer cost benefits, but using the default machine type might not meet specific CPU and memory requirements efficiently.