CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Optimizing Costs for Serverless Applications: A Walkthrough
Discover how to choose the right AWS service for cost-effective image storage in serverless applications. Optimize your exam success.
A common challenge candidates face in the AWS Certified Solutions Architect - Associate exam is selecting the right storage solution that balances cost and access frequency. This question tests your knowledge of AWS storage classes and their ideal use cases.
The question
A startup is looking to optimize costs for their serverless application, which processes images uploaded by users. They want to store these images in a durable and cost-effective manner while also allowing for occasional access. Which AWS service should they use?
- A) Amazon S3 Standard
- B) Amazon S3 Intelligent-Tiering
- C) Amazon EFS
- D) Amazon S3 Glacier
Think before you scroll
Consider the access patterns of the stored images. The startup needs a solution that is cost-effective for infrequent access while still providing durability. Understanding the characteristics of each option is crucial.
The answer
The correct option is B) Amazon S3 Intelligent-Tiering. This storage class automatically moves data between two access tiers based on changing access patterns, making it ideal for applications with variable access like the one described.
Why the other options lose
A) Amazon S3 Standard: While this option provides durability and high availability, it does not optimize costs for variable access patterns. It is designed for frequently accessed data, which may not be cost-effective for this startup's needs.
C) Amazon EFS: Amazon Elastic File System (EFS) offers a file system interface but involves more complexity and higher costs compared to S3 for infrequent access. It's better suited for use cases requiring shared access across instances.
D) Amazon S3 Glacier: This option is designed specifically for archival storage and is not suitable for occasional access. Retrieval times can be significantly longer, making it impractical for the startup's needs.
The concept behind it
The principle at play here is understanding storage classes and their access patterns. AWS offers different storage solutions tailored for specific use cases. S3 Intelligent-Tiering is a perfect example of a service that optimizes costs by adapting to changes in how often data is accessed.
Exam trap to remember
Remember: for variable access patterns, choose S3 Intelligent-Tiering for cost optimization. It adapts to your usage, ensuring you pay only for what you need.