Your organization is moving a critical Linux-based application to a Compute Engine VM. Operations wants CPU and memory metrics to appear in Cloud Monitoring dashboards and needs the application's log files to be searchable in Cloud Logging. They prefer to deploy and maintain as few agents on the VM as possible. Which action will best meet these requirements?
Install the Google Cloud Ops Agent on the virtual machine to send both logs and metrics to Cloud Logging and Cloud Monitoring.
Simply enable the Cloud Logging and Cloud Monitoring APIs; the VM will export all logs and metrics without any agent.
Install only the legacy Stackdriver Monitoring agent, which gathers both logs and metrics for Cloud Monitoring.
Install the legacy Stackdriver Logging agent together with the legacy Stackdriver Monitoring agent to capture the required data.
The Google Cloud Ops Agent is a single agent that collects both system metrics (CPU, memory, disk, network, etc.) for Cloud Monitoring and application and system logs for Cloud Logging. Installing it on the VM satisfies the need for comprehensive observability while keeping operational overhead low because only one agent must be deployed and managed.
Enabling the Cloud Logging and Cloud Monitoring APIs alone is insufficient; without an agent, most guest-level metrics and many application logs are not captured. The legacy Stackdriver Monitoring agent collects metrics only, and the legacy Logging agent collects logs only-using both would require two separate agents, which conflicts with the requirement to minimize agent management. Cloud Trace client libraries capture distributed traces, not general 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 Google Cloud Ops Agent?
Open an interactive chat with Bash
How do I install and configure the Google Cloud Ops Agent?
Open an interactive chat with Bash
How does the Ops Agent compare to legacy Stackdriver agents?
Open an interactive chat with Bash
What is the Google Cloud Ops Agent?
Open an interactive chat with Bash
Why can’t enabling Cloud Logging and Monitoring APIs alone meet the requirements?
Open an interactive chat with Bash
What are the differences between the Google Cloud Ops Agent and legacy Stackdriver agents?
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 $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 .