A financial technology company is designing a cost-optimization strategy for its application environment on AWS. The application consists of three main components:
1. A core transactional processing service running continuously 24/7 on Amazon ECS with AWS Fargate.
2. A metadata repository on Amazon DynamoDB that handles highly unpredictable, spiky request volumes throughout the day.
3. An image-processing task that runs for less than 10 seconds per invocation, triggered whenever users upload new documents to Amazon S3.
Which of the following compute selection and purchasing strategies is the most cost-effective for this environment?
- Run the ECS tasks on AWS Fargate covered by a Compute Savings Plan; configure Amazon DynamoDB in On-Demand capacity mode; and use AWS Lambda for the short-lived document processing tasks.Cevap
- BRun the ECS tasks on AWS Fargate, configure Amazon DynamoDB in Provisioned capacity mode, and cover all compute and database costs (Fargate, DynamoDB, and Lambda) under a single Compute Savings Plan.
- CMigrate the continuous 24/7 ECS core transactional processing service to run on AWS Lambda; configure Amazon DynamoDB in On-Demand capacity mode; and purchase a Compute Savings Plan to cover all Lambda functions.
- DRun the ECS tasks on AWS Fargate covered by a Compute Savings Plan; configure Amazon DynamoDB in Provisioned capacity mode with high fixed read/write capacity units to handle the peaks; and use AWS Lambda for the short-lived tasks.
Cevap
Run the ECS tasks on AWS Fargate covered by a Compute Savings Plan; configure Amazon DynamoDB in On-Demand capacity mode; and use AWS Lambda for the short-lived document processing tasks.
The correct strategy combines Compute Savings Plans for the steady-state ECS Fargate tasks, DynamoDB On-Demand capacity mode for the spiky, unpredictable database traffic, and AWS Lambda for the short-lived, event-driven tasks. Compute Savings Plans apply to Fargate and Lambda, offering up to a 66% discount on Fargate workloads. DynamoDB On-Demand avoids over-provisioning costs by charging only for active read/write requests. AWS Lambda is cost-effective for sub-second and low-duration tasks as you only pay when the function is active.
Adım Adım Çözüm
Anahtar Kavram
Selecting cost-optimal compute services (ECS Fargate vs Lambda) and aligning them with appropriate purchasing strategies (Compute Savings Plans) and database scaling modes (DynamoDB On-Demand).
Tahmini Süre:1m 30s