Google Associate Cloud Engineer Question 282
Select 3Google Cloud PlatformYou are tasked with setting up an alerting policy in Google 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 achieve this?
- A
Create a new metric and set the CPU utilization threshold to 80%.
- B
Navigate to Google Cloud Monitoring and create an alerting policy.
- C
Select 'CPU Utilization' as the metric type and specify the condition to trigger if usage is above 80% for 5 minutes.
- D
Set up notifications to alert your team via email when the condition is met.
- E
Deploy a custom monitoring agent to gather CPU utilization data.
Show answer and explanation
Correct answers: B, C, D
Explanation
To set up a Cloud Monitoring alert for CPU utilization, you must create an alerting policy in Google Cloud Monitoring. By selecting the 'CPU Utilization' metric, you can specify conditions such as exceeding 80% usage for more than 5 minutes. Additionally, setting up notifications ensures that your team is alerted when these conditions are met. Custom monitoring agents are not needed for standard metrics like CPU utilization.
- A. Incorrect.
Creating a new metric is unnecessary as 'CPU Utilization' is a predefined metric in Google Cloud Monitoring.
- B. Correct.
Navigating to Google Cloud Monitoring and creating an alerting policy is the correct starting point to set up alerts.
- C. Correct.
Selecting 'CPU Utilization' and setting the correct condition parameters ensures that the alert triggers as desired.
- D. Correct.
Setting up notifications is crucial to ensure that your team is informed when the alert conditions are met.
- E. Incorrect.
Deploying a custom monitoring agent is not required for basic CPU utilization metrics, as these are already provided by default in Google Cloud Monitoring.