← Cloud Practitioner study path

Cloud concepts · 12 min

Migration strategies (the 7 Rs)

In this lesson you will learn what the seven AWS migration strategies are, how to choose the one an exam scenario describes and what AWS Cloud Adoption Framework (AWS CAF) is for.

A migration strategy is the way you move a to the AWS Cloud. This topic is for a company that decides to move to AWS, because that company moves dozens or hundreds of applications, and each application is in a different situation: some are no longer used by anyone, others depend on a machine that doesn't exist in the cloud and others can be replaced by a service that already exists. For example, a chain of stores that moves to AWS may have an old reporting system nobody opens, a payment system that runs on a special machine and a payroll system that can be swapped for an online one, and each of them gets a different strategy.

What are the migration strategies?

AWS Prescriptive Guidance, the AWS guidance with recommendations for projects such as a migration, lists seven migration strategies. Because they all start with R, these strategies are known as the 7 Rs. The seven are grouped by how much they change the application: two don't take it to the cloud, three move it with few changes or none, and two change it or replace it. For example, shutting down the chain's reporting system doesn't take it to the cloud, copying its website as it is takes it there without changes, and swapping its payroll system for an online one replaces it.

List of the 7 Rs with their English name, their Spanish translation and what each one does

Strategies that don't move the application

The two strategies that don't take the application to the cloud are these:

  • Retire, where you shut down or archive the application. It is used when keeping it or moving it adds no value to the business, or when you want to get rid of the cost of maintaining it and the risk of an that is no longer supported.
  • Retain, where you leave the application where it is, for now. It is used when a data residency rule requires keeping it in place, when it depends on special with no equivalent in the cloud or when you have just invested in upgrading it.

For example, the chain of stores retires its reporting system, which nobody opens anymore, and retains its payment system for now, because it depends on a special machine that doesn't exist in the cloud.

Strategies that move the application with few changes

The three strategies that take the application to the cloud with few changes or none are these:

  • Rehost, also known as lift and shift, where you move the application to AWS without changing anything. Once the application runs in the cloud, it is easier to optimize it.
  • Relocate, where you move many servers at once from an on-premises platform to the cloud version of that same platform, without buying hardware or rewriting anything. It also covers moving resources to another , Region or AWS account, such as an Amazon RDS , the AWS service that manages databases for you. AWS describes relocate as the fastest way to migrate.
  • Replatform, also called lift, tinker and shift, where you move the application and make some adjustment to take advantage of the cloud. The AWS example is moving a Microsoft SQL Server database to Amazon RDS for SQL Server, so that AWS manages the database, including its and the patches for its software, which are the updates that fix its flaws.

For example, the chain of stores uses rehost when it copies its website server to AWS as it is. On the other hand, it uses replatform when it takes its inventory system to AWS and, along the way, moves its database to Amazon RDS so it no longer has to make the backups itself.

Which strategy is it?

A company has hundreds of servers on a virtualization platform in its data center. It wants to move them all at once to the cloud version of that same platform, without buying hardware or rewriting anything. Which strategy is it?

Strategies that change the application

The two strategies that change the application, or that replace it, are these:

  • Repurchase, also called drop and shop, where you replace the application with another product, usually software as a service (SaaS) that you use over the internet without installing it. For example, you drop the human resources system installed on your servers and sign up for an online one.
  • Refactor or re-architect, where you move the application and change its to use cloud-native features, that is, services the cloud already offers ready-made, such as one that adds servers only when more customers arrive. It is the most complex of the seven strategies.

For example, the chain of stores uses repurchase when it drops its payroll system and signs up for an online one. It uses refactor if its online store is a that can no longer handle December sales and it redesigns it into parts that each grow on their own.

Which strategy is it?

0 of 5

Tap the correct column for each application.

  1. Nobody uses the reporting system and its operating system is no longer supported.

  2. The application depends on special hardware that has no equivalent in the cloud.

  3. You drop the human resources system installed on your servers and sign up for an online one.

  4. The monolith no longer scales and you redesign it with cloud-native features.

  5. You have just invested in upgrading the application in your data center.

Which strategies does AWS recommend for a large migration?

For large migrations, AWS recommends rehost, replatform, relocate and retire, and modernizing the applications after migrating them, that is, improving them once they are already on AWS so they make better use of the cloud. That is why it doesn't recommend refactoring during a large migration, since that strategy is hard to manage with many applications at once. For example, the chain of stores first moves its online store with rehost and, once on AWS, redesigns it at its own pace.

True or false?

0 of 3
  1. In a large migration, AWS recommends refactoring while you migrate to take advantage of the cloud from the start.

  2. Rehost, replatform, relocate and retire are the strategies AWS recommends for large migrations.

  3. Once an application runs on AWS with rehost, it is easier to optimize it.

Database migration with AWS DMS

The exam guide gives database replication as an example of migration, which is copying the data from one database to another. The AWS service for that task is AWS Database Migration Service (AWS DMS), which migrates databases and other data stores to AWS or between the cloud and on-premises, that is, between AWS and a company's own data center. For example, the chain of stores can use AWS DMS to take its customer database to AWS.

AWS Cloud Adoption Framework (AWS CAF)

The 7 Rs decide what happens to each application, while AWS Cloud Adoption Framework (AWS CAF), an AWS guide that helps a company get ready to work in the cloud, looks at the whole organization. This is because moving servers is not enough if the people, the and the business are not ready to work in the cloud. For example, the chain of stores may have everything ready to move its servers, but if its team doesn't know how to use AWS, the migration gets stuck.

The six perspectives of AWS CAF: Business, People and Governance on the left; Platform, Security and Operations on the right

AWS CAF groups its capabilities into six perspectives: three business perspectives, which are Business, People and Governance, and three technical ones, which are Platform, Security and Operations. The exam guide mentions four benefits of AWS CAF: reduced business risk, improved environmental, social, and governance (ESG) performance, increased revenue and increased operational efficiency.

Two of these perspectives are told apart by the concern they address. The People perspective covers training the team and changing the culture, and the Governance perspective covers reducing the risks of the transformation and managing cloud spending. For example, giving the chain's employees an AWS course is part of People, and deciding who approves cloud spending each month is part of Governance.

How do they appear on the exam?

On the exam, the 7 Rs appear as a scenario where you are told what happens to an application and you choose the strategy. To choose, look in the question for these words:

  • "Without changes", "as fast as possible" or "lift and shift", which point to rehost.
  • "Move the database to a managed service" or "some adjustments", which point to replatform.
  • "Replace with a SaaS product" or "buy another product", which point to repurchase.
  • "Redesign", "cloud-native features" or "the monolith no longer scales", which point to refactor.
  • "Nobody uses it anymore", which points to retire.
  • "It can't be moved yet", which points to retain.

For example, if the question says about an application that "nobody uses it anymore" and that its operating system is no longer supported, the strategy it describes is retire.

With AWS CAF, on the other hand, you are usually given a concern of the company and asked which perspective applies. If the concern is training the team or changing the culture, the perspective is People, and if it is reducing the risks of the transformation or managing cloud spending, the perspective is Governance.

Review question

A company has a Microsoft SQL Server database on its own server. It wants to move it to AWS without changing its application and stop taking care of the backups and the engine updates. Which strategy is it?

Next