Question

Difficulty: MediumMonitoring and Logging

A cloud administrator is tasked with setting up telemetry collection and long-term analytics for a fleet of Compute Engine virtual machines. The requirements state that custom application log files must be exported to BigQuery for analytical querying, and host-level system metrics must be continuously monitored in Cloud Monitoring. Which TWO actions must the administrator perform to satisfy these operational requirements?

  1. Install and configure the unified Ops Agent on the Compute Engine instances to ingest system metrics and application logs from specified file paths.Answer
  2. Configure a Cloud Logging Log Router sink with an inclusion filter for the application logs, specifying a BigQuery dataset as the destination.Answer
  3. C
    Grant the primitive Owner role to the Log Router sink's writer identity on the destination BigQuery dataset to permit log ingestion.
  4. D
    Deploy the legacy Stackdriver Monitoring and Logging standalone agents on the virtual machine instances to collect operating system telemetry.

Answer

The administrator must install the unified Ops Agent on the Compute Engine instances to gather metrics and logs, and configure a Cloud Logging Log Router sink pointing to a BigQuery dataset with an inclusion filter matching the application logs.
To collect host metrics and application logs from Compute Engine virtual machines, Google Cloud recommends installing the unified Ops Agent. To route these logs to BigQuery for long-term analytics, a Cloud Logging Log Router sink must be configured with an inclusion filter targeting the application logs and specifying the BigQuery dataset as the sink destination.

Step-by-Step Solution

1
Deploy telemetry collection on virtual machines
System metrics and guest application log files are ingested into Cloud Monitoring and Cloud Logging.
The unified Google Cloud Ops Agent replaces legacy standalone agents and is recommended by Google Cloud for managing Compute Engine VM telemetry.
2
Configure log routing to BigQuery
Matching application logs are continuously exported to the designated BigQuery dataset.
Cloud Logging Log Router sinks evaluate incoming logs against inclusion filters and route them to analytics storage destinations like BigQuery.

Key Concept

Telemetry collection using the Google Cloud Ops Agent and long-term log export via Cloud Logging Log Router sinks.
Rate this question