↑ ↓ to move, Enter to open, Esc to close

    GCP-CDLDigital Leader

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search
    Free exam

    Exams / GCP-CDL / D3 Scaling with Google Cloud Operations

    D3.1

    Scaling with Google Cloud Operations (part 1 of 2)

    • 11 min read
    • 12 sections
    • 31 questions
    • Exam domain: Scaling with Google Cloud Operations

    Why organizations move to the public cloud

    A public cloud provider owns and runs the physical infrastructure that multiple customers share, and bills on consumption instead of upfront purchase:

    "As a result, leveraging public cloud services reduces IT operational costs and frees up time for teams to focus on valuable work that directly benefits the business." — What Is a Public Cloud?

    For a company absorbing acquisitions or scaling fast, centralizing all workloads (its own and any acquired subsidiaries') on one public cloud lowers infrastructure-management overhead, keeps cost tied to actual usage, and inherits the provider's built-in security and reliability, instead of each site building and staffing its own on-premises stack.

    Cloud elasticity also fixes the classic on-premises sizing problem — fixed hardware is either idle most of the time or overwhelmed at peaks:

    "...little capacity as you need, and scale up and down as required with only a few minutes'..." — AWS: Six Advantages of Cloud Computing "...experience when the demand on the application exceeds its capacity." — Auto Scaling benefits for application architecture

    On-premises capacity is fixed by hardware already bought; once traffic exceeds it, the application fails. Cloud capacity can expand and shrink with demand, and the bill tracks only what is actually consumed.

    CapEx vs. OpEx

    On-premises Cloud
    Spending model Capital expenditure (CapEx) — pay upfront for hardware/software, used or not Operational expenditure (OpEx) — pay as resources are consumed
    Cost management Largely fixed once purchased Usage-driven — must be reviewed frequently since it changes with workload

    "...resources are treated as OpEx, where costs are incurred when the cloud resources..." — Well-Architected Framework: Cost optimization pillar

    Because cost now tracks usage, AWS's own cost guidance makes the same point Google Cloud's framework does: review cost and usage regularly rather than only at bill time or when something breaks.

    "You must regularly report on cost and usage optimization within..." — AWS Well-Architected Framework — Report and notify on cost optimization

    To catch overspend before the invoice, set a Cloud Billing budget with alert threshold rules:

    "After you've set a budget amount, you set budget alert threshold rules that..." — Create, edit, or delete budgets and budget alerts

    Buying compute cheaply: on-demand, committed use, Spot

    Need Best fit Why
    Short-lived, temporary spike (e.g. 2 extra weeks of capacity) On-demand (pay-as-you-go) VM No long-term commitment; stop it when the need ends
    Predictable, steady-state usage over 1–3 years Committed use discount (CUD), sized to the steady baseline only Must be paid for the whole term regardless of use; bigger discount for 3-year than 1-year
    Fault-tolerant, restartable, non-time-critical batch jobs Spot (preemptible) VM Deep discount on spare capacity; Compute Engine can reclaim it any time

    "Resource-based commitments are ideal for predictable and steady state usage." — Committed use discounts (CUDs) for Compute Engine "...such as batch processing jobs or stateless applications." — Spot VMs

    Only commit the portion of usage that is always needed. If baseline load is steady but occasionally spikes (e.g. 200 CPUs continuously, bursting to 300 about 30% of the time), commit only the 200-CPU baseline on the longer (3-year) term for the bigger discount, and let the intermittent spike run on pay-as-you-go — committing the spike capacity would mean paying for it even when unused.

    When many projects share one Cloud Billing account and each project's cost varies but the combined total is stable, turn on CUD sharing so one commitment pools across all linked projects instead of sizing a commitment per project:

    "CUD sharing pools your resource-based committed use discounts (CUDs) at the Cloud Billing account level so that a commitment purchased in one..." — Share resource-based CUDs across projects

    Network Service Tiers

    Tier Optimized for Path
    Premium Performance Google's own global backbone, end to end
    Standard Cost Public ISP/transit networks for the internet leg — cheaper per GB

    "Use Premium Tier to optimize for performance, and use Standard Tier to optimize..." — Network Service Tiers overview

    To minimize the cost of traffic leaving Google's network to the internet, pick Standard tier, not a VPN or NAT product (those manage connectivity, not egress pricing).

    Serverless compute for event-driven, scale-to-zero code

    Product Fits when
    App Engine A full autoscaling web app, with Google managing all the infrastructure
    Cloud Functions (Cloud Run functions) A small, lightweight piece of code that reacts to an event (a database write, a Pub/Sub message, a Cloud API call) and must scale to zero when idle
    GKE / Compute Engine / App Engine flexible Workloads that need a persistently managed VM or cluster — not scale-to-zero

    "A fully managed environment lets you focus on code while App Engine manages infrastructure concerns." — App Engine "Cloud Run functions automatically manages and scales underlying infrastructure with the size of workload." — Cloud Functions

    Firebase Realtime Databasewrite(user follows another user)Cloud Function(event trigger)Pub/SubCloud APIsNotification to the followed user

    Data at rest: Cloud Storage classes

    Class Target access pattern Relative storage cost
    Standard Frequent ("hot") Highest
    Nearline About once a month Lower
    Coldline About once a quarter or less Lower still
    Archive About once a year or less Lowest

    "Coldline storage is a very-low-cost, highly durable storage service for..." storing infrequently accessed data — Cloud Storage classes "Archive storage is the lowest-cost, highly durable storage service for data" that you plan to access less than once a year — Cloud Storage classes

    All classes share the same 99.999999999% annual durability and the same unified API — they differ only in availability and price for a given access frequency, not in durability or API surface. Annual disaster-recovery test backups accessed once a year belong in Archive, not Coldline, because the storage-cost saving outweighs Archive's higher retrieval fee at that access frequency.

    Observability and operational tools

    Tool Purpose
    Cloud Logging Centrally collect, store, search and analyze log data from Google Cloud services, GKE and VMs, plus custom application logs
    Cloud Monitoring Metrics, dashboards, alerting
    Trace Request-latency analysis across services
    Profiler CPU/memory profiling of running code
    Cloud Debugger (deprecated May 16, 2022; shut down May 31, 2023) Historically: inspect a running application's state (variables, call stack) at any code location, without stopping or slowing it

    "Cloud Logging automatically collects log data from Google Cloud resources." — Cloud Logging overview "By default, GKE clusters send logs to Cloud Logging." — Collect GKE logs "Cloud Debugger Description: Is a feature of Google Cloud Platform that lets you inspect the state of an application, at any code location, without stopping or slowing down the running app." — Cloud Debugger Java client overview "Cloud Debugger was deprecated on May 16, 2022 and the service was shut..." down on May 31, 2023 — Cloud Debugger deprecation

    "Out-of-the-box observability" means this built-in visibility into the health, performance and availability of infrastructure and applications, with no extra tooling to build:

    "Gain visibility into the performance, availability, and health of your applications and infrastructure." — Site Reliability Engineering (SRE)

    SRE concepts: SLI, SLO, SLA, error budget

    Term Meaning
    SLI A measured indicator of service performance (e.g. latency, availability)
    SLO An internal target for an SLI — deliberately tighter than the SLA
    SLA The contractual commitment to the customer, with consequences if missed
    Error budget 1 − SLO, the amount of allowed "badness" before the SLO is breached

    "SLOs are typically more stringent than public or contractual..." — SLO monitoring

    Because the SLO sits inside the SLA, missing the SLO while still meeting the SLA is an early warning, not a customer-facing breach — it should push the team to prioritize reliability work, not panic about downtime.

    Error budget policy balances reliability against feature velocity:

    "If the error budget is close to depleted,..." taking risky actions like pushing new updates becomes risky — SLO monitoring

    As long as the error budget is not exhausted, the team should keep innovating and shipping features; only a depleted budget forces a stability-first, release-slowing posture.

    Downtime at "N nines"

    Error budget = (1 − SLO) × period length. At 99.999% ("five nines") availability, the allowed downtime is 0.001% of a year ≈ 5 minutes:

    "Your error budget for a compliance period is (1 − SLO goal) ×..." — SLO monitoring

    Availability Approx. yearly downtime
    99% ("two nines") ~3.65 days
    99.9% ("three nines") ~8.76 hours
    99.99% ("four nines") ~52.6 minutes
    99.999% ("five nines") ~5.26 minutes

    The Four Golden Signals

    Signal Measures
    Latency Time to service a request
    Traffic Demand / request volume
    Errors Rate of failed requests
    Saturation How "full" a resource is

    "A latency SLI is the ratio of the number of calls below..." a latency threshold to the number of all calls — SLO monitoring

    An application that is simply slow to return a result is a latency problem, not a traffic, error or saturation one.

    SRE culture: toil, blameless postmortems, shared ownership

    • Toil is repetitive, manual, operational work with little lasting value. Automating it is the main lever SRE uses to raise operational efficiency and free engineers for higher-value work.

      "Out-of-the-box integrations to increase automation, reduce toil" — Site Reliability Engineering (SRE)

    • Failure is normal. SRE expects things to break and treats every incident — even a minor bug — as a blameless learning opportunity, never a reason to reprimand an individual or expect to eliminate all future bugs.

      "Learning: To help prevent failures from recurring, learn from each..." incident — Well-Architected Framework: Reliability pillar

    • DevOps breaks down silos between development and operations teams not by merging job titles or adding encryption, but by building shared ownership of business outcomes across both teams.

      "Take a deep dive into DevOps, the organizational and cultural movement that aims to increase software delivery velocity, improve service reliability, and build shared ownership among software stakeholders." — DevOps solutions

    • Redundancy — duplicating critical components — is the standard design response to eliminate single points of failure and raise reliability.

      "Build highly available systems through resource redundancy" — Well-Architected Framework: Reliability pillar

    SLO missed?Keep innovating:ship featuresStability first:pause risky releases, fix reliabilityNo, or budget remainsError budget exhausted

    Reducing latency for distant users

    Deploying a replica of an application in the Google Cloud region closest to the users reduces the network-distance component of latency. Adding more zones or regions elsewhere (e.g. within Europe for European traffic) improves resilience there but does nothing for users on a different continent.

    "...requests by deploying the application in the Google Cloud region that's..." closest to your users — Regional deployment archetype

    BigQuery ML for operational use cases

    BigQuery ML builds and runs machine-learning models directly on data already stored in BigQuery, using SQL — no need to export data to a separate ML platform:

    "BigQuery ML lets you build and operationalize machine learning (ML)..." models over data in BigQuery by using SQL — Model creation | BigQuery

    A typical fit: an organization with historical equipment and customer data in BigQuery (e.g. an EV-charger network) builds a predictive-maintenance model in place, to schedule upkeep proactively and reduce waste.

    Google Cloud Customer Care tiers

    Tier Fits Initial response (P1/critical)
    Basic No paid technical support —
    Standard Lower urgency, lower cost Slower (hours-scale, e.g. ~4h for P2)
    Enhanced Production workloads needing a fast, affordable SLA ~1 hour
    Premium Mission-critical, enterprise-scale, highest cost Fastest, plus a named Technical Account Manager

    "Ideal for workloads in production, with 1-hour response time" — Enhanced Support

    For a first production launch needing a 2-hour SLA at the lowest qualifying cost, Enhanced Support is the fit — Premium also qualifies but costs more than necessary.

    Exam traps

    • Coldline vs. Archive vs. Nearline vs. Standard — the differentiator is access frequency, not durability (identical across classes) or API (identical across classes). Match the stated access cadence (monthly/quarterly/yearly) to the class.
    • "Lowest cost" compute questions hinge on duration and fault-tolerance: short-lived: on-demand; steady, long-term → CUD (committed to the steady baseline only, never the occasional spike); restartable/non-urgent batch → Spot.
    • CUD sharing vs. per-project commitments: when combined spend is stable but individual project spend fluctuates, share the commitment at the billing-account level instead of sizing commitments per project.
    • SLO vs. SLA: missing the SLO while still meeting the SLA is a reliability warning, not an outage for end users — don't conflate the two thresholds.
    • Error budget remaining → innovate; error budget exhausted → stabilize. The direction of this rule is a common trap.
    • Four Golden Signals: match the complaint to the signal precisely — "too slow" is latency, not saturation or traffic.
    • Some question-bank items still name Cloud Debugger, which Google deprecated in 2022 and shut down in 2023 — know what it did (inspect running production state) for the exam, but don't expect it to exist in the console today.
    • Standard vs. Premium network tier: Standard is cheaper for internet egress; Premium is faster via Google's backbone. Neither Cloud VPN nor Cloud NAT is a pricing tier.
    • DevOps silos: the fix communication provides is shared ownership of outcomes, not merged job titles or more encryption.

    Docs

    The rest of this chapter is part of the GCP-CDL premium course

    Unlock every chapter, all 289 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters