AWS Certified Cloud Practitioner — Question 62

A company wants to migrate a critical application to AWS. The application has a short runtime. The application is invoked by changes in data or by shifts in system state. The company needs a compute solution that maximizes operational efficiency and minimizes the cost of running the application.
Which AWS solution should the company use to meet these requirements?

Answer options

Correct answer: B

Explanation

AWS Lambda is the best option because it is designed for short-lived applications and operates on a pay-as-you-go model, making it cost-effective. In contrast, Amazon EC2 On-Demand and Reserved Instances are not optimized for short runtimes, and Spot Instances may not guarantee the reliability needed for a critical application.