A company is designing a cost-optimization strategy for its application on AWS. The application consists of the following components:
- A fleet of Amazon EC2 instances running a web backend that operates with a steady-state requirement of instances, scaling up during peak hours.
- An Amazon RDS for PostgreSQL database instance that operates .
- A data transformation batch job running on EC2 instances in a private subnet. The job runs daily, is fault-tolerant, and downloads massive amounts of daily transaction logs from Amazon S3.
Which combination of options is the MOST cost-effective for these requirements?
- APurchase a Compute Savings Plan to cover both the baseline EC2 instances and the Amazon RDS database instance, use Spot Instances for the batch job EC2 instances, and create a Gateway VPC endpoint for Amazon S3.
- BMigrate the continuous web backend to AWS Lambda functions, use Spot Instances for the batch job EC2 instances, purchase RDS Reserved Instances for the database, and create a Gateway VPC endpoint for Amazon S3.
- Purchase a Compute Savings Plan to cover the baseline EC2 instances, use Spot Instances for the batch job EC2 instances, purchase RDS Reserved Instances for the database, and create a Gateway VPC endpoint for Amazon S3.Answer
- DPurchase a Compute Savings Plan to cover the baseline EC2 instances, use Spot Instances for the batch job EC2 instances, purchase RDS Reserved Instances for the database, and route the S3 data transfer through a NAT Gateway.
Answer
The most cost-effective option is to purchase a Compute Savings Plan for the baseline EC2 instances, use Spot Instances for the batch job, purchase RDS Reserved Instances for the database, and create a Gateway VPC endpoint for Amazon S3.
The correct strategy combines a Compute Savings Plan for the baseline EC2 instances, Spot Instances for the interruptible batch job, RDS Reserved Instances for the 24/7 database, and a Gateway VPC endpoint to avoid NAT Gateway data processing charges for S3 traffic.
Step-by-Step Solution
Key Concept
Selecting cost-optimized purchasing strategies (Compute Savings Plans, Spot, Reserved Instances) and optimizing network traffic pathways to avoid NAT Gateway charges.