Question

Difficulty: MediumMonitoring, Logging, and Observability Integration

An operations team is establishing a baseline observability architecture for a hybrid application running on Compute Engine instances and on-premises servers. The team must collect system metrics and log data, centralize observability in Google Cloud, and optimize storage costs by preventing low-severity debug logs from being ingested into log buckets, while maintaining strict access controls. Which TWO actions should the team take to meet these requirements?

  1. Install and configure the Google Cloud Ops Agent on Compute Engine instances to collect system metrics and application logs.Answer
  2. Configure a Cloud Logging Log Router exclusion filter to prevent log entries with severity levels below INFO (such as DEBUG) from being ingested into log buckets.Answer
  3. C
    Create an aggregate exclusion filter targeting all log entries with severity ERROR and CRITICAL to minimize overall log ingestion volume.
  4. D
    Grant the primitive Owner role (roles/owner) to the Ops Agent service account to ensure unimpeded access to telemetry write endpoints.
  5. E
    Rely strictly on IAM permissions assigned to Log Buckets to block unauthorized log data exfiltration across project perimeters without configuring VPC Service Controls.

Answer

The correct actions are installing the Google Cloud Ops Agent on Compute Engine instances and configuring a Cloud Logging Log Router exclusion filter for severity levels below INFO.
Installing the Google Cloud Ops Agent provides comprehensive metric and log telemetry collection for VM instances. Setting up a Log Router exclusion filter for log severities below INFO prevents excessive storage consumption by filtering out verbose debug messages before ingestion.

Step-by-Step Solution

1
Identify the recommended telemetry collection agent for Compute Engine workloads.
The Google Cloud Ops Agent provides unified logging and telemetry metric collection.
Installing the Ops Agent satisfies the requirement to collect system and application metrics and logs in Google Cloud.
2
Determine the log cost optimization mechanism within Cloud Logging.
Log Router exclusion filters drop specified logs prior to bucket ingestion.
Excluding DEBUG log entries reduces overall storage ingestion costs without discarding operational or warning logs.

Key Concept

Monitoring, Logging, and Observability Integration
Rate this question