CloudGuild · Blog · Cheat sheets · Lessons · Certifications
AWS Certified Solutions Architect - Associate Exam Walkthrough: Serverless Application Design
Master the SAA-C03 exam with this detailed walkthrough on designing serverless applications using AWS services.
Designing a serverless application can trip many candidates. The decision hinges on understanding which AWS services align with serverless architecture and event-driven processing.
The question
You are designing a serverless application on AWS that needs to process events from multiple sources and orchestrate workflows. Which services would you choose to implement this architecture?
- A. Amazon EC2 and Amazon RDS
- B. AWS Lambda and Amazon Step Functions
- C. Amazon S3 and AWS Batch
- D. Amazon API Gateway and AWS CloudFormation
Think before you scroll
Consider the characteristics of each service. What defines a serverless architecture? Focus on the ability to process events and manage workflows without provisioning servers.
The answer
The correct option is B. AWS Lambda and Amazon Step Functions. AWS Lambda excels at processing events from various sources, while Amazon Step Functions orchestrate the workflows required to manage these processes. Together, they embody a true serverless application.
Why the other options lose
- A. Amazon EC2 and Amazon RDS: Both of these services require server provisioning and management. EC2 is a virtual server, while RDS is a managed relational database. Neither aligns with the serverless principle.
- C. Amazon S3 and AWS Batch: Amazon S3 is an object storage service and AWS Batch is designed for batch processing jobs. They do not inherently support event-driven processing or workflow orchestration, making them unsuitable for this scenario.
- D. Amazon API Gateway and AWS CloudFormation: API Gateway is primarily for managing APIs, while CloudFormation is for infrastructure as code. Neither service orchestrates workflows nor processes events effectively in a serverless context.
The concept behind it
Serverless architecture allows developers to focus on writing code without managing servers. AWS Lambda processes events triggered by various sources, and Step Functions manage complex workflows by coordinating multiple Lambda functions or other services. Understanding these roles is crucial for designing efficient serverless applications.
Exam trap to remember
Remember: For serverless architectures, prioritize AWS Lambda for event processing and Step Functions for orchestration. Avoid services that require server management.