CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Understanding Serverless Options: SAA-C03 Exam Walkthrough
Explore a question on AWS serverless options for the SAA-C03 exam. Learn why AWS Lambda is the best choice.
Migrating applications to AWS can confuse candidates, especially when choosing cost-effective compute options. The right service can impact both performance and expenses significantly.
The question
A financial services company is migrating its applications to AWS and wants to ensure that they are only charged for the compute resources they actually use. They are considering a serverless compute option. Which AWS service meets this requirement?
- A) Amazon EC2 on-demand instances
- B) AWS Fargate
- C) Amazon Lightsail
- D) AWS Lambda
Think before you scroll
Consider each option carefully. Focus on the nature of serverless computing, how each service operates, and the pricing model associated with them. This will help in identifying the correct answer.
The answer
The correct option is D) AWS Lambda. AWS Lambda is a serverless compute service that charges only for the compute time consumed. This aligns perfectly with the requirement of only being charged for resources used.
Why the other options lose
- A) Amazon EC2 on-demand instances: EC2 on-demand instances involve fixed costs regardless of how much they are used. This does not meet the requirement of being charged only for actual usage, making it a less suitable option.
- B) AWS Fargate: While Fargate does offer serverless capabilities, it is primarily designed for containerized applications. It may not be the most cost-effective choice for simpler workloads, which makes it less ideal for the user's needs in this scenario.
- C) Amazon Lightsail: Lightsail provides a simplified cloud experience with fixed pricing. Like EC2, it charges a flat rate, which does not align with the goal of charging only for what is used.
The concept behind it
Understanding the differences between serverless and traditional compute services is crucial. Serverless services like AWS Lambda automatically scale and only charge for the time your code runs. On the other hand, traditional services like EC2 and Lightsail require you to provision and pay for resources continuously, even when not in use.
Exam trap to remember
Remember: Serverless means you pay only for what you consume. AWS Lambda exemplifies this in the exam context.