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 are some examples of use cases for AWS Lambda?
Open an interactive chat with Bash
How does AWS Lambda differentiate itself from AWS Fargate?
Open an interactive chat with Bash
What does it mean that AWS Lambda jobs are stateless?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .