Google Associate Cloud Engineer Question 284
Single answerGoogle Cloud PlatformYou are responsible for managing a fleet of virtual machines on Google Cloud Platform. Your team wants to be alerted when the CPU utilization of any virtual machine exceeds 80% for more than 5 minutes. Which of the following steps should you take to create this alert policy in Cloud Monitoring?
- A
Create a new alert policy and set the condition type to 'Metric Threshold'. Select 'VM Instance' as the resource type and 'CPU Utilization' as the metric. Set the threshold value to 80% and the duration to 5 minutes.
- B
Create a new alert policy and set the condition type to 'Log-Based'. Select 'VM Instance' as the resource type and 'CPU Utilization' as the metric. Set the threshold value to 80% and the duration to 5 minutes.
- C
Create a new alert policy and set the condition type to 'Uptime Check'. Select 'VM Instance' as the resource type and 'CPU Utilization' as the metric. Set the threshold value to 80% and the duration to 5 minutes.
- D
Create a new alert policy and set the condition type to 'Process Health'. Select 'VM Instance' as the resource type and 'CPU Utilization' as the metric. Set the threshold value to 80% and the duration to 5 minutes.
Show answer and explanation
Correct answer: A
Explanation
To effectively monitor and alert on CPU utilization metrics for virtual machines in Google Cloud, it is necessary to create an alert policy with a 'Metric Threshold' condition. This allows you to specify the resource type and metric of interest, in this case, 'VM Instance' and 'CPU Utilization'. By setting the threshold and duration, you ensure that alerts are triggered only when the specified conditions are met.
- A. Correct.
This is the correct option. 'Metric Threshold' is the appropriate condition type for monitoring specific resource metrics like CPU utilization. Setting the threshold value and duration correctly ensures that alerts are triggered as desired.
- B. Incorrect.
This option is incorrect because 'Log-Based' conditions are used to monitor logs rather than resource metrics. For CPU utilization, a 'Metric Threshold' condition is required.
- C. Incorrect.
This option is incorrect because 'Uptime Check' is used to monitor the availability of a service or endpoint, not specific resource metrics like CPU utilization.
- D. Incorrect.
This option is incorrect because 'Process Health' monitors the state of processes, not specific metrics such as CPU utilization.