A financial services company is deploying a multi-tier web application across a fleet of Linux virtual machines on Compute Engine. To comply with operational SLAs and security auditing guidelines, the infrastructure team must collect system-level memory utilization, disk space metrics, and custom syslog files from the instances into Google Cloud Observability. The implementation must follow Google Cloud recommended practices for telemetry agent configuration and IAM access management. Which deployment strategy should the Cloud Engineer implement?
- Install the unified Google Cloud Ops Agent on each Compute Engine instance and grant the attached service account the Logs Writer (roles/logging.logWriter) and Monitoring Metric Writer (roles/monitoring.metricWriter) predefined roles.Cevap
- BInstall the legacy Stackdriver Logging Agent and legacy Stackdriver Monitoring Agent on each Compute Engine instance and grant the attached service account the Logs Writer (roles/logging.logWriter) and Monitoring Metric Writer (roles/monitoring.metricWriter) predefined roles.
- CInstall the unified Google Cloud Ops Agent on each Compute Engine instance and grant the attached service account the primitive Editor (roles/editor) role to ensure full write permissions across telemetry services.
- DInstall the unified Google Cloud Ops Agent on each Compute Engine instance, but enable the Cloud Logging and Cloud Monitoring APIs at the Google Cloud Organization resource level rather than within the workload project hosting the instances.
Cevap
Install the unified Google Cloud Ops Agent on each Compute Engine instance and grant the attached service account the Logs Writer (roles/logging.logWriter) and Monitoring Metric Writer (roles/monitoring.metricWriter) predefined roles.
The correct strategy is to deploy the unified Google Cloud Ops Agent to the Compute Engine VMs and configure the instance service account with the predefined roles roles/logging.logWriter and roles/monitoring.metricWriter. The Ops Agent supports collecting system metrics (such as memory utilization and disk space) and custom syslog files within a single agent framework, while using specific predefined roles enforces security best practices by limiting permissions strictly to writing telemetry data.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Telemetry Collection with Google Cloud Ops Agent and Least-Privilege IAM
Tahmini Süre:2m 0s