AWS - ECS and FargateYou want to run a batch job on ECS that runs once and stops. Which ECS feature should you use?ACreate a service with desiredCount 1BCreate a service with desiredCount 0CUse AWS Lambda instead of ECSDRun a standalone task without a serviceCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand ECS task typesStandalone tasks run once and stop; services keep tasks running continuously.Step 2: Analyze optionsService with desiredCount 1 keeps task running; Lambda is different service; desiredCount 0 runs no tasks.Final Answer:Run a standalone task without a service -> Option DQuick 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 jobsConfusing Lambda with ECS tasksSetting desiredCount to 0 expecting task run
Master "ECS and Fargate" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes Advanced Security - Security Hub overview - Quiz 7medium Advanced Security - AWS WAF for web application firewall - Quiz 5medium Advanced Security - Secrets Manager for credentials - Quiz 7medium Architecture Best Practices - Why AWS Well-Architected matters - Quiz 11easy CloudFormation - Parameters for customization - Quiz 5medium Cost Optimization - Data transfer cost awareness - Quiz 7medium ECS and Fargate - Fargate serverless containers - Quiz 1easy EKS - Why managed Kubernetes matters - Quiz 14medium Route 53 - Hosted zones concept - Quiz 8hard Route 53 - Record types (A, AAAA, CNAME, Alias) - Quiz 9hard