A digital payment startup, PayFast, is modernizing its on-premises transactional auditing workload by migrating it to AWS. The workload runs on Docker containers and processes high-security compliance data. To minimize operational overhead, the company decides to host the containers using Amazon Elastic Container Service (Amazon ECS) on AWS Fargate. The security compliance policy requires that each deployed task must have its own dedicated elastic network interface (ENI) and a specific security group to restrict inbound and outbound traffic. Which network configuration should the solutions architect specify in the task definition to meet these requirements?
- Set the network mode to awsvpc in the task definition to allocate a dedicated network interface and security group to each task.Cevap
- BSet the network mode to bridge in the task definition to utilize docker0 default virtual network interfaces.
- CSet the network mode to host in the task definition to share the underlying container instance port space directly.
- DSet the network mode to none in the task definition to disable external container networking entirely.
Cevap
Set the network mode to awsvpc in the task definition to allocate a dedicated network interface and security group to each task.
AWS Fargate only supports the awsvpc network mode. In this mode, Amazon ECS assigns a dedicated Elastic Network Interface (ENI) and a private IPv4 address to each task, allowing the application to use task-level security groups to control network traffic.
Adım Adım Çözüm
Anahtar Kavram
Amazon ECS task network modes for AWS Fargate