An organization needs to execute code in response to incoming web requests from a mobile app without the overhead of provisioning or maintaining servers. The workload is prone to experience unpredictable increases in demand. Which service should be used to handle these requirements efficiently?
AWS Lambda is the optimal solution for executing code in response to events like incoming web requests without the need for server management. It is well-suited to handle unpredictable demand due to its ability to scale automatically with each trigger. This makes it ideal for situations where there are unexpected spikes in traffic. The pricing model, based on the number of requests and the duration of execution, also aligns with a variable workload, offering cost efficiency.
Other options are less suitable. Amazon EC2 requires you to provision and manage your own virtual servers. While Amazon ECS with AWS Fargate is a serverless compute engine for containers, it is designed for running containerized applications and involves more configuration than Lambda for this simple, event-driven task. Amazon SNS is a publish/subscribe messaging service, not a compute service; it is used for sending notifications and decoupling applications, but it does not execute application code itself.
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.
How does AWS Lambda handle scalability during sudden traffic spikes?
Open an interactive chat with Bash
What is the difference between AWS Lambda and EC2 in terms of server management?
Open an interactive chat with Bash
Why is AWS Simple Notification Service (SNS) unsuitable for executing code in response to HTTP requests?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .