Question #961
A company wants to migrate its website to AWS. The website uses microservices and runs on containers deployed in an on-premises, self-managed Kubernetes cluster. All manifests defining the deployments are in source control. The data is stored in a MySQL database, and an open-source container image repository runs on-premises.
Which solution will meet these requirements with the LEAST effort to migrate?
Create an AWS App Runner service. Connect it to the existing container image repository. Deploy the manifests to App Runner. Create an Amazon RDS for MySQL database.
Create an Amazon EKS cluster with managed node groups. Copy containers to Amazon ECR. Deploy the manifests to EKS. Create an Amazon Aurora MySQL DB cluster.
Create an Amazon ECS cluster with EC2 capacity. Copy containers to ECR. Register task definitions and configure ECS services. Create an Amazon Aurora MySQL DB cluster.
Rebuild the Kubernetes cluster on EC2 instances. Migrate the container repository to EC2. Deploy manifests to the new cluster. Deploy a self-managed MySQL database on EC2.
Explanation
Answer B is correct because:
1. Amazon EKS is AWS's managed Kubernetes service, requiring minimal changes to existing Kubernetes manifests (reducing migration effort).
2. Managed node groups automate node provisioning/scaling, reducing operational tasks compared to self-managed clusters.
3. Amazon ECR provides a secure container registry, simplifying the migration from the on-premises repository.
4. Amazon Aurora MySQL is fully managed, MySQL-compatible, and offers better scalability/availability than self-managed MySQL.
Other options are less optimal:
- A: App Runner is not Kubernetes-based, requiring significant rework of deployment logic.
- C: ECS uses a different orchestration model (not Kubernetes), necessitating manifest conversions.
- D: Rebuilding a self-managed Kubernetes cluster on EC2 retains operational overhead and offers no managed benefits.
Key Points: Prioritize managed services (EKS, ECR, Aurora) aligned with existing architecture to minimize effort.
Answer
The correct answer is: B