ASSOCIATE-CLOUD-ENGINEER · Question #168
You have a Compute Engine instance hosting a production application. You want to receive an email if the instance consumes more than 90% of its CPU resources for more than 15 minutes. You want to use
The correct answer is B. 1. Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) project. To set up email alerts for CPU utilization on a Compute Engine instance, you must first create a Cloud Monitoring Workspace (formerly Stackdriver Workspace) and link your GCP project to it, then configure an alerting policy.
Question
Options
- A
- Create a consumer Gmail account.
- B
- Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) project
- C
- Create a Stackdriver Workspace, and associate your GCP project with it.
- D
- In Stackdriver Logging, create a logs-based metric to extract the CPU usage by using this
How the community answered
(27 responses)- A7% (2)
- B74% (20)
- C4% (1)
- D15% (4)
Why each option
To set up email alerts for CPU utilization on a Compute Engine instance, you must first create a Cloud Monitoring Workspace (formerly Stackdriver Workspace) and link your GCP project to it, then configure an alerting policy.
Creating a consumer Gmail account is not the correct initial step for configuring Google Cloud monitoring and alerting; a Gmail account might be used as a notification recipient, but not for setting up the monitoring infrastructure itself.
Before you can create alerting policies based on metrics from your Google Cloud resources like Compute Engine CPU usage, you need to set up a Cloud Monitoring (formerly Stackdriver) Workspace and associate your Google Cloud project with it. This workspace acts as a central console for monitoring, logging, and alerting services across your projects, allowing you to define alert conditions and notification channels.
This option is identical to B's first step and refers to the correct initial action for setting up Cloud Monitoring alerts.
Creating a logs-based metric in Stackdriver Logging is used for custom metrics derived from log entries, but CPU usage is a standard metric already collected by Cloud Monitoring and does not require a logs-based metric for basic alerting.
Concept tested: Cloud Monitoring setup for alerts
Source: https://cloud.google.com/monitoring/docs/setting-up
Topics
Community Discussion
No community discussion yet for this question.