↑ ↓ 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 / D2 Modernize Infrastructure and Applications with Google Cloud

    D2.1

    Modernize Infrastructure and Applications with Google Cloud (part 1 of 3)

    • 8 min read
    • 11 sections
    • 24 questions
    • Exam domain: Modernize Infrastructure and Applications with Google Cloud

    Why move to the cloud: CapEx vs. OpEx

    On-premises infrastructure is a capital expenditure (CapEx): hardware is bought and installed ahead of time, sized for peak demand, which means idle capacity (and cost) most of the time, plus the lead time to buy and rack more hardware when growth outpaces the original sizing.

    Cloud services flip this to an operational expenditure (OpEx) model: pay-as-you-go, scale up or down with real demand, no upfront procurement.

    "One of the key benefits of cloud computing is the opportunity to replace upfront capital infrastructure expenses with low variable costs that scale with your business." — AWS Overview whitepaper

    "With the cloud, businesses no longer need to plan for and procure servers and other IT infrastructure weeks or months in advance." — AWS Overview whitepaper

    This CapEx→OpEx shift is the standard explanation for "why does X hold back scaling on legacy infrastructure" or "what changes when an organization adopts cloud" style questions.

    Service models: IaaS / PaaS / SaaS

    Model Customer manages Provider manages Flexibility vs. management
    IaaS OS, runtime, data, app code Physical hardware, virtualization, network Most customer flexibility, most customer management
    PaaS App code, data OS, runtime, middleware, infrastructure Balance of flexibility and managed convenience
    SaaS Data, user access/config Everything else (app, platform, infrastructure) Least customer management, least customer flexibility

    "With a SaaS offering, you do not have to think about how the service is maintained or how the underlying infrastructure is managed; you only need to think about how you will use the software." — AWS, What is SaaS?

    "The SaaS vendor manages the hardware, the software tools, and the application in its own data center or cloud environment." — AWS, What is SaaS?

    IaaS — customer manages morePaaS — balancedSaaS — provider manages almost everythingOSRuntimeApp codeDataApp codeDataData / access only

    Compute options

    Need Google Cloud product
    Full control over VM OS, custom images Compute Engine
    Containers, need to configure cluster infra yourself (networking, scaling, hardware, security) GKE Standard
    Containers, want Google to manage nodes/cluster so the team focuses on the app GKE Autopilot
    Small, single-purpose code that reacts to an event, no server management Cloud Functions (now Cloud Run functions)
    Interruptible, fault-tolerant batch work, lowest possible compute cost Preemptible VMs (or newer Spot VMs)
    • GKE (Standard): "GKE is ideal if you need a platform that lets you configure the infrastructure that runs your containerized apps, such as networking, scaling, hardware, and security." (GKE overview)
    • GKE Autopilot: "Focus on your apps: Google manages the infrastructure, so you can focus on building and deploying your applications." (GKE Autopilot overview)
    • Cloud Functions / Cloud Run functions: event-driven, serverless; "Develop faster by writing and running small code snippets that respond to events." Google has since rebranded the product — "Cloud Functions is now Cloud Run functions" — so an exam question naming "Cloud Functions" is testing the same serverless FaaS concept under its older name.
    • Preemptible VMs: "If your apps are fault-tolerant and can withstand possible instance preemptions, then preemptible instances can reduce your Compute Engine costs significantly." They are capped at 24 hours per run — "preemptible VMs can only run for up to 24 hours at a time" — which fits restartable batch jobs (e.g. video/scene rendering) with no completion SLA, checkpointed to Cloud Storage.
    • Custom images: Compute Engine is where custom (e.g. migrated Linux) OS images are created/imported and used to launch VMs — "Custom images are ideal for situations where you have created and modified a persistent boot disk or specific image to a certain state and need to save that state for creating VMs."
    What are you running?Compute EngineGKE StandardGKE AutopilotCloud Run functionsPreemptible / Spot VMsVMs, custom OSContainers, want full controlContainers, no cluster opsSmall event-driven functionFault-tolerant batch, lowestcost

    Virtualization: hypervisors, VMs, containers

    A hypervisor lets one physical machine run multiple independent operating systems as virtual machines:

    "A hypervisor is a software application that you can use to run multiple virtual machines (VMs) on a single physical machine." — AWS, What is a hypervisor?

    A virtual machine is a fully isolated system with its own virtualized hardware and its own guest OS:

    "A virtual machine (VM) is a digital version of a physical machine that functions as an isolated system with its own virtualized hardware resources and operating system." — AWS, What is a virtual machine?

    Containers, by contrast, share the host operating system's kernel — so if a requirement says "every application needs its own OS, not shared," the answer is VMs, not containers.

    Anthos and Apigee

    • Anthos is Google Cloud's hybrid/multicloud application platform: it provides one consistent platform to build new apps, modernize existing ones, and run workloads across Google Cloud, on-premises, and other clouds. "Anthos gives you a consistent platform across all your deployments." — any exam phrase combining hybrid, multicloud, consistent platform, modernize, build new + run anywhere points to Anthos.
    • Apigee is Google Cloud's API management platform: design, secure, publish and monetize APIs through a developer portal so other developers can discover and consume them. "Google Cloud's native API management tool to build, manage, and secure APIs—for any use case, environment, or scale."
    • An API itself is simply the contract that lets two programs talk to each other: "APIs are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols."

    CI/CD: Cloud Build

    Cloud Build is Google Cloud's fully managed CI/CD service. Build triggers watch a source repo and automatically start a build/test/deploy pipeline whenever code changes, removing manual build/test/deploy steps:

    "Cloud Build's build triggers to create an automated continuous integration/continuous delivery (CI/CD) workflow that starts new builds in response to code changes."

    Resource hierarchy and project design

    The Google Cloud resource hierarchy is organization → folders (optional) → projects → resources. The organization resource should be the root, set up first, because it is the inheritance point for IAM and organization policies:

    "The organization resource represents an entity (such as a company) and serves as the root node of the Google Cloud resource hierarchy."

    Projects are the real isolation boundary — for IAM, APIs, billing and network trust:

    "Projects serve as an isolation layer. By default, resources in one project don't have access to resources in another project."

    This is why the standard pattern for separating environments is one project per environment (e.g. one for dev, one for production), not labels/tags inside a single shared project — labels/tags are metadata for organizing or billing, not an access boundary. A single project can still span multiple regions, so a multi-region production workload does not need one project per region.

    Organization — root, IAM &policy inheritanceFolder: optional groupingFolder: optional groupingProject: devProject: prod (Compute Engine,region A + region B)

    Databases: when to pick Cloud Spanner

    For workloads needing strict, globally consistent ACID transactions at virtually unlimited scale (e.g. global payments/banking), the answer is Cloud Spanner, not Cloud SQL (regional, vertically scaled), Cloud Storage (object store, no transactions) or Firestore (scales well but without Spanner's strongly consistent, serializable cross-row transactions at global scale):

    "All read-write transactions provide the ACID properties of relational databases."

    Migration and modernization strategies

    Term Meaning
    Rehost Lift-and-shift: move the workload to the cloud with no code or architecture changes
    Replatform "Lift-tinker-and-shift": small optimizations (e.g. move to a managed database) without changing the core architecture
    Repurchase Move to a different product, typically a SaaS replacement
    Refactor / re-architect Re-imagine how the app is built, usually to use cloud-native features
    Retire Turn off applications no longer needed
    Retain Keep as-is for now

    "Rehosting — Otherwise known as 'lift-and-shift.'"

    "4. Refactoring / Re-architecting — Re-imagining how the application is architected and developed, typically using cloud-native features." — AWS, 6 Strategies for Migrating Applications to the Cloud

    Separately, greenfield vs. brownfield describes the context of a modernization project, not the migration technique:

    "Brownfield projects involve developing and deploying a new software system within the context of existing or legacy systems."

    "Greenfield projects involve creating a system from scratch for a completely new environment, without any legacy code involved."

    Building a new cloud application to replace an existing on-premises application is brownfield (legacy context exists), even though the new app itself is built fresh — greenfield would be a project with no pre-existing system to consider at all.

    Resilience and multi-cloud

    A multi-cloud (or multi-region) architecture adds redundant capacity and failover paths, so a region-wide or provider-wide problem does not take the whole system down, and the system can keep operating through unexpected demand spikes:

    "Region-wide failures, so the service can fail over to a secondary region and continue operating during a region disruption." — Azure reliability documentation

    Serverless: the scalability/cost benefit

    Serverless platforms (Cloud Functions/Cloud Run functions, Cloud Run, etc.) automatically scale compute to match real traffic, including scaling down to near zero when idle, so an organization launching an app with unknown demand does not pay for capacity it isn't using:

    "Due to its pay-per-value pricing model and scale based on demand, serverless effectively reduces the capacity planning effort."

    Exam traps

    • "Cloud Functions" in older questions = today's Cloud Run functions (Google renamed the product); the underlying serverless/event-driven concept is unchanged.
    • GKE Standard = you configure the cluster; GKE Autopilot = Google configures the cluster. Don't mix these up when the question says "complete control" vs. "focus on development, not cluster management."
    • Separate environments (dev/prod): separate projects, not labels or tags inside one project. A single project can span multiple regions.
    • "Every app needs its own OS": VMs, not containers (containers share the host kernel).
    • Brownfield = modernizing/replacing something that already exists; greenfield = building with no legacy constraints at all.
    • CapEx→OpEx is the default explanation whenever a question frames cloud adoption in financial/ownership terms.

    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