nerdexam
Amazon

SAP-C02 · Question #414

A company runs a Java application that has complex dependencies on VMs that are in the company's data center. The application is stable. but the company wants to modernize the technology stack. The co

The correct answer is A. Migrate the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by. By using AWS App2Container to migrate the application to Amazon ECS, the company can make the migration process easier. Additionally, using Amazon ECR to store the container images and granting the ECS task execution role permission to access the ECR image repository will minimiz

Submitted by deeparc· Mar 6, 2026Migrate Workloads and Modernize Solutions

Question

A company runs a Java application that has complex dependencies on VMs that are in the company's data center. The application is stable. but the company wants to modernize the technology stack. The company wants to migrate the application to AWS and minimize the administrative overhead to maintain the servers. Which solution will meet these requirements with the LEAST code changes?

Options

  • AMigrate the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by
  • BMigrate the application code to a container that runs in AWS Lambda. Build an Amazon API
  • CMigrate the application to Amazon Elastic Kubernetes Service (Amazon EKS) on EKS managed
  • DMigrate the application code to a container that runs in AWS Lambda. Configure Lambda to use

How the community answered

(45 responses)
  • A
    73% (33)
  • B
    16% (7)
  • C
    7% (3)
  • D
    4% (2)

Explanation

By using AWS App2Container to migrate the application to Amazon ECS, the company can make the migration process easier. Additionally, using Amazon ECR to store the container images and granting the ECS task execution role permission to access the ECR image repository will minimize the administrative overhead to maintain the servers. Finally, configuring Amazon ECS to use an ALB and using the ALB to interact with the application will reduce the amount of code changes needed. This solution will allow the company to modernize their technology stack while minimizing the amount of code changes needed. You can refer to the AWS App2Container documentation for more information on how to use this https://aws.amazon.com/app2container/ You can refer to the AWS Fargate documentation for more information on how to use this service: https://aws.amazon.com/fargate/ You can refer to the AWS Elastic Container Service documentation for more information on how to use this service: https://aws.amazon.com/ecs/ You can refer to the Amazon Elastic Container Registry documentation for more information on how to use this service: https://aws.amazon.com/ecr/ You can refer to the Application Load Balancer documentation for more information on how to use this service: https://aws.amazon.com/elasticloadbalancing/applicationloadbalancer/

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice