Bird
0
0

You want to run a batch job on ECS that runs once and stops. Which ECS feature should you use?

hard📝 Application Q8 of 15
AWS - ECS and Fargate
You want to run a batch job on ECS that runs once and stops. Which ECS feature should you use?
ACreate a service with desiredCount 1
BCreate a service with desiredCount 0
CUse AWS Lambda instead of ECS
DRun a standalone task without a service
Step-by-Step Solution
Solution:
  1. Step 1: Understand ECS task types

    Standalone tasks run once and stop; services keep tasks running continuously.
  2. Step 2: Analyze options

    Service with desiredCount 1 keeps task running; Lambda is different service; desiredCount 0 runs no tasks.
  3. Final Answer:

    Run a standalone task without a service -> Option D
  4. Quick Check:

    Batch job = standalone ECS task [OK]
Quick Trick: Use standalone ECS task for one-time batch jobs [OK]
Common Mistakes:
  • Using a service for one-time jobs
  • Confusing Lambda with ECS tasks
  • Setting desiredCount to 0 expecting task run

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes