A company requires a cost-efficient compute service to run occasional data-processing jobs that must start within minutes and scale automatically as load increases. The jobs are stateless and independent. Which AWS compute service should the company use?
AWS Lambda is the most appropriate choice because it lets you run code without provisioning servers, starts in milliseconds, and automatically scales with the number of events. Billing is based on the number of requests and the milliseconds of execution, so you pay only when the job is running, which is highly cost-efficient for sporadic workloads.
Amazon EC2 Auto Scaling can also adjust capacity automatically, but you are billed for every active instance for the entire time it runs, which is usually more expensive for short, infrequent tasks and requires you to maintain AMIs and scaling policies.
AWS Fargate is a serverless container service that charges per second for vCPU and memory (with a one-minute minimum). For very brief, intermittent jobs, its resource-based pricing is typically higher than Lambda's per-request model and still requires creating and managing a container image.
AWS Elastic Beanstalk orchestrates underlying EC2 resources for web applications or long-running services and is not optimized for ad-hoc, stateless batch processing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does it mean for a service to be 'stateless'?
Open an interactive chat with Bash
How does AWS Lambda scale automatically?
Open an interactive chat with Bash
What are some use cases for AWS Lambda?
Open an interactive chat with Bash
AWS Cloud Practitioner CLF-C02
Cloud Technology and Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access