You have workloads with unpredictable spikes. Your architecture uses ECS on EC2. During a peak event, a new task fails to start because the instance lacks capacity and scaling lags. Which architecture change is most likely to prevent task start failures while keeping costs controlled?
Answer
Enable ECS Capacity Providers with managed scaling and scale the underlying Auto Scaling Group based on ECS task demand
Explanation
ECS capacity providers coordinate scaling between ECS services and the EC2 Auto Scaling Group, reducing time-to-capacity and preventing failed task placements. Managed scaling also aims to balance cost and availability.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A media platform stores original uploads in S3 and generates derivative videos. Regulatory policy requires auditability of transformations and that derivatives are only created from originals. Which design best enforces this constraint?
View question →
A developer wants to replace NAT Gateway usage for a VPC private subnet. The subnet must access the internet for outbound HTTPS only. Instances should retain private IPs and avoid inbound exposure. Which solution best meets these needs?
View question →
A SaaS application runs behind an Application Load Balancer. The service stores idempotency keys in DynamoDB to avoid duplicate processing. You need exactly-once processing semantics from the client’s perspective during retries, while still supporting high throughput. Which DynamoDB strategy best supports this?
View question →
A company must migrate a stateful, on-prem application to AWS with minimal downtime. The target must support blue/green releases and preserve session continuity across instances. Which combination best satisfies these requirements?
View question →
Your architecture uses RDS Multi-AZ and a read replica. A failover event occurs, and the application must automatically redirect read traffic to the new primary or an appropriate replica. What is the most reliable way to handle the change for clients?
View question →
A VPC contains multiple isolated workloads. You must prevent lateral movement while still allowing controlled cross-workload communication over specific ports. Which network pattern best implements security with minimal operational overhead?
View question →