Chapter 4 of 5 · Google Cloud Professional Cloud DevOps Engineer

Implementing observability practices and troubleshooting issues

Ops Agent, OpenTelemetry, Cloud Logging, Cloud Monitoring, alerting, Cloud Trace and troubleshooting issues.

  • 6topics
  • 30 minfast track
  • 1diagrams and exhibits
  • 25%of the exam

Topics in this chapter

Take them in order, or jump to the one you need.

  1. 1Collecting Logs with Ops Agent and OpenTelemetry, and Cutting Log CostCollect logs with Ops Agent, OpenTelemetry, Cloud Audit Logs, VPC Flow Logs and Cloud Service Mesh, then cut cost with…5 min
  2. 2Collecting Metrics, Managed Prometheus, Synthetic Monitors and Custom MetricsCollect metrics from apps, platforms and networks, use Managed Service for Prometheus, probe endpoints with synthetic monitors…5 min
  3. 3Logs Explorer, Log Routing and Retention, and Redacting Sensitive DataQuery logs in Logs Explorer, route and retain them in BigQuery, Pub/Sub or Cloud Storage, redact PII and PHI, and analyze logs…Diagram5 min
  4. 4Metrics Explorer, Dashboards, Alerting Policies and NotificationsAnalyze metrics in Metrics Explorer, build and share dashboards with PromQL, set alerting policies on SLOs and cost, and route…5 min
  5. 5Distributed Tracing with OpenTelemetry and Cloud TraceInstrument services with OpenTelemetry, read Cloud Trace waterfalls and spans, link trace IDs to structured logs and use Gemini…5 min
  6. 6Troubleshooting Infrastructure, Pipeline, App and Latency IssuesTroubleshoot Google Cloud infrastructure, CI/CD pipeline, application, observability and latency issues with the right tool for…5 min

About this chapter

What this chapter covers

Implementing observability practices and troubleshooting issues is about 25% of the Google Cloud Professional Cloud DevOps Engineer exam. Together with CI/CD it is the largest section, and it is about getting the right telemetry, at a sensible cost, and using it to find problems fast.

It covers instrumenting and collecting telemetry (Ops Agent, OpenTelemetry, Cloud Audit Logs, VPC Flow Logs, Cloud Service Mesh, Managed Service for Prometheus, synthetic monitors, custom and log-based metrics, log cost optimization), managing and analyzing logs (Logs Explorer and the Logging query language, routing and retention, redacting sensitive data, Gemini Cloud Assist), metrics, dashboards and alerts (Metrics Explorer, dashboards with PromQL, alerting policies, third-party notification tools), distributed tracing (OpenTelemetry, trace waterfalls and spans, trace IDs in logs) and troubleshooting infrastructure, pipeline, application, observability and latency issues.

The exam has 50 to 60 multiple choice and multiple select questions in 2 hours. Questions here often describe missing data, a noisy or silent alert, or a slow request and ask which tool or setting finds or fixes it, ending "What should you do?".

How the topics fit together

InstrumentOps Agent, OpenTelemetryCollectlogs, metrics, tracesStore and routelog buckets, sinksAnalyzeLogs Explorer, Metrics Explorer, TraceAlertSLO burn, thresholdsTroubleshootfind and fix

Telemetry you never collected cannot be analyzed, and telemetry you collect without control becomes a large bill. Logs, metrics and traces each answer different questions, and the best troubleshooting joins them through shared trace IDs and labels.

Exam tip

Match the signal to the question. Metrics say something is wrong, traces say where in the request path, logs say why, and profiles say which code is using the CPU or memory.

How to use these pages

Each topic page has the same shape, so you can skim for what you need.

  • What it is: the idea in plain words.
  • How it works: the mechanism, with tables and code examples.
  • What to remember for the exam: the facts to memorise and how questions are phrased.
  • Common mistakes: the classic traps.
  • Check yourself: three questions to test your understanding.

Ready for more practice?

The full Google Cloud Professional Cloud DevOps Engineer question bank has 751 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Google Cloud. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.