A retail company wants to modernize its legacy order-processing application by migrating it from on-premises virtual machines to AWS. The company wants to minimize operational overhead and has chosen to deploy the containerized application on Amazon Elastic Container Service (Amazon ECS) using AWS Fargate. When configuring the ECS task definition, the solutions architect must select a network mode that assigns each task its own elastic network interface and private IP address. Which network mode must the solutions architect specify in the ECS task definition?
- awsvpcAnswer
- Bbridge
- Chost
- Dnone
Answer
awsvpc
The correct answer is awsvpc. AWS Fargate requires the awsvpc network mode for all tasks. This mode ensures that every task is allocated its own Elastic Network Interface (ENI) and a private IP address within the Amazon VPC, allowing the tasks to be managed and secured using standard VPC security groups and network access control lists.
Step-by-Step Solution
Key Concept
AWS Fargate networking modes