An IoT smart home company is deploying its application platform to AWS. The platform consists of two main workloads:
1. A backend microservice API that handles device telemetry updates. The traffic is highly unpredictable and spiky, with individual request durations averaging less than .
2. A background data processing engine that runs continuously hours a day, days a week () on Amazon Elastic Container Service (Amazon ECS) using the AWS Fargate launch type.
Which two solutions should a solutions architect recommend to achieve the most cost-effective compute architecture?
- Host the backend API on AWS Lambda to leverage automatic scaling and pay-per-request billing.Answer
- BPurchase an EC2 Instance Savings Plan to lower the cost of the Amazon ECS on AWS Fargate workload.
- CMigrate the background data processing engine to AWS Lambda to reduce costs through serverless scaling.
- Purchase a Compute Savings Plan to reduce the cost of the Amazon ECS on AWS Fargate workload.Answer
- EPurchase a Compute Savings Plan to reduce the cost of the Amazon ECS on AWS Fargate workload and the write capacity of an Amazon DynamoDB table.
Answer
To optimize costs, host the backend API on AWS Lambda to benefit from automatic scaling and pay-per-request pricing, and purchase a Compute Savings Plan to cover the continuous Amazon ECS on AWS Fargate background workload.
Hosting the backend API on AWS Lambda is correct because it charges only per request and execution duration, which is highly cost-effective for unpredictable, spiky traffic with short execution times. Purchasing a Compute Savings Plan is the correct discount strategy for the Amazon ECS on AWS Fargate workload because Compute Savings Plans apply a discount to Fargate, Lambda, and EC2 compute usage.
Step-by-Step Solution
Key Concept
Selecting the optimal compute model (Lambda vs. ECS Fargate) and purchasing strategy (Compute Savings Plans) based on traffic patterns and service coverage rules.
Estimated Time:1m 30s