An enterprise is migrating a legacy, stateful Java application to AWS. The application consists of a public-facing web frontend and a background worker that processes messages from an Amazon SQS queue. The migration requires the web frontend to scale dynamically, the background worker to operate with minimum idle compute costs, and the entire deployment to have the lowest possible operational overhead. The enterprise also mandates high availability across multiple Availability Zones and strict network isolation within private subnets, while allowing the background worker to securely poll SQS and download external updates. Which of the following architectures meets these requirements with the least operational overhead?
- ADeploy both the web application and the background worker as Amazon ECS services on AWS Fargate using the awsvpc network mode across three Availability Zones, and route outbound internet traffic from all private subnets through a single NAT Gateway in one Availability Zone to minimize baseline hourly charges.
- Deploy both the web application and the background worker as Amazon ECS services on AWS Fargate using the awsvpc network mode, placing the container tasks in private subnets across multiple Availability Zones with a NAT Gateway deployed in each Availability Zone for outbound internet access.Cevap
- CDeploy both the web application and the background worker as Amazon ECS services on AWS Fargate, configuring the tasks with the host network mode to optimize network throughput and bypass the overhead of Elastic Network Interfaces (ENIs).
- DDeploy the web application and the background worker in separate member account VPCs on AWS Fargate using the awsvpc network mode, and resolve internal endpoints using a centralized Route 53 Private Hosted Zone that is created in a shared services account but not associated with the member VPCs.
Cevap
Deploying the web application and background worker on Amazon ECS using the AWS Fargate launch type with the awsvpc network mode, combined with multi-AZ private subnets and redundant NAT Gateways, meets all operational, security, and high availability requirements.
The correct answer correctly utilizes AWS Fargate to run containers serverlessly, meeting the requirement for low operational overhead. It configures the tasks with the awsvpc network mode, which is the only network mode supported by Fargate, providing network isolation with dedicated Elastic Network Interfaces. Finally, it ensures high availability by distributing the tasks across multiple Availability Zones and deploying a NAT Gateway in each zone, preventing a single point of failure for outbound traffic.
Adım Adım Çözüm
Anahtar Kavram
Modernizing legacy workloads using Amazon ECS on AWS Fargate with proper VPC network configuration and redundant egress routing.
Tahmini Süre:2m 0s