All guides
Practice now
D4 · Infrastructure and application modernization

Migration and modernization to Google Cloud

The 6 Rs of migration, Google Cloud tools for migrating workloads, and the application modernization path.

The 6 Rs of cloud migration

When a company moves workloads to the cloud, it chooses a migration strategy. The "6 Rs" are the industry-standard framework for categorizing these strategies.

Rehost"Lift and shift"

Moves the app to the cloud as-is, without modifications. VM → . No optimization, maximum migration speed.

When to apply

Migrate quickly to exit a datacenter. First step before modernizing.

Replatform"Lift and optimize"

Small changes to take advantage of cloud capabilities without redesigning. E.g.: migrating from MySQL on VMs to .

When to apply

You want basic cloud benefits (managed service, automatic backups) with minimal effort.

Repurchase"Drop and shop"

Switch to a different SaaS product. E.g.: moving from an in-house CRM to Salesforce, or from Exchange to Google Workspace.

When to apply

The app isn't a business differentiator and a SaaS exists that covers the use case.

Refactor"Re-architect"

Redesign the app to use cloud-native capabilities: microservices, containers, serverless. More effort, greater long-term benefit.

When to apply

The app has scale or agility issues that can only be solved by redesign.

Retire

Eliminate apps that are no longer needed. Typically 10-20% of the portfolio in large migrations can be retired.

When to apply

The app is duplicated, has no active users, or the business no longer needs it.

Retain"Revisit later"

Keep the app on-premises for now for technical, contractual, or business reasons. Not everything needs to migrate on day 1.

When to apply

App with a long active contract, specific regulations, or migration not yet cost-effective.

Migration tools in Google Cloud

ToolWhat it migratesKey details
Migrate to Virtual MachinesVMs from VMware, AWS, Azure, or bare metal → Compute EngineContinuous replication + minimal cutover. Test the VM on GCP before the final cutover.
Database Migration ServiceRelational databases to Cloud SQL or AlloyDBPostgreSQL, MySQL, SQL Server. CDC (Change Data Capture) for migration with minimal downtime.
DatastreamReal-time database changes (continuous replication)Serverless CDC. Replicates from Oracle, MySQL, PostgreSQL to BigQuery, Cloud Storage, Spanner.
Storage Transfer ServiceData from AWS S3, Azure Blob, HDFS, on-premises → Cloud StorageScheduled or continuous transfers. For petabytes of data.
Transfer ApplianceMassive on-premises data (>20TB) → Cloud StorageA physical device that Google ships. Copy data offline and return it to Google.
BigQuery Data Transfer ServiceSaaS data (Google Ads, YouTube, Salesforce) → BigQueryNative connectors for dozens of external data sources.

Modernization: from VMs to cloud-native

1. Assess

Inventory and evaluate current apps. What to migrate, modernize, retire? Google Cloud Rapid Assessment & Migration Program (RAMP) helps with this analysis.

2. Migrate (Rehost)

Lift-and-shift: move VMs as-is to Compute Engine. Fast, no code changes. Foundation for later modernization.

3. Modernize (Replatform)

Containerize apps with Docker, deploy to GKE or Cloud Run. Migrate databases to managed services (Cloud SQL, Spanner). Adopt managed services.

4. Cloud-native (Refactor)

Redesign as microservices, use Cloud Run functions for event-driven logic, Pub/Sub for messaging, and managed APIs. Maximum use of GCP.

and Google Distributed Cloud: hybrid and multi-cloud

What used to be Anthos (later GKE Enterprise) is now part of GKE: fleets manage clusters on GCP, on-premises (), and on AWS or Azure (GKE Multi-Cloud) with a unified control plane for Kubernetes anywhere.

GKE clusters

Managed Kubernetes on-premises or in other clouds. Same GKE API across all environments.

Config Management

Policy-as-code: applies configurations and security policies across all clusters from a Git repository.

Cloud Service Mesh

Managed Istio for service mesh: traffic, observability, and security (mTLS) between microservices.

Use case

Companies with regulations requiring on-premises, or a multi-cloud strategy without vendor lock-in.

and multi-cloud

Hybrid Cloud

A combination of on-premises infrastructure with one or more public clouds, working together. Companies keep some workloads on-premises and others in the cloud.

Regulatory reason: sensitive data must remain on-premises
Existing investment: recent hardware with remaining useful life
Latency: near-real-time processing that can't tolerate the network
Gradual migration: step-by-step transition without a big bang

Multi-cloud

Deliberately using services from multiple cloud providers (GCP + AWS + Azure). Not to be confused with having a presence in two clouds by accident.

Avoiding vendor lock-in: not depending on a single provider
Best-of-breed: using the best service from each cloud for each case
: failover between providers for maximum availability
Acquisitions: acquired companies are already on another cloud

GKE multi-cloud: one control panel for everything

GKE with fleets, GKE Multi-Cloud, and Google Distributed Cloud (formerly Anthos / GKE Enterprise) enable managing apps across multiple environments (GCP, on-premises, AWS, Azure) from a single Kubernetes-based control panel. Config Management applies consistent security policies across all clusters. Cloud Service Mesh (Istio) manages communication between microservices in any environment.

Did you get this topic?

Test what you just learned

A company has 200 VMs in its on-premises datacenter running critical legacy applications. They want to migrate to Google Cloud as quickly as possible to exit the datacenter in 6 months. The apps cannot be modified. What strategy and tool should they use?

Ready to test "Migrating and modernizing applications"?

Put what you learned to the test with original CDL exam questions.

Start CDL mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.