Google Cloud Associate Cloud Engineer — Question 214
You have a batch workload that runs every night and uses a large number of virtual machines (VMs). It is fault-tolerant and can tolerate some of the VMs being terminated. The current cost of VMs is too high. What should you do?
Answer options
- A. Run a test using simulated maintenance events. If the test is successful, use Spot N2 Standard VMs when running future jobs.
- B. Run a test using simulated maintenance events. If the test is successful, use N2 Standard VMs when running future jobs.
- C. Run a test using a managed instance group. If the test is successful, use N2 Standard VMs in the managed instance group when running future jobs.
- D. Run a test using N1 standard VMs instead of N2. If the test is successful, use N1 Standard VMs when running future jobs.
Correct answer: A
Explanation
The correct answer is A because Spot N2 Standard VMs are a cost-effective solution for workloads that can tolerate interruptions, such as this fault-tolerant batch job. The other options either propose using standard VMs without considering cost (B and C) or suggest a less efficient VM type (D), which does not address the cost concern effectively.