Soru

Zorluk: KolayModernizing Workloads using Containers (ECS and EKS)

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?

  1. awsvpcCevap
  2. B
    bridge
  3. C
    host
  4. D
    none

Cevap

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.

Adım Adım Çözüm

1
Identify the container hosting platform and launch type chosen for modernization.
Amazon ECS with AWS Fargate launch type.
AWS Fargate manages the underlying host infrastructure, restricting the available configuration parameters to those compatible with serverless containers.
2
Determine the network mode constraints imposed by the serverless container runtime (AWS Fargate).
AWS Fargate requires the awsvpc network mode.
Fargate tasks require dedicated Elastic Network Interfaces (ENIs) to integrate natively with VPC security groups, private IP spaces, and routing tables, which is only possible via the awsvpc network mode.

Anahtar Kavram

AWS Fargate networking modes
Bu soruyu puanla