Question

Difficulty: EasyMonitoring and Logging

A cloud administrator needs to monitor system memory (RAM) usage and disk space utilization on a fleet of Compute Engine virtual machines (VMs). By default, these OS-level metrics are not visible in Cloud Monitoring. Which agent should be installed on the virtual machines to collect these telemetry metrics?

  1. The unified Google Cloud Ops AgentAnswer
  2. B
    The deprecated legacy Stackdriver Monitoring agent
  3. C
    Enable the Cloud Monitoring API only on the host project without installing software on the VM
  4. D
    Grant the Compute Engine default service account the Owner primitive role

Answer

The unified Google Cloud Ops Agent should be installed on the Compute Engine virtual machines.
The unified Google Cloud Ops Agent is the official agent designed to collect guest OS metrics (like RAM and disk space usage) as well as logs from Compute Engine virtual machines.

Step-by-Step Solution

1
Identify the required telemetry data type.
The requirement calls for guest operating system metrics (memory and disk usage) from Compute Engine VMs.
Hypervisor-level monitoring only captures CPU and network metrics by default; memory metrics require in-guest telemetry gathering.
2
Select the current Google Cloud recommended solution for guest telemetry.
The Ops Agent combines system metric collection and log ingestion into a single daemon.
Google Cloud recommends the Ops Agent as the modern standard over older legacy agents.

Key Concept

Compute Engine OS Telemetry Collection via Google Cloud Ops Agent
Rate this question