
Answer-first summary for fast verification
Answer: 1. Create a Cloud Monitoring Workspace and associate your Google Cloud Platform (GCP) project with it. 2. Create a Cloud Monitoring Alerting Policy that uses the threshold as a trigger condition. 3. Configure your email address in the notification channel.
The most appropriate and efficient method to set up an alert for high CPU usage on a Google Compute Engine instance using Google's services is to utilize the built-in Cloud Monitoring service. You should create a Cloud Monitoring Workspace and associate your GCP project with it. Then, create a Cloud Monitoring Alerting Policy that uses the threshold (CPU usage > 90% for 15 minutes) as a trigger condition. Finally, configure your email address in the notification channel to receive alerts when the conditions are met. This method is reliable and easier to manage compared to scripting or using external email services.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are managing a production application hosted on a Google Compute Engine instance. To ensure optimal performance and timely intervention, you need to be alerted via email if the instance's CPU usage exceeds 90% for a continuous period of more than 15 minutes. Utilizing Google Cloud services, how would you set up this alert system?
A
B
C
D