
Explanation:
Correct Answer: D
Why Option D is correct:
Why other options are incorrect:
Option A:
Option B:
Option C:
Key AWS Services Used:
Best Practice: This solution follows AWS best practices for cost optimization by using serverless services to manage infrastructure lifecycle, eliminating the need for dedicated management servers.
Ultimate access to all questions.
No comments yet.
A company is migrating its on-premises workload to the AWS Cloud. The company already uses several Amazon EC2 instances and Amazon RDS DB instances. The company wants a solution that automatically starts and stops the EC2 instances and DB instances outside of business hours. The solution must minimize cost and infrastructure maintenance.
Which solution will meet these requirements?
A
Scale the EC2 instances by using elastic resize. Scale the DB instances to zero outside of business hours.
B
Explore AWS Marketplace for partner solutions that will automatically start and stop the EC2 instances and DB instances on a schedule.
C
Launch another EC2 instance. Configure a crontab schedule to run shell scripts that will start and stop the existing EC2 instances and DB instances on a schedule.
D
Create an AWS Lambda function that will start and stop the EC2 instances and DB instances. Configure Amazon EventBridge to invoke the Lambda function on a schedule.