A game development company is designing the infrastructure for a new multiplayer mobile game on AWS. The application has the following requirements:
* A game API service that experiences highly variable, spiky traffic throughout the day.
* A matchmaking service that must run continuously hours a day, days a week on Amazon EC2.
* A nightly batch processing job that processes game telemetry, is non-time-critical, can tolerate interruptions, and produces temporary output files that are deleted within hours.
* A relational database tier running on Amazon RDS for MySQL.
Which combination of hosting configurations and purchasing strategies is the most cost-effective for this workload?
- Host the game API on AWS Lambda, purchase a Compute Savings Plan for the matchmaking EC2 instances, run the batch processing job on EC2 Spot Instances storing temporary files in Amazon S3 Standard, and purchase Reserved Instances for the Amazon RDS database.Answer
- BHost the game API on AWS Lambda, purchase a single Compute Savings Plan to cover both the matchmaking EC2 instances and the Amazon RDS database, and run the batch processing job on EC2 Spot Instances storing temporary files in Amazon S3 Standard.
- CHost both the game API and the matchmaking service on AWS Lambda, run the batch processing job on EC2 Spot Instances storing temporary files in Amazon S3 Standard, and purchase Reserved Instances for the Amazon RDS database.
- DHost the game API on AWS Lambda, purchase a Compute Savings Plan for the matchmaking EC2 instances, run the batch processing job on EC2 Spot Instances storing temporary files in Amazon S3 Standard-Infrequent Access (S3 Standard-IA), and purchase Reserved Instances for the Amazon RDS database.
Answer
Host the game API on AWS Lambda, purchase a Compute Savings Plan for the matchmaking EC2 instances, run the batch processing job on EC2 Spot Instances storing temporary files in Amazon S3 Standard, and purchase Reserved Instances for the Amazon RDS database.
Hosting the spiky game API on AWS Lambda ensures payment is only for actual requests. The continuously running matchmaking EC2 instances are discounted using a Compute Savings Plan. The interruptible nightly batch job runs on low-cost Spot Instances, and storing its short-lived files in Amazon S3 Standard avoids the -day minimum billing penalty of S3 Standard-IA. Finally, purchasing Reserved Instances for the Amazon RDS database reduces its continuous running costs.
Step-by-Step Solution
Key Concept
Workload-based compute selection, Savings Plans scope, Spot Instances, and S3 storage tier cost structures.