Cloud Digital Leader Scaling with Google Cloud operations Practice Question
A developer needs to debug a production issue by analyzing logs from multiple microservices. Which Google Cloud service should they use to filter and search logs in real time?
⚠ Common exam trap
Google Cloud often tests the distinction between log management (Cloud Logging) and error aggregation (Error Reporting), leading candidates to choose Error Reporting when the question explicitly asks for filtering and searching logs in real time.
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
Cloud Logging (formerly Stackdriver Logging) is the correct service because it provides a centralized log management system that can ingest logs from multiple microservices, filter them using advanced queries, and search them in real time. Its Logs Explorer interface supports custom filters, labels, and timestamps, enabling developers to pinpoint production issues across distributed services without delay.
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
Why it's wrong here
Cloud Monitoring is the wrong choice because it is oriented around telemetry such as CPU utilization, latency, and custom metrics, not log records. While Cloud Monitoring can ingest logs-based metrics and trigger alerts from log data, its core purpose is to visualize operational health and performance, not to search or analyze raw log entries for debugging a production issue.
- ✗
Error Reporting
Why it's wrong here
Error Reporting is not the correct tool because it specifically aggregates and deduplicates application exceptions and stack traces, such as crashes or panics, rather than providing general-purpose log search. It automatically groups similar errors to show impact, but it is not designed to query arbitrary log lines, correlate events across services, or perform ad-hoc textual analysis needed for debugging a broad production problem.
- ✓
Cloud Logging
Why this is correct
Cloud Logging is the correct service because it is purpose-built for ingesting, storing, searching, and analyzing logs in real time. It offers a powerful query language, filters, and the ability to view logs from a single VM, container, or Kubernetes cluster, making it the ideal tool for debugging a production issue. Cloud Logging also integrates with Cloud Monitoring and Error Reporting, but it alone provides the comprehensive log analysis functionality described in the scenario.
- ✗
Cloud Debugger
Why it's wrong here
Cloud Debugger is inappropriate for log analysis because it does not collect or retain logs; instead, it captures the state of a running application at specific breakpoints, allowing you to inspect variables and call stacks without stopping the service. It is a live debugging tool for production code, not a searchable log repository, so it cannot be used to analyze historical or ongoing log data to diagnose an issue.
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Labels
Labels are descriptive text or tags attached to IT resources to organize, identify, and manage them based on attributes like purpose, environment, or owner.
Key term
Cloud logging
Cloud logging is the practice of collecting, storing, and analyzing log data generated by cloud-based resources and applications to monitor performance, troubleshoot issues, and maintain security.
About these practice questions
One of 829 original GCDL practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL 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 GCDL exam.