Soru

Zorluk: KolayModernizing Workloads using Containers (ECS and EKS)

A logistics enterprise is migrating its legacy order-processing application to AWS. The solution requires modernizing the workload using a containerized architecture on Amazon Elastic Container Service (Amazon ECS) using the serverless AWS Fargate launch type to minimize operational overhead. Which network mode must the solutions architect specify in the Amazon ECS task definition to support the AWS Fargate launch type?

  1. The awsvpc network mode, which allocates an Elastic Network Interface (ENI) to each task and grants it a unique private IPv4 address.Cevap
  2. B
    The bridge network mode, which utilizes Docker's built-in virtual network on the underlying host to map container ports.
  3. C
    The host network mode, which maps container ports directly to the network interface of the underlying container host.
  4. D
    The none network mode, which disables external network connectivity for the containers and routes traffic via a NAT Gateway.

Cevap

The awsvpc network mode, which allocates an Elastic Network Interface (ENI) to each task and grants it a unique private IPv4 address.
The correct option is the awsvpc network mode. For tasks running on AWS Fargate, awsvpc is the only supported network mode. It assigns an Elastic Network Interface (ENI) to each task, giving it a dedicated private IP address and allowing the attachment of security groups directly to the task.

Adım Adım Çözüm

1
Analyze the hosting platform and launch type requirements.
Identify that the workload is being modernized on Amazon ECS using the AWS Fargate launch type.
AWS Fargate runs containers in a serverless environment where the underlying host is fully managed by AWS.
2
Evaluate the supported network modes for AWS Fargate task definitions.
Determine that AWS Fargate strictly requires the awsvpc network mode.
Fargate does not allow tasks to share host resources or use docker network bridges directly, making awsvpc the only compatible network mode.

Anahtar Kavram

AWS Fargate network modes
Tahmini Süre:45s
Bu soruyu puanla