nerdexam
Google

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.

Submitted by javi_es· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

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 Google services. What should you do?

Options

  • A
    1. Create a consumer Gmail account.
  • B
    1. Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) project
  • C
    1. Create a Stackdriver Workspace, and associate your GCP project with it.
  • D
    1. In Stackdriver Logging, create a logs-based metric to extract the CPU usage by using this

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    74% (20)
  • C
    4% (1)
  • D
    15% (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.

A1. Create a consumer Gmail account.

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.

B1. Create a Stackdriver Workspace, and associate your Google Cloud Platform (GCP) projectCorrect

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.

C1. Create a Stackdriver Workspace, and associate your GCP project with it.

This option is identical to B's first step and refers to the correct initial action for setting up Cloud Monitoring alerts.

D1. In Stackdriver Logging, create a logs-based metric to extract the CPU usage by using this

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

#Cloud Monitoring#alerting policies#CPU metrics#email notifications

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice