Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Google Cloud Observability provides tools that let teams understand how their applications are behaving by collecting and analyzing data the systems produce. This concept, called observability, relies on bringing together three types of data: metrics (numerical measurements), logs (text records of events), and traces (records of how requests move through different services). When these three data types are combined into one view, teams can find problems faster and keep their services running reliably.
Cloud Trace shows how requests travel through a microservices architecture, which is a system where one request might trigger dozens of other internal requests. Each individual operation within this journey is called a span, and spans together form a complete trace that reveals exactly where delays happen. This is essential for finding bottlenecks because in distributed systems, a single slow step can slow down the entire request. Cloud Trace automatically propagates tracing context, meaning it follows the request automatically without requiring developers to manually add tracking code at each step.
Error Reporting automatically collects, counts, and groups crashes that occur in running services. It organizes similar errors into error groups so developers can see which problems affect the most users first. When errors are linked to specific code versions, teams can quickly determine whether a recent deployment caused a new failure. This tool saves time because developers no longer need to manually search through massive log files to find critical bugs.
Cloud Profiler analyzes how applications use CPU and memory to identify code that runs slowly or consumes too many resources. Profiling is the process of examining code execution to find performance problems. Cloud Profiler works alongside Cloud Monitoring to turn this data into visual charts that help teams understand resource usage patterns over time.
Query Insights and OpenTelemetry connect application performance to database operations. OpenTelemetry is a standardized framework that collects telemetry data and sends it to various monitoring tools. When traces are correlated with database query plans, engineers can determine whether a slow response comes from the application code or from the database itself. This end-to-end visibility helps maintain operational excellence in complex cloud environments.
Cloud Logging provides centralized logging, which means collecting log data from many different sources into a single location. This creates a "single pane of glass" view that makes it easier to monitor entire cloud environments and troubleshoot problems across multiple services. When all logs flow to one place, teams can search and analyze them together rather than checking separate systems.
Log Sinks route logged information to different destinations based on business needs. Large organizations often use Aggregated Sinks to collect logs from multiple projects into a central location. Common destinations include Cloud Storage for long-term low-cost archiving, BigQuery for running SQL queries and performing advanced analysis, and Pub/Sub for streaming data to third-party security tools. Each destination serves a different purpose: storage for compliance, analysis for insights, and streaming for real-time security monitoring.
Exclusion Filters prevent unnecessary logs from being stored, which directly reduces monthly cloud costs. Teams can filter out verbose or low-value logs while still retaining the data required for legal compliance or technical troubleshooting. This practice optimizes spending without sacrificing the log retention that organizations need for security or regulatory reasons.
Audit Logs track who did what and when within the Google Cloud environment, making them essential for security and compliance. Admin Activity logs record configuration changes made by administrators, Data Access logs monitor who viewed sensitive information, and System Event logs capture administrative actions performed by Google Cloud itself. These logs help security teams detect unauthorized access or identify configuration changes that might put the organization at risk.
Cloud Monitoring works alongside logging to track system performance in real-time and ensure operational reliability. By applying Site Reliability Engineering principles, teams can define Service Level Objectives that measure application health. This proactive approach helps identify performance problems before they affect end users.
Service-level indicators (SLIs) are specific measurements of performance such as how long a request takes or whether a service is available. These measurements define service-level objectives (SLOs), which are target values that the team aims to meet over time. When SLOs are met, the organization fulfills its service-level agreements (SLAs), which are formal commitments made to customers. Teams track how much performance can drop before reliability suffers by using an error budget, which measures the allowable amount of failure within a given period.
Google Cloud Monitoring automatically collects performance data from most Google Cloud services. For virtual machines, the Ops Agent collects system logs and application metrics that Cloud Monitoring cannot gather automatically. OpenTelemetry provides a standardized open-source framework for capturing traces and logs from applications in a consistent way. System metrics come from Google Cloud services, log-based metrics count specific events found in logs, and Prometheus metrics are managed through a scalable backend.
Alerting policies notify teams when performance metrics meet specific criteria, such as CPU usage exceeding a threshold. When an alert triggers, the system creates an incident, which is a persistent record used for troubleshooting the problem. Notifications can be sent through email, Slack, PagerDuty, or other channels. Proactive monitoring also uses synthetic monitors that test endpoint availability through uptime checks, which periodically send requests to services to verify they respond correctly.
Dashboards display real-time information about application and infrastructure health. Google Cloud provides managed dashboards automatically, but teams can also build custom dashboards to view specific trends or identify outliers. These dashboards visualize time-series data and allow comparison of current performance against historical records. Consolidating logs and metrics into a single view helps teams find and fix problems faster.
To maintain operational excellence, teams regularly test their incident management processes through chaos engineering and load testing. These techniques identify bottlenecks before they affect users and ensure systems can handle peak volumes while recovering gracefully from failures. By following Site Reliability Engineering principles, organizations balance the speed of deploying new features with the need for system stability.
Prepare and test your skills
Prepare and test your skills
Google Cloud Observability provides tools to understand application behavior by collecting and analyzing system data, and it relies on combining metrics, logs, and traces into one view to help teams find problems faster and maintain reliable services.
Cloud Trace shows how requests travel through a microservices architecture by breaking the journey into spans that form a complete trace, which reveals exactly where delays happen and is essential for finding bottlenecks in distributed systems.
Log Sinks route logged information to different destinations based on business needs, with common destinations including Cloud Storage for long-term archiving, BigQuery for advanced analysis, and Pub/Sub for streaming data to third-party security tools.
The three main types are Admin Activity logs for configuration changes, Data Access logs for monitoring who viewed sensitive information, and System Event logs for actions performed by Google Cloud itself, and they are essential for security and compliance.
Disable the _Default and _Required log sinks in all child projects, and deploy a Cloud Logging agent to stream logs directly to a central BigQuery dataset.
Configure an exclusion filter on the _Required bucket in the central project to drop Admin Activity audit logs and retain only VPC Flow Logs.
Deploy a project-level log sink in each child project routed to a Pub/Sub topic, and use a Cloud Function to filter out 50% of the VPC Flow Logs before writing to Cloud Logging buckets.
Create an aggregated log sink at the organization or folder level pointing to the central project, configure inclusion filters for audit logs, and apply exclusion filters with the sample function for high-volume logs.
Your enterprise organization consists of hundreds of Google Cloud projects organized within a folder hierarchy. Your security compliance team requires all Cloud Audit Logs across the entire resource hierarchy to be aggregated into a dedicated central logging project for long-term security analysis and auditing.
To control ingestion and storage costs, your team also needs to optimize log volume by sampling high-volume VPC Flow Logs at 50% and excluding low-severity development logs, while guaranteeing that critical security audit logs cannot be missed.
What should you configure to meet these requirements?