Your company just spun up several Compute Engine virtual machines. As the Associate Cloud Engineer, you must (1) display each VM's CPU utilization on a dashboard and (2) send an email to the on-call group when the average CPU utilization of any instance stays above 80 % for five consecutive minutes. You want the simplest solution that avoids installing or managing additional software on the VMs. Which approach should you take in Cloud Monitoring?
Enable Cloud Audit Logs for the project, define a metric on Compute Engine API calls, and set up a dashboard and alerting policy on that audit-log metric with an email notification.
Install the Ops Agent on every VM to collect agent.googleapis.com/cpu/user_time, then build a dashboard and alerting policy that reference this agent metric and send email notifications.
Use the default metric compute.googleapis.com/instance/cpu/utilization that Compute Engine sends automatically, create a dashboard chart with that metric, and set an alerting policy with a 5-minute, 80 % threshold that emails the on-call group.
Create a logs-based metric from each VM's syslog entries, export it to Cloud Monitoring, and configure a dashboard and alert that evaluate the custom metric and email the on-call group.
Compute Engine automatically exports the metric compute.googleapis.com/instance/cpu/utilization to Cloud Monitoring without requiring any agent. You can therefore create a dashboard chart that plots this metric for the VM instances and build an alerting policy that triggers when the metric's rolling mean exceeds 80 % for five minutes. Adding the on-call group as an email notification channel completes the requirement. Installing the Ops Agent would work but adds unnecessary operational overhead, while logs-based or audit-log metrics do not directly capture CPU utilization.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the compute.googleapis.com/instance/cpu/utilization metric?
Open an interactive chat with Bash
How does alerting work in Cloud Monitoring?
Open an interactive chat with Bash
What is the difference between using default metrics and a custom metric in Cloud Monitoring?
Open an interactive chat with Bash
What is the default metric compute.googleapis.com/instance/cpu/utilization?
Open an interactive chat with Bash
How do you create an alerting policy in Cloud Monitoring?
Open an interactive chat with Bash
What is the advantage of using the default Compute Engine metric over installing the Ops Agent?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Setting up a cloud solution environment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .