Your team manages several Linux Compute Engine VMs that currently run only the legacy Cloud Monitoring agent, so you see system-level metrics in Cloud Monitoring but no application logs in Cloud Logging. Developers now need to collect Apache access logs while keeping agent overhead as small as possible and reducing future maintenance tasks. Which action best meets these requirements?
Enable project-wide log-based metrics in Cloud Monitoring to capture Apache access information.
Deploy Fluent Bit inside each VM to forward Apache logs to Cloud Logging through Pub/Sub.
Add the legacy Cloud Logging agent alongside the existing Monitoring agent to collect logs and metrics separately.
Install the Google Cloud Ops Agent on each VM and uninstall the legacy Monitoring agent.
The Google Cloud Ops Agent is a single, unified agent that gathers both metrics and logs from Compute Engine instances, replacing the separate legacy Monitoring and Logging agents. Installing the Ops Agent and removing the old agents gives you VM metrics plus Apache (and other) log ingestion while using just one agent, minimizing resource overhead and long-term maintenance. Merely adding the separate Logging agent keeps two agents running, increasing overhead. Enabling log-based metrics or forwarding logs with Fluent Bit does not address the need to collect raw logs from the VMs with minimal agent count.
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 Google Cloud Ops Agent, and how does it differ from the legacy Monitoring and Logging agents?
Open an interactive chat with Bash
How does installing the Ops Agent minimize long-term maintenance?
Open an interactive chat with Bash
Why is Fluent Bit not suitable for Apache log ingestion in this scenario?
Open an interactive chat with Bash
What is the Google Cloud Ops Agent?
Open an interactive chat with Bash
How does the Google Cloud Ops Agent differ from the legacy Monitoring and Logging agents?
Open an interactive chat with Bash
What are log-based metrics and why don't they suffice for this scenario?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .