
Answer-first summary for fast verification
Answer: Migrate the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by using AWS App2Container. Store container images in Amazon Elastic Container Registry (Amazon ECR). Grant the ECS task execution role permission 10 access the ECR image repository. Configure Amazon ECS to use an Application Load Balancer (ALB). Use the ALB to interact with the application.
**Explanation for the Answer A:** The chosen solution, migrating the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by using AWS App2Container, is the best choice for several reasons: 1. **Minimal Code Changes**: AWS App2Container (A2C) automates containerization of .NET and Java applications, making it straightforward to migrate existing applications with minimal code changes. A2C generates Docker images and ECS artifacts directly from your current application, reducing the need for manual redesign or rewriting of the application. 2. **Serverless and Managed Services**: Using Amazon ECS on AWS Fargate allows the company to run containers without having to manage servers or clusters of Amazon EC2 instances. This significantly reduces the administrative overhead, as they do not need to provision, scale, or patch the underlying infrastructure. 3. **Container Registry**: Amazon Elastic Container Registry (Amazon ECR) provides a fully managed Docker container registry, making it easy to store, manage, and deploy Docker container images. By granting the ECS task execution role permission to access the ECR image repository, secure access and seamless integration are ensured. 4. **Load Balancing**: Configuring Amazon ECS to use an Application Load Balancer (ALB) offers robust load balancing capabilities, ensuring high availability and scalability. The ALB can distribute incoming traffic across multiple containers, and it supports dynamic and static applications alike. 5. **Operational Efficiency**: The combination of AWS Fargate, Amazon ECS, and ALB creates a highly managed and automated environment, leading to reduced operational effort and enhanced efficiency. This setup decreases operational burden and allows teams to focus more on core business tasks rather than infrastructure management. Overall, option A leverages AWS's managed services and tooling to facilitate a smooth migration while minimizing changes to the existing application code, thus meeting the company’s requirements effectively.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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?
A
Migrate the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate by using AWS App2Container. Store container images in Amazon Elastic Container Registry (Amazon ECR). Grant the ECS task execution role permission 10 access the ECR image repository. Configure Amazon ECS to use an Application Load Balancer (ALB). Use the ALB to interact with the application.
B
Migrate the application code to a container that runs in AWS Lambda. Build an Amazon API Gateway REST API with Lambda integration. Use API Gateway to interact with the application.
C
Migrate the application to Amazon Elastic Kubernetes Service (Amazon EKS) on EKS managed node groups by using AWS App2Container. Store container images in Amazon Elastic Container Registry (Amazon ECR). Give the EKS nodes permission to access the ECR image repository. Use Amazon API Gateway to interact with the application.
D
Migrate the application code to a container that runs in AWS Lambda. Configure Lambda to use an Application Load Balancer (ALB). Use the ALB to interact with the application.