Your company is migrating 50 Ubuntu 22.04 Compute Engine VMs to production. You must forward detailed instance metrics (CPU utilization, disk I/O) and custom application logs from Nginx into Cloud Monitoring and Cloud Logging. You want to minimize operational overhead by running a single, Google-supported agent that will continue to receive automatic updates. What should you do?
Enable the Cloud Monitoring and Cloud Logging APIs only; Compute Engine will automatically send all guest metrics and logs without agents.
Install the Cloud Operations Ops Agent on each VM and configure an Nginx receiver in the agent's YAML file to collect logs and metrics.
Export each VM's serial console output to Cloud Storage and load it into BigQuery for analysis on a schedule.
Install the legacy Stackdriver Monitoring agent for metrics and the separate fluentd-based Logging agent for logs.
The Ops Agent is Google Cloud's next-generation observability agent for Compute Engine. It replaces the separate legacy Monitoring and Logging agents and gathers logs and metrics with a single, automatically updated package. Adding an Nginx receiver and pipeline in the agent's YAML configuration lets it ingest Nginx access logs alongside system metrics. Simply enabling the Cloud Monitoring and Cloud Logging APIs does not collect guest-level telemetry. Deploying the two legacy agents meets the data requirement but violates the "single agent" and "reduced maintenance" constraints. Exporting serial console output does not capture application logs or system metrics.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Ops Agent in Google Cloud?
Open an interactive chat with Bash
How can you configure the Ops Agent to collect Nginx logs?
Open an interactive chat with Bash
Why is using the Ops Agent better than legacy agents?
Open an interactive chat with Bash
What is the Ops Agent in Google Cloud?
Open an interactive chat with Bash
How does the Ops Agent differ from the legacy Stackdriver agents?
Open an interactive chat with Bash
How can you configure the Ops Agent to collect Nginx logs and metrics?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Setting up a cloud solution environment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .