Question

Difficulty: EasyManaging Compute Engine Resources

Your team is deploying a batch processing workload on Google Compute Engine and wants to optimize operational efficiency and costs while ensuring instances scale dynamically based on demand. Which two management actions should you perform? (Select two.)

  1. Configure the Managed Instance Group (MIG) to use Spot virtual machine instances for cost-effective batch processing.Answer
  2. Attach an autoscaling policy to the Managed Instance Group based on CPU utilization or custom queue metrics.Answer
  3. C
    Assign the primitive Owner role to the instance service account so that workers never encounter permission denied errors.
  4. D
    Host the primary transactional database on the Spot VM instances within the group to save on core database infrastructure costs.
  5. E
    Create additional GCP projects in other regions whenever instance limits are reached instead of requesting a quota increase.

Answer

The correct actions are configuring the Managed Instance Group to use Spot VMs for batch workloads and attaching an autoscaling policy based on CPU or queue metrics.
Configuring a Managed Instance Group to use Spot VMs allows stateless batch processing tasks to run at lower costs, while configuring an autoscaling policy ensures instance capacity scales up or down automatically based on demand.

Step-by-Step Solution

1
Identify the workload requirements
The workload consists of fault-tolerant batch jobs that require dynamic scaling and cost reduction.
Batch workloads can tolerate instance interruptions and benefit from automated capacity adjustments.
2
Select the appropriate Compute Engine instance provision model and group scaling mechanism
Use Spot VMs for discounted pricing and attach an autoscaler to the MIG based on load indicators like CPU utilization.
Spot VMs provide significant cost savings for batch jobs, while MIG autoscaling adjusts compute resources based on real-time load.

Key Concept

Compute Engine Managed Instance Group (MIG) Management and Spot VM Workload Placement
Rate this question