GCP Associate Cloud Engineer Practice Question 16: Ops Agent Memory Alert

Google Cloud Associate Cloud Engineer · Test 2 · question 6 of 10

Cloud Monitoringmedium

You want an alert when memory utilization on a Compute Engine VM exceeds 90 percent. In Metrics Explorer you can see CPU, disk throughput, and network metrics for the VM, but there is no memory utilization metric.

What should you do?

Select one answer
Show answer and explanation

Answer:

  • A. Install the Ops Agent on the VM, then create an alerting policy on the agent memory utilization metric

Compute Engine reports hypervisor level metrics (CPU, disk, network) automatically, but it cannot see inside the guest operating system, so memory and disk space utilization are collected by an agent. The Ops Agent collects those metrics (for example agent.googleapis.com/memory/percent_used) and logs, and you can then alert on them.

Option B is wrong because the API is already in use, since you can see other metrics. Option C is wrong because the VM needs permission to write metrics (Monitoring Metric Writer), not view them, and permissions are not the cause here. Option D is an unreliable workaround; the serial port does not contain memory statistics.

Reference: Ops Agent overview

Practice Test 2 ›

Study guides for Google Cloud Associate Cloud Engineer