AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company is developing an application that needs to execute a large number of short-lived, compute-intensive tasks. The number of tasks can vary significantly and unpredictably throughout the day. The company wants a solution that minimizes operational overhead, scales automatically to handle the varying load, and charges based on actual compute time used. Which service should the company use to run these tasks?
Run the tasks in containers managed by ECS with Fargate.
Deploy the tasks on EC2 instances within an Auto Scaling group.
Utilize a batch processing service to process the tasks.
Using Lambda functions is ideal for this scenario because they allow running code without provisioning or managing servers, minimizing operational overhead. Lambda automatically scales to accommodate variable workloads and charges are incurred only for the actual compute time consumed during execution, making it cost-effective for unpredictable traffic patterns. Deploying tasks on EC2 instances within an Auto Scaling group requires managing the instances and may result in costs even when instances are idle. Running tasks in containers managed by ECS with Fargate simplifies container management but may not be as efficient for short-lived tasks and still involves container orchestration. Utilizing a batch processing service is suited for batch jobs but might introduce unnecessary complexity for executing simple, short-lived tasks.
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 Lambda functions and how do they work?
Open an interactive chat with Bash
What is operational overhead in cloud computing?
Open an interactive chat with Bash
What is the difference between EC2 and Lambda for handling compute tasks?