AWS Certified Solutions Architect – ProfessionalAccelerate Workload Migration and ModernizationMedium

A global e-commerce company is modernizing its monolithic order processing system to a microservices architecture on AWS. The system experiences extreme traffic spikes during sales events, requiring rapid scaling of compute resources. The company wants to minimize infrastructure management and reduce costs associated with idle resources outside peak hours. Which AWS service combination is BEST suited for orchestrating and running these new microservices?

  1. AAWS Fargate with Amazon Elastic Container Service (ECS) and Application Load Balancer.
  2. BAmazon EC2 instances with Auto Scaling Groups and a Network Load Balancer.
  3. CAmazon Elastic Kubernetes Service (EKS) with EC2 Spot Instances.
  4. DAWS Lambda with Amazon API Gateway and Amazon EventBridge.
Show answer & explanation

Correct answer: A. AWS Fargate with Amazon Elastic Container Service (ECS) and Application Load Balancer.

AWS Fargate, combined with Amazon ECS, provides a serverless compute engine for containers, eliminating the need to manage EC2 instances. This allows for rapid scaling to handle traffic spikes and reduces costs by only paying for compute resources when containers are running. An Application Load Balancer (ALB) is ideal for HTTP/HTTPS traffic routing to microservices.

Why the other options are wrong

  • B. While EC2 and ASG provide scaling, they still require managing EC2 instances, which goes against minimizing infrastructure management. NLB is for TCP/UDP, ALB is better for microservices over HTTP/HTTPS.
  • C. EKS with Spot Instances can be cost-effective but still involves managing Kubernetes clusters and worker nodes. Fargate offers a more hands-off, serverless container experience.
  • D. AWS Lambda is serverless functions, not container orchestration. While good for event-driven, short-lived tasks, it may not be suitable for all microservices that require longer execution times or specific runtime environments that containers provide.

AWS Fargate with ECS

AWS Fargate is a serverless compute engine for Amazon ECS that allows you to run containers without having to manage servers or clusters. ECS orchestrates the deployment and management of these containers.

  • Eliminates server management (serverless containers).
  • Scales rapidly based on demand.
  • Pay-per-use for compute resources.

Memory trick: Fargate gives you a 'free gate' from server management for your ECS containers.

More Accelerate Workload Migration and Modernization questions