GCP Professional Cloud Architect Practice Question
Your company runs a fleet of Compute Engine VMs and several Cloud Run microservices behind an external HTTP(S) load balancer. Site-reliability engineers need a single dashboard that shows CPU and memory for every workload, an alert when log entries containing the text "payment_failed" exceed 50 per minute, and end-to-end distributed traces that reveal where most request latency is spent. Which approach best satisfies these requirements while keeping operational overhead low?
Deploy Prometheus sidecars in every service for metrics, forward logs to an Elasticsearch cluster with Fluentd, use Jaeger for tracing, and present data through a custom Grafana portal.
Install only the Cloud Monitoring metric agent on VMs, configure uptime checks for CPU and memory, set an alert on profiler-reported exceptions exceeding 50 per minute, and rely on Cloud Profiler flame graphs to locate latency sources.
Enable Cloud Operations on all resources: deploy the Ops Agent to each VM, rely on Cloud Run's built-in telemetry, create a logs-based metric filtered on "payment_failed" with an alerting policy, and enable the Cloud Trace API with language agents to emit distributed spans.
Export every log entry to BigQuery, build Data Studio dashboards for CPU and memory from scheduled queries, run periodic SQL jobs to count "payment_failed" lines, and inspect query execution plans to diagnose request latency.
Installing the Ops Agent on each Compute Engine VM streams host metrics and logs directly to Cloud Monitoring and Cloud Logging. Cloud Run already exports service-level metrics and container stdout/stderr to the same back-ends, so a unified dashboard can be built without additional collectors. In Cloud Logging, a logs-based metric filtered on textPayload:"payment_failed" can count matching entries; attaching an alerting policy to this metric meets the notification requirement. Finally, enabling the Cloud Trace API and adding the language-specific Trace agent or OpenTelemetry exporter to the services allows spans to be sent to Cloud Trace, producing end-to-end request traces that highlight the slowest downstream call. The other options either rely on self-managed stacks, batch processing, or tools (uptime checks, Cloud Profiler) that do not meet all three observability goals.
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, and why is it used in this approach?
Open an interactive chat with Bash
How does the logs-based metric work for detecting 'payment_failed' errors?
Open an interactive chat with Bash
What is Cloud Trace, and how does it help with distributed tracing?
Open an interactive chat with Bash
What is the Ops Agent in Google Cloud?
Open an interactive chat with Bash
How do logs-based metrics and alerting policies work in Google Cloud Logging?
Open an interactive chat with Bash
What is the purpose of the Cloud Trace API?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Designing and planning a cloud solution architecture
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 .