Question
Your organization is migrating a critical on-premises application to AWS. The application requires real-time processing and must handle a high number of concurrent user requests with very low latency. You need to select a compute service that allows you to scale automatically based on demand, minimizes management overhead, and is cost-effective.
Which AWS compute service would you choose?
Correct Answer: C
Explanation:
The correct choice is Option C because:
- AWS ECS with AWS Fargate:
- AWS Fargate allows you to run containers without needing to manage the underlying infrastructure (servers, OS patching, etc.).
- ECS (Elastic Container Service) combined with Fargate provides automatic scaling based on application demand.
- Real-Time Processing & Low Latency:
- Containers are designed for microservices architectures, allowing distributed, event-driven, real-time processing with minimal latency.
- Cost-Effective Scaling:
- You only pay for the compute resources you use with AWS Fargate. There’s no need to over-provision servers, and scaling occurs automatically as usage fluctuates.
Why Other Options Are Incorrect
Option A:
While Amazon EC2 with Auto Scaling Groups is a good solution for many use cases, it requires more manual management compared to serverless or containerized compute solutions. The operational overhead to manage EC2 instances may be higher, especially when minimizing latency is a priority.
Option B:
AWS Lambda with API Gateway can automatically scale and handle API requests, but it may not be optimal for real-time processing with very high concurrent usage if the use case involves long-running processes, heavy compute demands, or stateful connections.
Option D:
Amazon Lightsail is a managed compute service optimized for simpler workloads, such as small web applications or small-scale websites. While it simplifies server management, it does not scale automatically or dynamically respond to high traffic demands with low latency as effectively as ECS with Fargate.
Correct Answer: C
Explanation:
The correct choice is Option C because:
- AWS ECS with AWS Fargate:
- AWS Fargate allows you to run containers without needing to manage the underlying infrastructure (servers, OS patching, etc.).
- ECS (Elastic Container Service) combined with Fargate provides automatic scaling based on application demand.
- Real-Time Processing & Low Latency:
- Containers are designed for microservices architectures, allowing distributed, event-driven, real-time processing with minimal latency.
- Cost-Effective Scaling:
- You only pay for the compute resources you use with AWS Fargate. There’s no need to over-provision servers, and scaling occurs automatically as usage fluctuates.
Why Other Options Are Incorrect
Option A:
While Amazon EC2 with Auto Scaling Groups is a good solution for many use cases, it requires more manual management compared to serverless or containerized compute solutions. The operational overhead to manage EC2 instances may be higher, especially when minimizing latency is a priority.
Option B:
AWS Lambda with API Gateway can automatically scale and handle API requests, but it may not be optimal for real-time processing with very high concurrent usage if the use case involves long-running processes, heavy compute demands, or stateful connections.
Option D:
Amazon Lightsail is a managed compute service optimized for simpler workloads, such as small web applications or small-scale websites. While it simplifies server management, it does not scale automatically or dynamically respond to high traffic demands with low latency as effectively as ECS with Fargate.