AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A startup is building a mobile backend that needs to process asynchronous, unpredictable bursts of data. The data processing jobs are expected to complete within seconds and the workload does not require any server to be continuously running. Which compute solution should be recommended for optimal cost efficiency?
Utilizing spare computing capacity in the cloud at discounted rates for fault-tolerant and flexible applications.
A container management service that abstracts the server layer, charging for container task execution time.
A service providing virtual servers to secure lower rates for continuous usage through an upfront payment.
A serverless platform that scales automatically with the invocation of code and only charges for the compute time used.
Given the requirements of handling asynchronous and unpredictable bursts of data without a need for a constantly running server, a serverless approach is most cost-effective. The recommended service, AWS Lambda, allows the startup to run code in response to triggers and automatically manages the scaling. There is no charge for when the code isn't running, matching the sporadic workload, thereby reducing operational costs. Other services like EC2, even with Spot Instances, wouldn't be cost-effective due to the potential of paying for idle time. Similarly, EC2 Reserved Instances would not fit the unpredictable pattern and would involve a long-term commitment. AWS Fargate offers task-based pricing but still incurs costs for the duration the task is running, which might not be as cost-effective for very 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 is AWS Lambda and how does it work?
Open an interactive chat with Bash
What are the advantages of using a serverless model?
Open an interactive chat with Bash
What is the difference between AWS Lambda and EC2?