Question

Difficulty: MediumEstimating GCP Costs with the Pricing Calculator

A lead engineer at an online education company is using the Google Cloud Pricing Calculator to model monthly infrastructure costs for a video analytics platform. The architecture requires compute resources for two distinct workloads: a core service that runs continuously 24 hours a day, 7 days a week, and a secondary stateless batch processing service that generates video thumbnails and can tolerate unexpected instance terminations. Which configuration strategy in the Google Cloud Pricing Calculator provides the most accurate and cost-effective monthly estimate for these compute workloads?

  1. Model the continuous workload using standard Compute Engine instances to incorporate Sustained Use Discounts or Committed Use Discounts, and select Spot VMs for the fault-tolerant batch processing workload.Answer
  2. B
    Configure Spot VMs for both the 24/7 core service and the batch processing workload to achieve the maximum discount tier across all compute resources.
  3. C
    Model standard Compute Engine instances for both workloads and manually input a custom 30% discount parameter in the calculator to account for Sustained Use Discounts on the batch processing nodes.
  4. D
    Model the continuous 24/7 processing workload using event-driven Cloud Functions to automatically eliminate all underlying virtual machine cost estimates.

Answer

Model the continuous workload using standard Compute Engine instances to incorporate Sustained Use Discounts or Committed Use Discounts, and select Spot VMs for the fault-tolerant batch processing workload.
The correct strategy models the 24/7 core service using standard Compute Engine instances (allowing the Pricing Calculator to automatically factor in Sustained Use Discounts or apply Committed Use Discounts) while assigning Spot VMs to the batch thumbnail extraction service because it is stateless and tolerant of sudden interruptions.

Step-by-Step Solution

1
Analyze the workload requirements
Identified two workload profiles: (1) a 24/7 continuous baseline service requiring high availability, and (2) a stateless, fault-tolerant batch processing job.
Different compute usage patterns and interruption tolerances qualify for different GCP pricing mechanisms.
2
Match workloads to optimal GCP billing modes
Continuous 24/7 workloads benefit from Sustained Use Discounts (SUDs) or Committed Use Discounts (CUDs) on standard VMs. Interruption-tolerant batch workloads are best suited for Spot VMs.
Spot VMs offer discounts of up to 60-91% off standard prices but can be terminated by Compute Engine at any time.
3
Configure the parameters in the Google Cloud Pricing Calculator
Select standard N1/N2/E2 instance types for continuous uptime to let the calculator automatically factor in SUDs/CUDs, and check the 'Spot (Preemptible)' option for the batch workload nodes.
This configuration accurately reflects actual Google Cloud billing rules and minimizes total infrastructure expenditure.

Key Concept

Cost estimation for heterogeneous compute workloads using Google Cloud Pricing Calculator, balancing Sustained Use Discounts (SUDs), Committed Use Discounts (CUDs), and Spot VM provisioning.
Estimated Time:1m 30s
Rate this question