GCP PCA · Question 32 · Ensure solution and operations reliability
You want to monitor the CPU utilization of a fleet of Compute Engine instances. If the average CPU utilization exceeds 80% for more than 5 minutes, you want the operations team to receive a notification in their Slack channel. How should you configure this?
You want to monitor the CPU utilization of a fleet of Compute Engine instances. If the average CPU utilization exceeds 80% for more than 5 minutes, you want the operations team to receive a notification in their Slack channel. How should you configure this?
Answer options:
Write a bash script on each VM that checks CPU usage and uses curl to send a message to the Slack API.
Create a log sink in Cloud Logging to export CPU metrics to Pub/Sub, and trigger a Cloud Function to post to Slack.
Create an Alerting Policy in Cloud Monitoring, set the condition to CPU utilization > 80% for 5 minutes, and configure a Slack notification channel.
Configure the Managed Instance Group autoscaler to send a notification when it scales up.
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Professional Cloud Architect Practice Exam 6
50 questions · hints · full answers · grading
Expert