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?
Amazon EC2 On-Demand Instances
AWS Lambda
Amazon EC2 Reserved Instances
Amazon EC2 Spot Instances
Explanations:
EC2 On-Demand Instances are not the most cost-effective for short runtime applications.
AWS Lambda is ideal for short runtime applications and is cost-efficient as it charges per invocation.
EC2 Reserved Instances require a commitment, which doesn’t align with short runtime needs.
EC2 Spot Instances are cost-effective but not guaranteed, making them less suitable for critical applications.