easyMultiple Choice
CV0-004 Practice Question: Move its on-premises web application to the cloud…
A company wants to move its on-premises web application to the cloud with minimal code changes to reduce risk. Which deployment strategy is most appropriate?
⚠ Common exam trap
A common mix-up: candidates confuse 'Replatform' with 'Rehost' because both involve moving to the cloud, but Replatform requires code changes to leverage managed services (e.g., replacing a self-managed database with Amazon RDS), which increases risk and violates the 'minimal code changes' constraint.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Rehost
The Rehost (lift-and-shift) strategy is most appropriate because it moves the on-premises web application to the cloud with minimal code changes, directly reducing risk. By migrating the existing virtual machines or physical servers to cloud instances (e.g., AWS EC2 or Azure VMs) without modifying the application architecture, the company preserves the current codebase and operational behavior. This approach avoids the complexity and potential errors associated with rewriting or refactoring code, making it the safest choice for a risk-averse migration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Refactor
Why it's wrong here
Refactoring rewrites application code to adopt cloud-native patterns, directly contradicting the minimal-code-change requirement. It is tempting because it maximises cloud benefit, and it would be correct when the goal is long-term scalability rather than low-risk migration.
- ✓
Rehost
Why this is correct
Rehosting lifts the application onto cloud infrastructure unchanged, satisfying the minimal-code-change constraint. Unlike replatforming or refactoring, which demand modification, rehosting preserves the existing codebase and configuration, reducing migration risk and effort. This makes it the most appropriate strategy when code changes must be avoided.
- ✗
Replatform
Why it's wrong here
Replatforming modifies the application to use managed services, such as swapping a self-managed database for a managed one, which still requires code and configuration changes. It is tempting because it reduces operational overhead, and it would be correct when some modification is acceptable.
- ✗
Rebuild
Why it's wrong here
Rebuilding discards the existing codebase and develops the application anew, which is the largest possible code change. It is tempting because it removes legacy constraints, and it would be correct when the current application cannot meet requirements even after migration.
Go deeper
Related to this question
About these practice questions
One of 834 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.