Cloud Digital Leader free question 7 / 10 · Domain 4: Modernize Infrastructure and Applications with Google Cloud
A company is moving an internal order-processing workload to Google Cloud. A contractor holds the source code and it cannot be touched, and the business units have not asked for any change in functionality. Which migration type fits these conditions according to the migration guide's definitions?
- Replatform: after moving it, optimize it for the new environment
- Refactor: fix the code so it takes advantage of cloud capabilities as it moves
- Rehost: move it with the minimum changes needed to run in the new cloud environment
- Rebuild: retire the existing app and rewrite it for the cloud
Show the answer and explanation
Answer: C
Why this is correct
The migration guide (Migrate to Google Cloud: Get started) defines Rehost as moving a workload from the source environment to the target environment with little or no modification or refactoring. The only changes made are the minimum needed to run in the target environment. The guide says Rehost is the best fit when the workload can run in the target environment as it is, or when there is little business need to change it. It adds that a workload you cannot refactor or retire, for example because changing its source code is difficult or impossible, can only be handled with Rehost. In this question, "the code cannot be touched" and "no change has been requested" both apply.
Why the other options are wrong
"Refactor: fix the code so it takes advantage of cloud capabilities as it moves" … Refactor modifies the workload to take advantage of cloud capabilities, not merely to run it in the target environment. It cannot be chosen when the code cannot be touched. The guide says Refactor takes more time than Rehost and requires learning new skills.
"Rebuild: retire the existing app and rewrite it for the cloud" … Rebuild retires the existing app and redesigns and rewrites it from scratch as a cloud-optimized app. The guide gives it as the choice when the current app does not meet your goals, so the premise does not match a case in which no one has even asked for a functional change.
"Replatform: after moving it, optimize it for the new environment" … Replatform lifts an existing workload and then optimizes it for the new cloud environment. The guide says it involves more work than Rehost and needs several rounds of testing, and there is no reason to take on that effort when nothing needs to change.
The cost of Rehost
The guide says Rehost is the fastest approach and lets the team proceed with its current tools and skills. The workload that results is not optimized for the cloud, though, so it cannot fully use cloud capabilities such as horizontal scaling, granular pricing, and highly managed services. Optimization is left as a challenge for a later stage.
Go to the Cloud Digital Leader practice app (10 free questions; purchase unlocks all questions)