Google Associate Cloud Engineer Question 283
Select 4Google Cloud PlatformYou are a Google Cloud Engineer tasked with setting up an alerting policy in Cloud Monitoring to notify your team when the CPU utilization of your Compute Engine instances exceeds 80% for more than 5 minutes. Which steps should you take to configure this alert correctly?
- A
Create a metric-based alert policy and set the filter to 'metric.type="compute.googleapis.com/instance/cpu/utilization"'.
- B
Set the condition threshold to 80% and the duration to 5 minutes.
- C
Select 'Log-based alert' as the type of alert.
- D
Specify the notification channel to send alerts via email.
- E
Set the aggregation to 'mean' over a 5-minute period.
Show answer and explanation
Correct answers: A, B, D, E
Explanation
To set up a cloud monitoring alert for CPU utilization, you need to create a metric-based alert policy with the correct metric filter, set a condition threshold and duration, specify a notification channel, and configure the aggregation method. These steps ensure that the alert accurately monitors the CPU utilization and notifies the appropriate team members when the specified conditions are met.
- A. Correct.
Creating a metric-based alert policy with the correct metric filter is essential for monitoring CPU utilization.
- B. Correct.
Setting the threshold and duration ensures that alerts are triggered when CPU utilization is consistently high over a specified time.
- C. Incorrect.
Log-based alerts are used for specific log entries, not for monitoring resource metrics like CPU utilization.
- D. Correct.
Specifying a notification channel is necessary to ensure that alerts are received by the team.
- E. Correct.
Aggregation must be set to 'mean' to evaluate the average CPU utilization over the specified period.