Bird
0
0

You tried to deploy an ECS task with this launch type: "launchType": "fargate" but got an error. What is the likely cause?

medium📝 Debug Q14 of 15
AWS - ECS and Fargate
You tried to deploy an ECS task with this launch type: "launchType": "fargate" but got an error. What is the likely cause?
AFargate launch type is not supported in ECS.
BThe launch type should be a boolean, not a string.
CYou must specify the launch type as "EC2" for tasks.
DThe launch type value is case-sensitive and must be uppercase "FARGATE".
Step-by-Step Solution
Solution:
  1. Step 1: Check launch type case sensitivity

    ECS launch type values are case-sensitive and require uppercase strings like "FARGATE".
  2. Step 2: Identify error cause

    Using lowercase "fargate" causes a validation error because it's invalid syntax.
  3. Final Answer:

    The launch type value is case-sensitive and must be uppercase "FARGATE". -> Option D
  4. Quick Check:

    Case-sensitive launchType = B [OK]
Quick Trick: Use uppercase "FARGATE" to avoid launch type errors [OK]
Common Mistakes:
  • Using lowercase launch type values
  • Thinking Fargate is unsupported
  • Confusing data types for launchType

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes