SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
Scaling with Google Cloud Operations

Cloud Digital Leader: Modern Operations, Observability, Resilience and SRE

13 min readCDL · Scaling with Google Cloud OperationsUpdated

Modern cloud operations is the practice of running cloud workloads so they stay observable, reliable and resilient: teams see problems early with managed monitoring tools, design infrastructure so failures do not become outages, and agree measurable reliability targets. This lesson covers task 6.2 of the Google Cloud Digital Leader exam guide: Google Cloud Observability (Cloud Monitoring, Cloud Logging, Cloud Trace, Cloud Profiler and Error Reporting), the core operations terms, resilient design with redundancy, replication, autoscaling and backups, the four golden signals, and the DevOps and SRE ideas of SLIs, SLOs, SLAs and error budgets.

What you’ll learn
  • Describe how Google Cloud Observability modernizes operations, and match Cloud Monitoring, Cloud Logging, Cloud Trace, Cloud Profiler and Error Reporting to the problems each solves
  • Distinguish operational excellence, reliability and high availability from scalability, disaster recovery and performance
  • Explain how redundancy across zones and regions, data replication, autoscaling and backups make infrastructure resilient, and which risk each covers
  • Name the four golden signals — latency, traffic, errors and saturation — and recognise each from a description
  • Distinguish SLIs, SLOs and SLAs, and explain why an SLO is set stricter than the SLA
  • Explain how an error budget balances release speed against reliability, and what a team does when it is spent

What modern cloud operations means

Modern cloud operations means running workloads with managed tools, automation and measured reliability targets instead of hand-built scripts and reactive firefighting. On premises, an operations team often installs its own monitoring agents, writes scripts to check servers and learns about problems when users call. In the cloud, the provider runs the monitoring platform as a managed service, data from every service lands in one place, and the team decides in advance how reliable each service needs to be.

Three ideas run through this whole topic:

  • See what is happening — collect metrics, logs, traces, profiles and errors so problems are spotted, ideally before customers notice (observability).
  • Design so failures do not become outages — redundancy, replication, autoscaling and backups (resilience).
  • Agree how reliable is reliable enough — measure the service with indicators, set objectives on them and balance reliability against the speed of change (DevOps and Site Reliability Engineering).

Controlling what all of this costs — budgets, quotas, billing reports and the resource hierarchy — is task 6.1 and has its own lesson.

Google Cloud Observability and its products

Google Cloud Observability is Google Cloud's managed suite for watching application health and performance; it was previously called the operations suite (and before that Stackdriver). It collects the main kinds of operational signal — metrics, logs, traces, code profiles and errors — from Google Cloud services and from applications, so teams can detect, investigate and fix problems from one place. Each product answers a different question, and telling them apart is the core of this bullet.

ProductWorks onThe question it answers
Cloud MonitoringNumeric metrics (CPU use, request counts, latency, custom metrics)Is the system healthy right now, and who should be told when it is not? Dashboards, alerting policies and uptime checks.
Cloud LoggingLog entries written by applications and Google Cloud services, including audit logsWhat exactly happened, and when? Central storage, search and analysis (including SQL in Log Analytics).
Cloud TraceTraces: one request followed through every service it calls, split into timed spansWhere in the request's path does the delay build up?
Cloud ProfilerContinuous, low-overhead sampling of running production codeWhich functions in the code use the most CPU and memory?
Error ReportingErrors and exceptions found in log entriesWhich errors are happening, how often, since when, and is a new kind appearing?

What moving to Observability changes is visibility: signals from every service arrive in one managed place, dashboards and alerts are configured rather than scripted, and teams can spot and investigate problems sooner. Deciding what to do about a problem, and doing it, remains the team's job. Observability is about application health and performance; detecting security threats is a separate set of tools covered in the security domain.

Choosing the right Observability product

