Google Associate Cloud Engineer Question 62
Select 2Google Cloud PlatformYou are tasked with running a batch processing workload on Google Cloud Platform that can tolerate interruptions. The workload requires a specific CPU and memory configuration that is not available in predefined machine types. How should you set up your virtual machines to optimize cost while meeting the workload requirements?
- A
Use Spot VM instances with a custom machine type matching the specific CPU and memory configuration.
- B
Use regular on-demand VM instances with a custom machine type matching the specific CPU and memory configuration.
- C
Use Spot VM instances with the closest predefined machine type available.
- D
Use preemptible VM instances with a custom machine type matching the specific CPU and memory configuration.
Show answer and explanation
Correct answers: A, D
Explanation
For batch processing workloads that can handle interruptions, Spot VM instances are ideal due to their significantly lower cost compared to regular instances. Utilizing custom machine types allows the configuration to precisely meet the workload's CPU and memory requirements, further optimizing resource use and cost.
- A. Correct.
Spot VM instances are cost-effective for workloads that can tolerate interruptions, and using a custom machine type allows you to specify the exact CPU and memory requirements.
- B. Incorrect.
While regular on-demand VM instances with a custom machine type satisfy the workload's requirements, they are not as cost-effective as Spot VMs for interruptible workloads.
- C. Incorrect.
Using Spot VM instances with a predefined machine type could potentially increase costs unnecessarily if the predefined types do not match the workload's exact requirements.
- D. Correct.
Preemptible VM instances are a previous term synonymous with Spot VMs in Google Cloud, which offer similar cost savings and the ability to use custom machine types.