Courseiva

Google ACE Practice Question: Ensuring Successful Operation of a Cloud Solution

You are troubleshooting a slow Pub/Sub subscription. Which three steps should you take to diagnose the issue? (Choose three.)

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

✓

Check the subscription's backlog in the Pub/Sub console or via gcloud pubsub subscriptions describe

Cloud Monitoring (Metrics Explorer) can show subscription backlog, Cloud Logging can show subscriber errors, and checking the subscription's backlog via gcloud or console helps assess the issue. Cloud Trace is for HTTP-based services, not Pub/Sub directly. Cloud Debugger is for code debugging, not Pub/Sub monitoring.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Check the subscription's backlog in the Pub/Sub console or via gcloud pubsub subscriptions describe

    Why this is correct

    Checking the subscription's backlog, either in the Pub/Sub console or via the `gcloud pubsub subscriptions describe` command, gives a direct numeric measurement of how many messages are unacknowledged and waiting to be redelivered. A consistently growing backlog relative to the publish rate indicates the subscriber cannot keep up with the incoming flow. This is the first diagnostic step because it confirms whether the bottleneck is on the delivery side or the processing side without instrumenting any application code.

  • ✓

    Use Cloud Monitoring Metrics Explorer to view the subscription's backlog and ack messages count

    Why this is correct

    Cloud Monitoring Metrics Explorer can visualize Pub/Sub subscription metrics such as `pubsub.googleapis.com/subscription/backlog` and `pubsub.googleapis.com/subscription/ack_message_count`. By comparing the ack_message_count with the published_message_count over time, you can determine if the subscriber is acknowledging messages at a lower rate than they are being published. This also reveals patterns such as spikes or stalls, helping you correlate the slowness with specific time windows or deployment changes.

  • ✗

    Use Cloud Trace to analyze the latency of each Pub/Sub message

    Why it's wrong here

    Cloud Trace is designed for end-to-end distributed tracing of HTTP-based request latencies, not for Pub/Sub message flow. Pub/Sub does not automatically propagate trace contexts through its API, and Cloud Trace cannot capture the latency of an individual message from publish to acknowledgment unless your subscriber code explicitly wraps the processing with a custom trace span. Even then, it would only give per-request timing, not throughput or backlog health, so it is the wrong tool for this systemic slowness diagnosis.

  • ✗

    Use Cloud Debugger to inspect the subscriber code

    Why it's wrong here

    Cloud Debugger lets you inspect live application state and set snapshots or logpoints without stopping the service, which is useful for debugging logic errors or variable values. However, it does not provide any metrics about Pub/Sub subscription throughput, backlog, or acknowledgement rates. The slowness you are investigating is unlikely to be caused by a single line of code; Debugger is not intended for performance analysis and cannot show queue depths or end-to-end message delivery latency.

  • ✓

    Use Cloud Logging to check for subscriber errors or delivery failures

    Why this is correct

    Cloud Logging is useful here because a subscriber that is throwing exceptions, timing out, or hitting dead-letter conditions will often emit error logs that explain why messages are not being acknowledged. If you have structured logs from the subscriber, you can search for messages matching the subscription ID or processing failures to identify systematic issues such as an unavailable downstream dependency. This complements the numeric backlog and ack metrics by providing the actual error messages and stack traces from the consuming application.

About these practice questions

Courseiva writes every ACE question from scratch — 775 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.