The right product is the one whose kind of signal matches the problem in the scenario. These near-twin pairs are where people slip:

  • Monitoring vs Logging. A threshold on a number (memory use above a set level, request latency over a limit) is a metric condition in Cloud Monitoring. A searchable record of what each service wrote during an incident is Cloud Logging.
  • Trace vs Profiler. Both help with "slow", at different levels. Cloud Trace looks across services at the timeline of one request. Cloud Profiler looks inside one service's code at which functions consume CPU and memory — useful for cutting compute cost, and safe to leave running in production because of its low overhead. Cloud Monitoring can show a VM's total CPU use but not which code causes it.
  • Error Reporting vs Logging vs Monitoring. Exceptions appear as individual entries in Cloud Logging, and Cloud Monitoring can alert on an error rate, but only Error Reporting groups exceptions by cause into error groups, with counts and first-seen times, and notifies the team when a new group appears.
  • Checking from the outside. Metrics, logs, traces and errors are all produced by requests that reach the application; a request that never arrives — because of a DNS, network or load-balancer problem — leaves no trace inside. A Cloud Monitoring uptime check sends requests to a public URL from several locations on the internet, as a visitor would, and an alerting policy on it notifies the team when those requests fail.

Operational excellence, reliability and high availability

These are three related but different cloud operations terms: operational excellence describes how a team runs its workloads, while reliability and high availability describe what the workload achieves.

TermMeaningNot to be confused with
Operational excellenceEfficiently deploying, operating, monitoring and managing cloud workloads, and continuously improving those practices. It is one of the pillars of the Google Cloud Well-Architected Framework.A property of the workload itself; it is about the team's practices.
ReliabilityA workload's ability to perform its intended function correctly and consistently, measured against agreed targets (see SLOs below).Speed alone: a fast service can still be unreliable.
High availabilityThe system stays accessible to users with minimal downtime, usually by removing single points of failure.Disaster recovery (restoring afterwards) or scalability (handling more load).
ScalabilityHandling more load by adding resources, ideally automatically.High availability: a system can scale well and still go down when its only zone fails.
Disaster recoveryRestoring service and data after a major failure, from backups or a standby site.High availability, which aims to avoid the outage in the first place.
PerformanceHow quickly the system responds, usually measured as latency.Availability: a quick response says nothing about how often the system is down.

Two recovery measures are worth knowing by name: the recovery point objective (RPO) is how much recent data the business can afford to lose, and the recovery time objective (RTO) is how long it can afford to be down.

Designing resilient infrastructure: redundancy and replication

Resilient infrastructure keeps serving when a component fails, and the main technique is redundancy: running more than one copy of each part in separate failure domains, so no single failure takes the service down. In Google Cloud the failure domains are nested: a zone is a deployment area inside a region, and a region is a separate geographic location with several zones.

The rule is that redundancy protects only against failures of a domain the copies do not share:

Where the copies runFailure it survives
Several instances in one zoneOne instance failing
Instances in several zones of one region, behind a load balancerOne zone failing — the load balancer sends users to the healthy zones
Deployments in two or more regionsA whole region failing

Resilience comes from where the copies are placed, not from how large each machine is.

Replication keeps copies of data in more than one zone or region so that the redundant compute has current data to serve from. How far behind the copy runs sets the RPO: continuous replication keeps it seconds or minutes behind, while a copy refreshed once a night can be up to a day behind. For example, an order system that may lose at most the last five minutes of orders needs continuous replication to wherever it fails over.

Scalable infrastructure and backups

Scalable infrastructure adds and removes capacity as demand changes, and backups preserve earlier copies of data; both are part of resilient design, and each protects against a different risk.

Scaling. A managed instance group runs identical virtual machines from a template, can spread them across zones, recreates failed instances (and, with a health check, unhealthy ones) automatically and, with autoscaling, adds instances as load rises and removes them when it falls. For demand that rises and falls — a tax-filing site busy near the deadline, a retailer during a holiday sale — capacity follows the load, so the service stays responsive and the company pays for extra instances only while they are needed. Serverless products such as Cloud Run scale in the same spirit without managing VMs at all.

Backups vs replication. Replicas are kept in sync, so they copy mistakes as faithfully as good data: a mistaken delete, a corrupted table or a faulty batch job reaches every replica within seconds. A backup holds the data as it was at an earlier moment, which is what lets the team undo a bad write. To be useful during a regional outage, backups must be stored outside the region they protect.

RiskWhat protects against it
One zone failsRedundant instances and replicated data across zones
A whole region failsA deployment in a second region with replicated data
Data deleted or corrupted by mistakeBackups (point-in-time copies), not replicas
Sudden surge in demandAutoscaling capacity

Resilience is about processes too: tested restore procedures, automated deployments that can be rolled back, and regular practice of failover, so recovery works when it is needed.

Measuring performance and reliability: the four golden signals

The four golden signals are latency, traffic, errors and saturation — the measurements Google's Site Reliability Engineering practice recommends watching for any user-facing system, because together they show whether it is serving users well.

SignalWhat it measuresExample
LatencyHow long requests take to be servedPage load time; 95th-percentile response time
TrafficHow much demand is placed on the systemRequests per second; concurrent sessions
ErrorsThe rate of requests that failPercentage of requests returning an error
SaturationHow full the system's constrained resources areCPU, memory or disk close to capacity

Saturation is the early warning: a message queue whose worker pool is almost fully busy may still process every message on time, and only once the pool is exhausted do latency and errors climb. The golden signals are the measurements; broader goals such as availability are calculated from them. In Google Cloud these signals are collected as metrics and charted and alerted on in Cloud Monitoring.

DevOps and SRE: SLIs, SLOs and SLAs

An SLI is the measurement, an SLO is the internal target set on that measurement, and an SLA is the contract with customers that says what happens if a promised level is missed. DevOps is the broad culture of developers and operators sharing responsibility for delivering and running software; Site Reliability Engineering (SRE) is Google's concrete way of practising it, built on these three terms.

TermWhat it isExampleConsequence of missing it
Service level indicator (SLI)A measured aspect of the serviceShare of requests that succeed; share served in under 300 msNone — it is a measurement, not a promise
Service level objective (SLO)The internal reliability target set on an SLI99.5% of requests succeed each monthAn internal warning; the team changes its priorities
Service level agreement (SLA)A contract with customers stating the promised level and the remedy99% monthly uptime, or service creditsContractual: credits or refunds are owed

The SLO is normally set stricter than the SLA. Missing the SLO then warns the team while there is still time to act before the contract is breached. Reading a result works in two steps: name each figure, then compare. Suppose an SLA promises 99%, the SLO is 99.5% and this month's SLI is 98.8%. The measurement is below both figures, so the SLO is missed (the team must act) and the SLA is breached too, so customers are owed the remedy the contract states. Compare the SLI with each target separately; missing one does not imply missing the other.

Error budgets and other SRE practices

An error budget is the amount of unreliability an SLO allows — for a 99.9% SLO, the remaining 0.1% of requests or time — and it is how SRE balances the speed of change against reliability. While budget remains, the team can take risks: ship features, run experiments, release often. When outages have used up the budget, the team pauses risky releases and puts its effort into reliability work until the budget recovers. The budget is a shared, agreed rule, which is what lets developers and operators settle release decisions with data instead of argument.

Other DevOps and SRE practices that support reliability:

  • Blameless postmortems — after an incident, the team writes up what happened, why and how to prevent it, focusing on systems and processes rather than blaming individuals, so people report problems openly.
  • Reducing toil through automation — repetitive manual operational work is automated so engineers can spend time on improvements.
  • Small, frequent, gradual releases — changes rolled out in small steps (for example to a fraction of users first) are easier to observe and roll back.
  • Monitoring and alerting on symptoms users feel — alerts tied to SLOs and the golden signals rather than to every internal event.

Tip. Questions on this topic are short business scenarios that describe a symptom, a goal or a requirement and ask which Observability product, operations term, design or reliability concept fits. Product scenarios describe a monitoring need — an alert on a measurement, searching what services wrote, a slow multi-service request, resource use inside code, recurring exceptions, or a site that visitors cannot reach. Resilience scenarios describe the failure the business must survive (an instance, a zone or a region), how much recent data it can afford to lose, and whether accidental changes must be reversible. Golden-signal scenarios describe a dashboard reading and ask which signal it shows. SRE scenarios ask you to name an SLI, SLO or SLA, explain why the SLO is stricter, compare a measured value with both targets, or say what happens when an error budget is spent. Expect a few Select TWO items.

