A stable Java application depends on VMs in the company data center and the company wants to modernize while minimizing server administration and code changes. Which migration approach meets these goals with the least code modification?
Choose an answer
Tap an option to check your answer.
Correct answer: Containerize the application using AWS App2Container and run it on Amazon Elastic Container Service (Amazon ECS) with AWS Fargate. Store images in Amazon ECR, grant the ECS task execution role access to the ECR repository, and front the tasks with an Application Load Balancer (ALB)..
Why this is the answer
The correct option minimizes server administration and code changes by leveraging AWS Fargate, a serverless compute engine for containers, eliminating the need to provision or manage servers. AWS App2Container automates containerization, reducing manual effort. Amazon ECS is a managed container orchestration service, and an ALB provides load balancing. This approach offers a good balance of modernization and operational simplicity. Incorrect options: Running as an AWS Lambda container with API Gateway would likely require significant code refactoring for the application to conform to the Lambda event-driven model, which contradicts the "least code modification" requirement. Using Amazon EKS with managed node groups still involves managing Kubernetes clusters and nodes, which is more administrative overhead than Fargate. Also, using API Gateway directly in front of EKS is less common than an ALB or Network Load Balancer for general HTTP/S traffic. Configuring Lambda to use an ALB is possible, but the core issue remains: migrating a stable Java application to Lambda often necessitates substantial code changes to fit the serverless function paradigm.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed