An enterprise runs a containerized web application on Amazon Elastic Container Service (Amazon ECS) with AWS Fargate. The application consists of two main microservices:
1. A core transactional service that runs continuously and requires a stable baseline of tasks.
2. A non-urgent data processing worker service that processes jobs from an Amazon SQS queue. The workload for this worker service is highly unpredictable, can be delayed if necessary, and the application code is designed to tolerate task interruptions.
The application database is hosted on Amazon RDS for MySQL.
Which two strategies should a solutions architect recommend to minimize compute costs for this architecture? (Select TWO.)
- Purchase a Compute Savings Plan to cover the baseline Fargate tasks running the core transactional service.Cevap
- Use AWS Fargate Spot capacity providers to run the tasks for the non-urgent data processing worker service.Cevap
- CPurchase a Compute Savings Plan to cover both the Amazon ECS tasks and the Amazon RDS database instances.
- DMigrate the continuously running core transactional service to AWS Lambda to eliminate idle task costs.
- EUse AWS Cost Explorer reports monthly to reactively scale down the background worker service tasks during traffic spikes.
Cevap
Purchase a Compute Savings Plan to cover the baseline Fargate tasks running the core transactional service, and use AWS Fargate Spot capacity providers to run the tasks for the non-urgent data processing worker service.
To achieve a cost-optimized compute architecture on AWS Fargate, steady-state baseline workloads should leverage Compute Savings Plans, which offer significant discounts in exchange for a commitment to a consistent amount of compute usage. For interruption-tolerant, non-urgent workloads, AWS Fargate Spot is the most cost-effective option as it provides spare capacity at a steep discount.
Adım Adım Çözüm
Anahtar Kavram
Selecting cost-optimized compute purchasing strategies (Compute Savings Plans for steady-state Fargate workloads and AWS Fargate Spot for interruption-tolerant, non-urgent workloads).