Bird
0
0

You try to run an ECS task with launch type Fargate but get an error about missing subnets. What is the likely cause?

medium📝 Debug Q6 of 15
AWS - EKS
You try to run an ECS task with launch type Fargate but get an error about missing subnets. What is the likely cause?
AYou forgot to create an IAM role
BThe container image is not in ECR
CYou used the wrong container port in the task definition
DNo private or public subnets specified in the task network configuration
Step-by-Step Solution
Solution:
  1. Step 1: Understand Fargate networking requirements

    Fargate tasks require specifying subnets for networking. Missing subnets cause launch errors.
  2. Step 2: Check other options

    Container image location or port issues cause different errors. IAM role issues cause permission errors, not subnet errors.
  3. Final Answer:

    No private or public subnets specified in the task network configuration -> Option D
  4. Quick Check:

    Fargate needs subnets specified [OK]
Quick Trick: Fargate tasks require subnet configuration [OK]
Common Mistakes:
  • Ignoring subnet config
  • Blaming container image location
  • Confusing IAM role errors with subnet errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes