AWS - ECS and FargateYou want to run a web app that scales automatically based on CPU usage. Which combination should you use in AWS ECS?ACreate a service with a task definition and enable auto scaling on the serviceBCreate only tasks without a service and manually start more tasksCUse EC2 instances without ECS to run containersDCreate a service but disable task definitionsCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify components for scalingA service manages tasks and can be configured with auto scaling based on CPU.Step 2: Evaluate other optionsRunning tasks without a service lacks auto scaling. Using EC2 alone misses ECS benefits. Disabling task definitions is invalid.Final Answer:Create a service with a task definition and enable auto scaling on the service -> Option AQuick Check:Service + task + auto scaling = C [OK]Quick Trick: Use service with auto scaling for CPU-based scaling [OK]Common Mistakes:Skipping service and expecting auto scalingConfusing EC2 usage without ECSDisabling task definitions breaks deployment
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