Bird
0
0

Why is it recommended to use the awsvpc network mode with Fargate tasks when integrating with an ALB?

hard📝 Conceptual Q10 of 15
AWS - ECS and Fargate
Why is it recommended to use the awsvpc network mode with Fargate tasks when integrating with an ALB?
ABecause awsvpc assigns each task its own elastic network interface, simplifying security and load balancing.
BBecause awsvpc disables all network traffic except ALB traffic.
CBecause awsvpc allows tasks to share the host network interface.
DBecause awsvpc automatically creates target groups for ECS services.
Step-by-Step Solution
Solution:
  1. Step 1: Understand awsvpc network mode

    awsvpc mode assigns each ECS task its own network interface with private IP, improving isolation and security.
  2. Step 2: Benefits for ALB integration

    This allows ALB to target tasks directly by IP, simplifying routing and security group management.
  3. Final Answer:

    Because awsvpc assigns each task its own elastic network interface, simplifying security and load balancing. -> Option A
  4. Quick Check:

    awsvpc mode = task-level ENI for ALB [OK]
Quick Trick: awsvpc mode gives each task its own network interface [OK]
Common Mistakes:
  • Thinking awsvpc disables all traffic except ALB
  • Confusing awsvpc with host network sharing
  • Assuming awsvpc auto-creates target groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes