↑ ↓ 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.2

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

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

    Regions, zones, and placing VMs for redundancy and latency

    A region is an independent geographic area made of zones; each zone is a deployment area within a region, and zones should be treated as separate failure domains:

    "Regions are independent geographic areas that consist of zones." — Geography and regions

    "Zones should be considered a single failure domain within a region." — Geography and regions

    Zones in the same region are connected by high-bandwidth, low-latency links to each other:

    "Zones have high-bandwidth, low-latency network connections to other zones in the same region." — Regions and zones, Compute Engine

    This is the standard exam pattern for "redundancy and very low latency (single-digit milliseconds) between VMs": a single zone gives no redundancy (one failure domain); different regions add inter-region network latency that breaks a sub-10ms requirement. The answer that satisfies both constraints at once is different zones within a single region.

    Need redundancy AND <10mslatency?No redundancyHigh-bandwidth, low-latency link— redundant AND fastRedundant but higher latencySingle zoneDifferent zones, same regionDifferent regions

    Service models recap: IaaS / PaaS / SaaS

    Building on part 1's table:

    "Platform as a Service, also known as PaaS, is a type of cloud computing service model that offers a flexible, scalable cloud platform to develop, deploy, run, and manage apps." — What is PaaS?

    A requirement phrased as "run a custom application, flexible and scalable, without managing any infrastructure" is a PaaS question — not IaaS (customer still manages the OS/runtime) and not SaaS (no custom application to deploy, it's a finished product).

    Compute options: matching the requirement to the product

    Requirement in the question Google Cloud product
    Complete control of VM infra, autoscale + automatic updates for a custom app Compute Engine with managed instance groups
    Preferred language/tools, minimize infrastructure management Cloud Run
    Small team, single container, simple serverless scalable hosting Cloud Run
    Fully featured platform specifically for a mobile app Firebase
    Write code for a new capability, provider manages infrastructure Serverless computing (Cloud Run functions, Cloud Run)
    Frequent business-app updates with zero downtime GKE (rolling-update deployment pattern)
    • Compute Engine + managed instance groups (MIGs): MIGs "automatically repair failed instances by recreating them," and the autoscaler can "create or delete VMs according to demand" — this combination is what gives Compute Engine "autoscale and update automatically" while still leaving the customer in complete control of the VM infrastructure.
    • Cloud Run: "a fully managed application platform for running your code, function, or container on top of Google's highly scalable infrastructure." It supports any language, is serverless (no cluster or server management), and Google explicitly markets it as "a serverless, fully managed PaaS solution for container-based development."
    • Firebase: not a general compute product — it's a comprehensive mobile and web app platform (auth, data sync, hosting, messaging, analytics, functions) specifically for building iOS/Android/web apps quickly. When a question says "fully featured platform for a mobile app," the expected answer is Firebase, not App Engine or GKE.
    • Serverless computing (the concept): "developers can build and run applications without having to manage any servers and pay only for the exact amount of resources used." This is the generic service-model answer when the question asks about writing code vs. managing infrastructure, as opposed to naming a specific product.
    • GKE rolling updates: GKE lets teams "deploy changes without any downtime," updating a subset of instances while the rest keep serving traffic — the standard answer whenever a question links "frequent updates" with "no downtime" for a containerized app.
    What does the question ask for?Compute Engine + MIGsCloud RunFirebaseGKE rolling updatesFull VM control +autoscale/auto-updateAny language, minimal infraops, containersMobile-app-specific platformFrequent updates, zerodowntime, containers

    Containers vs. VMs: why containers deploy faster

    Containers share the host OS kernel instead of each booting a separate guest OS:

    "Containers share the OS kernel and use a fraction of the memory VMs require" — What are containers?

    When VM-based rolling updates become slow specifically because of OS boot time, the fix is to convert the application to containers (no per-instance OS boot), not to add more VM resources or just automate the rollout — those don't remove the boot-time cost.

    Migrating and modernizing existing workloads

    Starting point Target Google Cloud product
    Hypervisor-based private cloud (e.g. VMware), fast migration, minimal change, max managed services VMware workloads kept as-is, but managed Google Cloud VMware Engine
    Linux/Windows VMs, want to modernize to cloud-native as part of the migration Containers on GKE/Anthos Migrate for Anthos (now part of Migrate to Containers)
    On-prem containers + VM disks Artifact Registry (images) + Cloud Storage (staged disks) → Compute Engine Artifact Registry and Cloud Storage
    • Google Cloud VMware Engine: "Fully managed, native VMware Cloud Foundation software stack on Google Cloud," and you can "get started quickly by migrating your VMware environment with just a few clicks." This is the answer whenever a question wants the fastest migration with the least application/tooling change and the most Google-managed infrastructure — as opposed to Compute Engine (requires converting to native GCE VMs) or Bare Metal Solution (still customer-managed hardware).
    • Migrate for Anthos: "helps automate the process of moving your applications — whether they are Linux or Windows — from various virtual machine environments to containers on either Google Kubernetes Engine (GKE) or Anthos." Pick this over "Migrate for Compute Engine" or a VMDK export whenever the question explicitly wants the migration itself to also modernize the workload into a cloud-native (container) form.
    • Artifact Registry + Cloud Storage for migration: Artifact Registry "can store Docker and OCI container images," covering the container-image side of a migration. For VM disks, you must first "add the virtual disk image file to Cloud Storage" before it can be imported into a Compute Engine image — Cloud Storage is the staging service, not the final compute target.
    • Cloud migration in general: moving to the cloud "helps companies modernize workloads, reducing burdensome licensing fees from legacy applications" — this is the generic justification for "why migrate some legacy infrastructure" questions, alongside building new cloud-native apps.
    On-prem VMware hypervisorGoogle Cloud VMware EngineOn-prem Linux/Windows VMsMigrate for AnthosContainers on GKE/AnthosOn-prem container imagesArtifact RegistryOn-prem VM disksCloud Storage stagingCompute Engine imagefast, minimal change, maxmanagedmigrate AND modernize

    Greenfield vs. brownfield (recap and contrast)

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

    If a question says the organization wants to build completely new cloud infrastructure and applications with no legacy involved at all, that is greenfield — distinct from "move then change" or "change then move," which both assume an existing application being migrated.

    Cloud-native development and release velocity

    "Continuous delivery ensures that software releases are more reliable and less risky, allowing teams to deliver new services and features more rapidly and frequently." — What is cloud native?

    "This enables teams to deploy and scale components independently, so they can make updates, fix issues, and deliver new features without any service interruption." — What is cloud native?

    This is the recurring justification across several question styles in this module:

    • "Why does moving legacy apps to the cloud help meet user demand?" → updates/bug fixes ship faster.
    • "What prompted modernizing cloud applications?" → on-prem apps that take months to update/deploy.
    • "Why build cloud-native instead of modernizing on-prem?" → agile, frequent feature launches that keep up with changing user preferences, not a one-time migration.

    Microservices: the refactoring benefit

    "Improved scalability: Individual microservices can be scaled independently based on their specific needs." — What is microservices architecture?

    Refactoring a monolith into microservices while migrating to the cloud makes the application more efficient and scalable (each service scales on its own) — it is not a free, code-change-free, or especially fast migration pattern, and it does not grant automatic compliance (e.g. PCI-DSS).

    Databases: Cloud Spanner for global, consistent transactions

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

    "It offers transactional consistency at global scale, automatic, synchronous replication for high availability, and support for two SQL dialects: GoogleSQL (ANSI 2011 with extensions) and PostgreSQL." — Spanner documentation

    A global, multi-region workload needing both strict transactional consistency and virtually unlimited data growth (e.g. global payments/banking) points to Cloud Spanner — not Cloud SQL (regional, vertically scaled), Cloud Storage (no transactions) or BigQuery (analytics, not OLTP).

    Cloud Storage: multi-regional storage for global availability

    "In the unlikely event of a region-wide outage, such as one caused by a natural disaster, dual-region and multi-region buckets remain available, with no need to change storage paths." — Data availability and durability

    For "serve content worldwide, need high availability," the answer is the multi-regional storage location type, not encryption or versioning (which address confidentiality and accidental-loss protection, not availability).

    Anthos: hybrid and multicloud management

    "Powered by Kubernetes and other open-source technologies, Anthos is the only software-based hybrid platform available today that lets you run your applications unmodified on existing on-premises hardware investments or in the public cloud." — Anthos FAQ

    Anthos is the answer whenever a question needs to build and run applications across both on-premises and cloud environments under one consistent platform — a different need from pure cloud compute products like Compute Engine, App Engine or Cloud Functions.

    APIs: integrating with (not rewriting) legacy systems

    An API exposes selected legacy functionality through a stable, defined interface, so new applications (e.g. a mobile app) can consume it without the legacy system needing to be rewritten:

    "Virtualization masks your data implementations from application developers to safely expose mainframe assets as APIs into distributed channels on AWS applications and databases." — Integration architectures between mainframe and AWS for coexistence

    This is the pattern behind two related question styles: "why use APIs when legacy systems can't keep up?" (answer: long-term operational flexibility, since consumers are insulated from internal implementation and the legacy system can evolve behind the API) and "benefit of an API for a new customer-facing app on top of a legacy system?" (answer: the legacy system does not have to be rewritten).

    Purpose-built hardware

    "We strive to build the world's most energy-efficient computing infrastructure, outfitting each Google data center with high-performance servers designed to use as little energy as possible compared to the amount of data they process." — Google data center efficiency

    Google's advantage from designing its own server hardware is efficiency (performance per watt, tailored to its own workloads) — not backward compatibility, lower build cost, or exclusive software.

    Exam traps

    • "Redundancy and extremely low latency (<10ms) between VMs": different zones, same region (not a single zone, not multiple regions).
    • "Completely new, no legacy at all": greenfield; an existing or replaced legacy context (even for a newly built app) → brownfield.
    • Migrating a hypervisor/VMware workload with minimal change and max managed services: Google Cloud VMware Engine, not Compute Engine or Bare Metal Solution.
    • Migrating VMs and modernizing to cloud-native in the same step: Migrate for Anthos (containers), not Migrate for Compute Engine (stays a VM) or a VMDK export.
    • VM rolling updates slow because of OS boot time: convert to containers (shared kernel, no per-instance boot), not "add more resources."
    • "Fully featured platform for a mobile app": Firebase, not App Engine/GKE/Cloud Functions.
    • Global, multi-region, strictly consistent transactions at huge scale: Cloud Spanner, not Cloud SQL/BigQuery/Cloud Storage.
    • Serve content worldwide with high availability: Cloud Storage multi-regional storage, not encryption or versioning.
    • Hybrid (on-prem and cloud) build/run management: Anthos, not a cloud-only compute product.
    • API benefit over legacy systems: avoids rewriting the legacy system / gives long-term flexibility, not "re-architects everything" or "exposes all data."

    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