SAP-C02 Practice Question: Accelerate Workload Migration and Modernization
A company is migrating a legacy application to AWS. The application has hardcoded IP addresses and uses non-HTTP protocols. The solutions architect needs to minimize changes to the application code. Which migration pattern should be used?
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 application on EC2 instances with the same IP addresses using Elastic IPs.
Rehosting (lift-and-shift) with EC2 instances and Elastic IPs allows the application to retain its hardcoded IP addresses with minimal code changes. Option A is wrong because AWS Global Accelerator provides static IP addresses for front-end traffic, but the application's hardcoded IPs are internal; changing to use Global Accelerator still requires code modifications. Option B is wrong because containerization and service discovery require code changes to integrate with service discovery. Option D is wrong because refactoring to use DNS names requires modifying the application code.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use AWS Global Accelerator to assign static IP addresses.
Why it's wrong here
Using AWS Global Accelerator would require changing the application to point to its static IP addresses, which is a code change. It does not allow preserving the original IP addresses.
- ✗
Containerize the application and use service discovery.
Why it's wrong here
Containerizing the application and using service discovery would require code modifications to adapt to the container environment and service discovery mechanisms.
- ✓
Rehost the application on EC2 instances with the same IP addresses using Elastic IPs.
Why this is correct
Rehosting (lift-and-shift) on EC2 instances with Elastic IPs allows the application to retain the same IP addresses, minimizing code changes.
- ✗
Refactor the application to use DNS names instead of IP addresses.
Why it's wrong here
Refactoring the application to use DNS names instead of IP addresses requires significant code changes.
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-C02 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 SAP-C02 practice question is part of Courseiva's free Amazon Web Services 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 SAP-C02 exam.