Courseiva
mediumMultiple ChoiceObjective-mapped

Google ACE Practice Question: A Cloud Run service has been running for weeks

A Cloud Run service has been running for weeks. A sudden spike in 5xx errors appears in Cloud Monitoring. The team wants to view the actual request logs to identify which endpoint is failing. Where should they look?

⚠ Common exam trap

Google Cloud often tests the distinction between aggregated metrics (Cloud Monitoring) and raw logs (Cloud Logging), trapping candidates who think Metrics Explorer can show individual request details when it only provides statistical aggregates.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Cloud Logging Logs Explorer — filter by resource type 'cloud_run_revision'

Cloud Logging's Logs Explorer is the correct place to view actual request logs for a Cloud Run service. It allows filtering by resource type 'cloud_run_revision' and by HTTP status codes (e.g., 5xx) to identify which specific endpoint is failing. Cloud Monitoring Metrics Explorer shows aggregated metrics, not individual log entries, so it cannot pinpoint the exact endpoint.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Cloud Monitoring Metrics Explorer — filter by request_count metric with error status

    Why it's wrong here

    Cloud Monitoring Metrics Explorer is designed for time-series aggregation, not log exploration. While the request_count metric (or a log-based metric derived from it) can show error-rate trends, it aggregates counts into buckets and cannot display individual request entries with URL paths, user agents, or detailed status code breakdowns needed to troubleshoot specific 5xx endpoints. For per-request diagnostic details you must inspect the underlying Cloud Logging entries.

  • Cloud Logging Logs Explorer — filter by resource type 'cloud_run_revision'

    Why this is correct

    Cloud Run automatically streams structured request logs to Cloud Logging, and each entry includes an httpRequest object with the request URL, response status, latency, and protocol. In Logs Explorer, filter using resource.type="cloud_run_revision" and add a filter like httpRequest.status >= 500 to isolate failed requests; you can then expand each log entry to see the exact endpoint, caller IP, and response details. This gives you the forensic, per-request view needed to identify which endpoints are returning errors.

  • Cloud Trace — filter by 5xx response code

    Why it's wrong here

    Cloud Trace exists to analyze latency and distributed call paths across services; it records spans only when your application is instrumented with the Cloud Trace SDK or uses a supported framework, and services without propagation won't be represented. Even when instrumentation is present, filtering by 5xx response code in Trace shows trace metadata, not the full request log payload (headers, body, URL path details) that Cloud Logging captures, so you cannot rely on it for complete error diagnostics.

  • Cloud Debugger — set a snapshot at the error handler

    Why it's wrong here

    Cloud Debugger snapshots capture the call stack and local variables of a single live execution when code hits a breakpoint, and they expire quickly — they do not provide a historical log of past requests. Moreover, Cloud Run's serverless instances are ephemeral and snapshots require attaching to a running instance at the exact moment the error handler executes, which is not a viable way to review prior 5xx responses. It answers "what is the state now?" not "what requests failed and why?".

Go deeper

Related to this question

About these practice questions

This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.