Bird
0
0

Which of the following is the correct way to define a task in AWS ECS?

easy📝 Syntax Q12 of 15
AWS - ECS and Fargate
Which of the following is the correct way to define a task in AWS ECS?
AA database schema for app data
BA YAML file listing EC2 instances
CA JSON file specifying containers, CPU, and memory
DA script to launch EC2 instances
Step-by-Step Solution
Solution:
  1. Step 1: Identify task definition format

    A task in AWS ECS is defined by a JSON file that specifies containers, CPU, and memory requirements.
  2. Step 2: Eliminate incorrect options

    YAML listing EC2 instances is not a task definition. Scripts to launch EC2 or database schemas are unrelated.
  3. Final Answer:

    A JSON file specifying containers, CPU, and memory -> Option C
  4. Quick Check:

    Task definition = JSON file with containers [OK]
Quick Trick: Task definitions use JSON to specify containers and resources [OK]
Common Mistakes:
  • Confusing task definition with instance listing
  • Using scripts instead of JSON for tasks
  • Mixing database schemas with task definitions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes