AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company needs to run a scheduled task that processes data files stored in Amazon S3. The task runs for a few minutes every hour. The solution should minimize operational overhead and costs. Which compute option should they choose?
You selected this option
Use Amazon ECS with AWS Fargate to run the task in a container.
You selected this option
Create an AWS Lambda function that is triggered on a schedule to run the task.
You selected this option
Launch an Amazon EC2 instance to run the task and keep it running continuously.
You selected this option
Set up an on-premises server to periodically pull data from S3 and process it.
Creating an AWS Lambda function that is triggered on a schedule is the best choice. AWS Lambda allows you to run code without provisioning or managing servers, and you are billed only for the compute time you consume, making it cost-effective for tasks that run intermittently. It seamlessly integrates with Amazon S3 and can be scheduled using AWS EventBridge (formerly CloudWatch Events). Running an Amazon EC2 instance continuously incurs unnecessary costs and additional operational overhead for management and maintenance. Using Amazon ECS with AWS Fargate reduces the need to manage servers but may not be cost-effective for short, infrequent tasks due to per-second billing with a minimum charge. Maintaining on-premises infrastructure increases operational overhead and is not relevant for minimizing costs in the AWS environment.
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 is AWS Lambda and how does it work?
Open an interactive chat with Bash
What is AWS EventBridge and how is it related to scheduled tasks?
Open an interactive chat with Bash
How does AWS Lambda handle cost compared to Amazon EC2?