A software company is redesigning the compute architecture for its multi-tenant application to optimize costs. The application runs on Amazon ECS on AWS Fargate and consists of two main workloads:
1. A suite of web APIs that runs continuously () to handle customer requests. This workload has a highly predictable baseline of ECS tasks, with occasional scaling peaks.
2. A background processing system that pulls video transcoding jobs from an Amazon SQS queue. The jobs are stateless, can be interrupted and resumed without issues, and run sporadically throughout the day.
Which combination of compute purchasing strategies will meet these requirements most cost-effectively? (Choose two.)
- Purchase a Compute Savings Plan to cover the baseline usage of the continuously running ECS tasks.Cevap
- Run the background video transcoding ECS tasks on Fargate Spot.Cevap
- CPurchase a Compute Savings Plan to cover both the ECS tasks and the application's Amazon Aurora PostgreSQL database compute costs.
- DMigrate the background video transcoding jobs to AWS Lambda and configure them to run continuously as long-running processes.
- EPurchase EC2 Instance Savings Plans to apply discounts to the ECS tasks running on AWS Fargate.
Cevap
The most cost-effective compute purchasing strategy combines a Compute Savings Plan for the baseline web API ECS tasks and Fargate Spot for the stateless, interruptible background video transcoding tasks.
Purchasing a Compute Savings Plan is the most cost-effective way to cover the continuously running Fargate tasks, as it provides a discount in exchange for a commitment to a consistent amount of compute usage. Running the stateless, queue-driven video transcoding tasks on Fargate Spot leverages spare capacity at a substantial discount, which is perfect since the workload can be interrupted and resumed via the Amazon SQS queue.
Adım Adım Çözüm
Anahtar Kavram
Selecting the optimal compute purchasing model (Savings Plans vs. Spot Instances) for containerized ECS Fargate workloads based on predictability and tolerance to interruption.