The 7 Rs of Migration Strategy
Apply Rehost, Replatform, Repurchase, Refactor, Retire, Retain, and Relocate to categorise each workload and build a migration plan.
The 7 Rs of Migration Strategy is a free AWS Solutions Architect lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Solutions Architect learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Migration Strategy Matters
Moving workloads to AWS is rarely a single action — it is a portfolio of decisions made for each application. The 7 Rs of migration give architects a common vocabulary to classify applications and choose the right migration path. For the SAA-C03 exam, you must know which R applies to a given scenario description, as questions often test your ability to match an application characteristic to the correct migration strategy.
Rehost: Lift and Shift
Rehost (Lift-and-Shift) moves an application to AWS with no changes to the application code or architecture. Use AWS Application Migration Service (MGN) to replicate on-premises VMs to EC2 instances. Rehost is fastest to execute and carries the least risk, making it ideal for large-scale migrations where speed matters and optimisation can happen later. It does not take advantage of cloud-native features.
# Rehost signal words in exam questions:
# 'move quickly', 'minimal changes', 'same OS and application',
# 'lift-and-shift', 'fastest migration'
# --> Answer: AWS Application Migration Service (MGN)Replatform: Lift, Tinker, and Shift
Replatform makes a few targeted cloud optimisations without changing the core application architecture. Examples: migrating a MySQL database from EC2 to Amazon RDS (managed patching, backups), or moving a Java app server to AWS Elastic Beanstalk (managed scaling). You keep the same application logic but replace operational heavy-lifting with managed services. This is a middle ground offering moderate benefit for low migration risk.
# Replatform signal words:
# 'move to managed service', 'reduce operational overhead',
# 'same application, but use RDS instead of self-managed MySQL'
# --> Answer: Migrate to RDS / Elastic Beanstalk / ECSRepurchase: Drop and Shop
Repurchase replaces an existing application with a commercial SaaS product. Examples: replacing a self-managed CRM with Salesforce, or swapping a custom HR system for Workday. From AWS's perspective, this means cancelling the on-premises licence and subscription to a SaaS offering. The migration work is about data migration and user training rather than infrastructure. This is appropriate when the custom app no longer differentiates the business.
# Repurchase signal words:
# 'legacy CRM', 'switch to SaaS', 'no longer maintain in-house',
# 'purchase a commercial off-the-shelf solution'
# --> Answer: Move to SaaS (no AWS infrastructure)Refactor: Re-architect
Refactor (Re-architect) involves redesigning the application to take full advantage of cloud-native capabilities. Examples: breaking a monolith into microservices running on Lambda and API Gateway, or re-implementing batch processing using SQS and auto-scaling workers. Refactor delivers the greatest long-term benefit in scalability, resilience, and cost — but it is the most expensive and time-consuming migration strategy.
# Refactor signal words:
# 'add features', 'improve scalability', 'reduce technical debt',
# 'modernise', 'cloud-native', 'serverless'
# --> Answer: Redesign with Lambda / containers / event-drivenRetire: Decommission
Retire means shutting down applications that are no longer needed. A thorough portfolio assessment commonly finds that 10–20% of applications have no active users, duplicate functionality from another system, or are no longer fit for purpose. Retiring them reduces licencing costs, security surface area, and migration scope. Before retiring, confirm with stakeholders and check compliance data-retention requirements.
# Retire signal words:
# 'no longer used', 'duplicate functionality', 'low usage',
# 'can be decommissioned', 'no business value'
# --> Answer: Retire (do not migrate)Retain: Keep On-Premises
Retain (sometimes called Revisit) means keeping the application on-premises for now. Reasons include: regulatory requirements mandating data sovereignty, a recent capital investment in hardware, complex vendor dependencies, or the application is near end-of-life. Retained applications are not migrated in the current wave but may be re-evaluated later. Retain is a valid and common outcome of a migration assessment.
# Retain signal words:
# 'compliance', 'data sovereignty', 'recently upgraded on-prem',
# 'end of life in 12 months', 'too risky to migrate now'
# --> Answer: Retain (keep on-premises, revisit later)Relocate: Hypervisor-Level Lift
Relocate is the seventh R, added later to the framework. It moves infrastructure to AWS without purchasing new hardware, refactoring applications, or re-architecting. Specifically, it refers to migrating VMware vSphere workloads to VMware Cloud on AWS, allowing the same vCenter tooling to manage VMs now running on AWS bare metal. It is faster than rehost for VMware-heavy environments that are not ready to change OS or app.
# Relocate signal words:
# 'VMware', 'vSphere', 'maintain same virtualisation tools',
# 'move hypervisor-level without refactoring'
# --> Answer: VMware Cloud on AWS (Relocate)Applying the 7 Rs in Practice
In a real migration wave, a single organisation might apply all 7 Rs simultaneously: retire unused apps, retain compliance-blocked ones, rehost most with MGN, replatform databases to RDS, refactor one or two strategic monoliths to serverless, repurchase legacy CRM, and relocate VMware clusters. The AWS Migration Readiness Assessment (MRA) and Migration Hub help track each application's 7-R classification across the portfolio.
Cost Considerations per Strategy
Migration cost increases as you move from Retire through Relocate, Retain, Rehost, Replatform, Repurchase, to Refactor. Refactor has the highest upfront engineering cost but typically yields the lowest long-term cloud spend due to serverless auto-scaling and pay-per-use billing. Rehost delivers the fastest time to cloud but may result in over-provisioned EC2 instances that need right-sizing afterwards to achieve cost savings.
# Cost vs. effort rough ordering (low to high effort):
# Retire < Retain < Rehost < Relocate < Replatform < Repurchase < Refactor
# Long-term cloud savings rough ordering (low to high savings):
# Rehost < Replatform < Repurchase < Relocate < RefactorSAA-C03 Exam Tips for Migration Questions
Migration scenario questions follow a pattern: they describe an application characteristic and ask which migration strategy is most appropriate. Watch for keywords: 'fastest migration' = Rehost; 'managed service, no code change' = Replatform; 'modernise/serverless' = Refactor; 'move VMware' = Relocate; 'no longer needed' = Retire; 'compliance/data sovereignty' = Retain; 'switch to SaaS' = Repurchase. One correct R per scenario — eliminate the others using the keyword evidence.
Quick Check
Test your understanding of AWS Solutions Architect (SAA-C03) concepts from this lesson.
Lesson Recap
In this lesson you learned: the 7 Rs are Rehost, Replatform, Repurchase, Refactor, Retire, Retain, and Relocate, exam questions test your ability to match application characteristics to the correct R using keyword signals, and Refactor delivers the most cloud benefit but highest upfront cost. Next up we explore AWS Migration Hub and Application Discovery Service for portfolio assessment.
Frequently asked questions
Is the “The 7 Rs of Migration Strategy” lesson free?
Yes — the full text of “The 7 Rs of Migration Strategy” is free to read here on the web, and the AWS Solutions Architect course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Solutions Architect course, upgrade to CoddyKit PRO.
What will I learn in “The 7 Rs of Migration Strategy”?
Apply Rehost, Replatform, Repurchase, Refactor, Retire, Retain, and Relocate to categorise each workload and build a migration plan. You practise AWS Solutions Architect with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start AWS Solutions Architect?
No prior experience is required. AWS Solutions Architect on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “The 7 Rs of Migration Strategy” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this AWS Solutions Architect lesson?
Yes. Every AWS Solutions Architect lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.