Google Associate Cloud Engineer Question 281
Select 4Google Cloud PlatformYou are tasked with setting up a monitoring alert in Google Cloud Monitoring for a production application running on Google Kubernetes Engine (GKE). The requirement is to be notified if the CPU utilization of any node pool exceeds 80% for more than 5 minutes. Which steps should you follow to create this alert policy?
- A
A. Navigate to the Google Cloud Monitoring console and create a new alert policy.
- B
B. Select 'Uptime Check' as the resource type and set the condition to monitor CPU utilization.
- C
C. Choose 'GKE Node' as the resource type and set the condition to monitor CPU utilization.
- D
D. Define the condition to trigger when the CPU utilization exceeds 80% for more than 5 minutes.
- E
E. Set a notification channel to receive alerts, such as email or SMS.
Show answer and explanation
Correct answers: A, C, D, E
Explanation
To create an alert based on resource metrics in Google Cloud Monitoring, you should start by creating a new alert policy. You need to select the correct resource type, in this case, 'GKE Node', to monitor the CPU utilization. Defining the condition with the specified threshold and duration ensures the alert triggers under the right circumstances. Finally, setting up a notification channel ensures that alerts are communicated effectively.
- A. Correct.
A. Correct. Creating a new alert policy is the initial step to monitor specific metrics.
- B. Incorrect.
B. Incorrect. 'Uptime Check' is not the appropriate resource type for monitoring CPU utilization. It's used for checking the availability of services.
- C. Correct.
C. Correct. Selecting 'GKE Node' is appropriate for monitoring metrics related to nodes in a GKE cluster.
- D. Correct.
D. Correct. Defining the condition with specific metrics and thresholds is necessary to trigger alerts.
- E. Correct.
E. Correct. Setting a notification channel is essential to receive alerts once the condition is met.