Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 174 of 268

Professional Cloud DevOps Engineer. Associate level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud DevOps Engineer Question 174

Select 3Google Cloud Platform

Your team manages an application deployed on Google Cloud that requires high scalability and cost efficiency. You decide to use Spot VMs for a batch processing workload that is tolerant to interruptions. However, the workload must complete within a deadline of 2 hours. How can you optimize the use of Spot VMs in this scenario?

  1. A

    Use a managed instance group (MIG) with Spot VMs and configure an autoscaler based on CPU utilization.

  2. B

    Set up a backup mechanism using regular on-demand VMs in case Spot VMs are preempted.

  3. C

    Configure a maximum price for Spot VMs to prevent exceeding the budget.

  4. D

    Enable preemption notifications and adjust the application to handle interruptions gracefully.

  5. E

    Use only Spot VMs without any fallback mechanism to minimize costs.

Show answer and explanation

Correct answers: A, B, D

Explanation

Spot VMs are cost-efficient but can be preempted at any time. For time-sensitive workloads like batch processing with a 2-hour deadline, combining Spot VMs with a managed instance group (MIG) and autoscaler ensures scalability. Adding a fallback mechanism using regular VMs ensures the workload completes even if Spot VMs are interrupted. Preemption notifications further help handle interruptions gracefully, improving the application's reliability.

  • A. Correct.

    Using a managed instance group (MIG) with Spot VMs and autoscaling based on CPU utilization ensures that additional resources are automatically provisioned to meet workload demands, improving scalability.

  • B. Correct.

    Setting up a backup mechanism with regular on-demand VMs ensures that the workload can still be completed within the deadline even if Spot VMs are preempted.

  • C. Incorrect.

    While configuring a maximum price for Spot VMs can control costs, it does not directly address the need to meet the 2-hour deadline.

  • D. Correct.

    Enabling preemption notifications allows the application to gracefully handle interruptions, such as saving state or retrying tasks elsewhere, which is crucial for workloads on Spot VMs.

  • E. Incorrect.

    Using only Spot VMs without a fallback mechanism might minimize costs but risks missing the deadline if Spot VMs are preempted.

Timed practice exam

Take a Google Professional Cloud DevOps Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam