nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #2

You want to view the memory usage of your application deployed on Compute Engine. What should you do?

The correct answer is B. Install the Stackdriver Monitoring Agent.. By default, Google Cloud Monitoring (formerly Stackdriver) does not collect OS-level metrics such as memory usage, disk usage, or process-level metrics from Compute Engine instances - it only collects hypervisor-level metrics like CPU utilization. To see memory usage, you must in

Monitoring, logging, and troubleshooting applications

Question

You want to view the memory usage of your application deployed on Compute Engine. What should you do?

Options

  • AInstall the Stackdriver Client Library.
  • BInstall the Stackdriver Monitoring Agent.
  • CUse the Stackdriver Metrics Explorer.
  • DUse the Google Cloud Platform Console.

How the community answered

(43 responses)
  • A
    2% (1)
  • B
    91% (39)
  • C
    2% (1)
  • D
    5% (2)

Explanation

By default, Google Cloud Monitoring (formerly Stackdriver) does not collect OS-level metrics such as memory usage, disk usage, or process-level metrics from Compute Engine instances - it only collects hypervisor-level metrics like CPU utilization. To see memory usage, you must install the Stackdriver Monitoring Agent (now part of the Ops Agent) on the VM. This agent runs inside the guest OS and collects detailed system metrics including memory, then sends them to Cloud Monitoring. Option A (Stackdriver Client Library) is used for custom application metrics in code, not OS-level metrics. Option C (Metrics Explorer) is the UI tool for viewing metrics, but it cannot display memory usage if the agent hasn't been installed. Option D (GCP Console) shows the same limited metrics as Metrics Explorer.

Topics

#Cloud Monitoring#Compute Engine#Monitoring Agents#Application Observability

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice