Easy1 markMultiple Choice

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?

Answer options:

A.

Write a bash script on each VM that checks CPU usage and uses curl to send a message to the Slack API.

B.

Create a log sink in Cloud Logging to export CPU metrics to Pub/Sub, and trigger a Cloud Function to post to Slack.

C.

Create an Alerting Policy in Cloud Monitoring, set the condition to CPU utilization > 80% for 5 minutes, and configure a Slack notification channel.

D.

Configure the Managed Instance Group autoscaler to send a notification when it scales up.

How to approach this question

Identify the native GCP service for metrics-based alerting and its built-in integrations.

Full Answer

C.Create an Alerting Policy in Cloud Monitoring, set the condition to CPU utilization > 80% for 5 minutes, and configure a Slack notification channel.✓ Correct
Create an Alerting Policy in Cloud Monitoring, set the condition to CPU utilization > 80% for 5 minutes, and configure a Slack notification channel.
Cloud Monitoring (formerly Stackdriver) is the central observability tool in GCP. It natively collects CPU metrics, allows you to build Alerting Policies based on thresholds and durations, and supports out-of-the-box notification channels including Email, SMS, PagerDuty, and Slack.

Common mistakes

Over-engineering a solution with Pub/Sub and Cloud Functions (B) when a native feature exists.

Practice the full GCP Professional Cloud Architect Practice Exam 6

50 questions · hints · full answers · grading

More questions from this exam