Key takeaways
  • Google Cloud Observability (formerly the operations suite) is Google Cloud's managed suite for metrics, logs, traces, profiles and errors.
  • Cloud Monitoring = metrics, dashboards, alerting policies and uptime checks; Cloud Logging = central, searchable log entries.
  • Cloud Trace shows where delay builds up across services; Cloud Profiler shows which functions use CPU and memory inside the code.
  • Error Reporting groups exceptions from logs by cause, with counts and first-seen times, and flags new kinds.
  • An uptime check probes a public URL from the internet like a visitor, so it sees failures that never reach the servers.
  • High availability = accessible with minimal downtime; operational excellence = how well the team deploys, runs and improves workloads.
  • Redundancy protects against the failure domain the copies do not share: several zones for a zone outage, several regions for a regional one.
  • Replicas copy mistakes; only backups — stored outside the region they protect — can undo deleted or corrupted data.
  • The four golden signals are latency, traffic, errors and saturation; saturation is the early warning.
  • SLI = measurement, SLO = stricter internal target, SLA = contract with credits; the error budget is the unreliability the SLO allows.

Frequently asked questions

What is Google Cloud Observability?

Google Cloud Observability is Google Cloud's managed suite for monitoring application health and performance, previously called the operations suite (and before that Stackdriver). It includes Cloud Monitoring for metrics, dashboards and alerts, Cloud Logging for central log storage and search, Cloud Trace for request latency across services, Cloud Profiler for CPU and memory use in code, and Error Reporting for grouping application errors.

What is the difference between Cloud Trace and Cloud Profiler?

Cloud Trace follows individual requests across the services they call and shows how long each step takes, so it finds which service adds delay to a slow request. Cloud Profiler continuously samples running production code with low overhead and shows which functions use the most CPU and memory inside a service, which helps reduce compute costs.

What is the difference between Cloud Logging and Error Reporting?

Cloud Logging stores and searches every log entry that applications and Google Cloud services write. Error Reporting analyzes the error entries in those logs, groups them by cause into error groups with counts and first-seen times, and can notify the team when a new kind of error appears.

What are the four golden signals?

The four golden signals from Google's Site Reliability Engineering practice are latency (how long requests take), traffic (how much demand the system receives, such as requests per second), errors (the rate of failed requests) and saturation (how full constrained resources such as CPU, memory or disk are). Saturation often warns of trouble before latency and errors rise.

What is the difference between an SLI, an SLO and an SLA?

A service level indicator (SLI) is a measurement of the service, such as the share of successful requests. A service level objective (SLO) is an internal target set on that measurement, such as 99.5% successful requests a month. A service level agreement (SLA) is a contract with customers that promises a level, such as 99%, and states a remedy such as service credits if it is missed. SLOs are usually stricter than SLAs so the team gets a warning before the contract is breached.

What is an error budget?

An error budget is the amount of unreliability a service level objective allows, for example 0.1% of requests for a 99.9% SLO. While budget remains, a team can release features and take risks; once outages have used it up, Site Reliability Engineering practice is to pause risky releases and work on reliability until the budget recovers.

Why do you need backups if your data is already replicated?

Replication keeps copies of data in sync across zones or regions, so it also copies mistakes such as accidental deletions, corruption or a faulty batch job. A backup preserves the data as it was at an earlier time, so it can restore the good data. Backups should be stored outside the region they protect so they stay reachable during a regional outage.

What is the difference between high availability and scalability?

High availability means a system stays accessible with minimal downtime, usually by running redundant components in separate zones or regions so one failure does not take it down. Scalability means a system can handle more load by adding resources, for example with an autoscaling managed instance group. A system can scale well and still go down if all of its capacity sits in one zone that fails.

Source

This lesson covers the "Scaling with Google Cloud Operations" domain of the official CDL exam guide. Vendors revise their guides — check the source for the current version.

Test yourself on this topic
Practice now

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?