An on-premises application runs for less than five minutes each time and is invoked only a few times per day. To move this application to AWS in the most cost-effective way, which service should the company use?
Choose an answer
Tap an option to check your answer.
Correct answer: AWS Lambda.
Why this is the answer
AWS Lambda is the most cost-effective solution for this scenario because it is a serverless compute service that executes code only when triggered. You pay only for the compute time consumed, making it ideal for infrequent, short-duration tasks. Since the application runs for less than five minutes and is invoked only a few times daily, Lambda's pay-per-execution model will be significantly cheaper than maintaining always-on servers. Amazon ECS and Amazon EKS are container orchestration services that typically involve running containers on underlying EC2 instances, incurring costs even when the application is idle. Amazon EC2 involves provisioning and managing virtual servers, which would also incur costs for the entire time the instance is running, regardless of application usage.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed