AWS SAA-C03 · Question 60 · Domain 4.2: Compute Cost Optimization
A company has a script that runs for 5 minutes every night at midnight to clean up database records. Currently, the script runs on a t3.micro EC2 instance that is left running 24/7.<br/><br/>What is the MOST cost-effective way to run this script?
Answer options:
Purchase a Reserved Instance for the t3.micro.
Use an Auto Scaling group to start the EC2 instance at midnight and terminate it at 12:10 AM.
Migrate the script to an AWS Lambda function and trigger it using an Amazon EventBridge scheduled rule.
Run the script on AWS Fargate.
65 questions · hints · full answers · grading