A company must run a compute workload that can tolerate interruptions and requires massive parallelism. The workload must handle variable capacity and should prioritize cost efficiency while still completing within a maintenance window. What is the best strategy?

Answer

Use EC2 Spot Fleet or an Auto Scaling group with Spot instances, capacity-optimized allocation, and interruption handling with graceful termination hooks

Explanation

Spot is designed for cost-efficient, flexible parallel workloads but requires interruption handling. Capacity-optimized selection and termination hooks help maximize successful completion in the window.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A system uses Amazon RDS Multi-AZ with a read replica for reporting. During peak hours, write latency rises, but read traffic remains stable. The database administrator asks you to implement automatic failover to reduce disruption, while maintaining read capacity. Which move best addresses this request?

View question →

You must design an AWS Storage solution where applications need low-latency access to frequently-read objects in multiple regions, while keeping durability and lifecycle cost controls. Which approach is most suitable?

View question →

You need to run an API that performs stateful workflows where each step may take up to 15 minutes. Some steps involve calling external services with retries and timeouts. Which AWS service integration pattern best fits while minimizing operational overhead?

View question →

A data ingestion service writes events to a Kinesis Data Stream. Downstream processors must read in order per customerId, and you want scaling that adapts to shard count changes without losing ordering guarantees. What configuration best meets these requirements?

View question →

You are designing a VPC for a multi-tier app. The ALB must be reachable only from the corporate network, but ECS tasks need outbound internet for software updates. Which design provides least privilege while meeting requirements?

View question →

A workload stores user uploads in S3 and must enforce: (1) only HTTPS requests, (2) encryption at rest using SSE-S3, and (3) preventing access from any source VPC endpoint bypass. Which combination is most appropriate?

View question →

QuestionBack to list