CloudGuild · Blog · Cheat sheets · Lessons · Certifications

AWS Certified Solutions Architect - Associate: Cost-Effective Backend Processing

Learn how to answer a key question on the SAA-C03 exam about choosing the most cost-effective backend service for mobile applications.

A common challenge for candidates is determining which AWS service minimizes costs while providing the necessary backend processing. In this post, we will dissect a question that tests your understanding of cost-optimized architectures.

The question

A development team is building a mobile application that requires backend processing. They want to limit costs and only pay for the compute resources when the application is being used. Which service is the most cost-effective for this use case?

A. AWS Fargate
B. Amazon EC2 Spot Instances
C. AWS Lambda
D. Amazon EC2 On-Demand Instances

Think before you scroll

Consider how each service charges for computing resources. The goal is to find a service that only incurs costs during actual usage, not when idle. This focus on cost-effectiveness is crucial for the development team's requirements.

The answer

The correct option is C. AWS Lambda. It allows the team to run code in response to events without provisioning servers. They only pay for the compute time consumed, making it highly cost-effective for the use case of a mobile application that operates intermittently.

Why the other options lose

A. AWS Fargate: While Fargate also simplifies container management, it does not offer the same billing model as Lambda. Fargate charges for the resources allocated, even if they are not actively used. This can lead to higher costs compared to Lambda.

B. Amazon EC2 Spot Instances: Spot Instances can be cheaper than On-Demand Instances but still require management. They may not always be available, and costs can accumulate during periods of high demand. This makes them less reliable for consistent backend processing.

D. Amazon EC2 On-Demand Instances: On-Demand Instances charge for compute resources regardless of usage. They are not ideal for fluctuating workloads, as costs can add up quickly during idle times. This option does not align with the team's goal of limiting costs.

The concept behind it

Understanding AWS Lambda is key. It operates on an event-driven model, meaning you only pay when the function is invoked. This makes it ideal for applications with variable workloads, as costs are directly tied to actual usage, ensuring maximum cost efficiency.

Exam trap to remember

Always choose services that charge based on usage for intermittent workloads. This rule can save you from costly mistakes in the exam and real-world scenarios.

Take the free SAA-C03 mock exam

Take a free mock exam →