Bird
0
0

What will happen if you try to run an ECS task with Fargate launch type but specify an EC2 instance type in the task definition?

medium📝 Predict Output Q5 of 15
AWS - ECS and Fargate
What will happen if you try to run an ECS task with Fargate launch type but specify an EC2 instance type in the task definition?
ATask will fail to launch due to invalid configuration
BTask will run successfully ignoring instance type
CTask will launch on the specified EC2 instance
DTask will convert to EC2 launch type automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand Fargate launch type restrictions

    Fargate does not allow specifying EC2 instance types; it manages infrastructure.
  2. Step 2: Predict behavior on invalid config

    Specifying EC2 instance type with Fargate causes a configuration error and task launch fails.
  3. Final Answer:

    Task will fail to launch due to invalid configuration -> Option A
  4. Quick Check:

    Invalid config with instance type + Fargate = failure [OK]
Quick Trick: Fargate ignores instance types; specifying them causes failure [OK]
Common Mistakes:
  • Thinking Fargate will ignore instance type and run anyway
  • Assuming automatic conversion to EC2 launch type

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes