Soru

Zorluk: ZorMonitoring and Logging

An operations team is updating telemetry collection for a fleet of Linux Compute Engine virtual machines hosting enterprise applications. The security policy requires collecting system memory (RAM) utilization metrics and ingesting custom application logs into Google Cloud Observability, while strictly adhering to Google-recommended practices and the principle of least privilege. Which TWO actions should the team take to complete this configuration?

  1. Install and configure the Google Cloud Ops Agent on each Compute Engine virtual machine instance.Cevap
  2. Grant the VM service account the predefined roles Monitoring Metric Writer (`roles/monitoring.metricWriter`) and Logs Writer (`roles/logging.logWriter`).Cevap
  3. C
    Install the legacy Stackdriver Monitoring Agent and legacy Stackdriver Logging Agent as separate standalone services on each virtual machine.
  4. D
    Grant the VM service account the primitive Editor (`roles/editor`) role at the Google Cloud project level.

Cevap

The team must install the unified Google Cloud Ops Agent on each VM instance and assign the predefined Monitoring Metric Writer and Logs Writer IAM roles to the VM service account.
Collecting OS-level metrics such as RAM utilization alongside application log files on Compute Engine requires deploying the unified Google Cloud Ops Agent. To allow the agent to write telemetry to Google Cloud Observability in accordance with security best practices, the VM service account must be granted specific predefined roles: Monitoring Metric Writer and Logs Writer.

Adım Adım Çözüm

1
Select the modern unified telemetry agent for Compute Engine
Deploy the Google Cloud Ops Agent across all VM instances.
The Ops Agent is Google's official agent for capturing OS-level metrics like RAM usage alongside application log files.
2
Configure standard least-privilege IAM permissions for metric and log ingestion
Attach `roles/monitoring.metricWriter` and `roles/logging.logWriter` to the attached Compute Engine service account.
These predefined roles allow telemetry ingestion into Cloud Monitoring and Cloud Logging without providing broader resource management access.

Anahtar Kavram

Compute Engine Observability & Least-Privilege Telemetry Roles
Tahmini Süre:2m 0s
Bu soruyu puanla