SAP-C02

Introduction to Serverless and API Architecture

API Gateway, AppSync and Lambda designs that scale, stay secure and control cost.

  • 3 lessons
  • Module quiz

Serverless services remove servers from the design: AWS provides and scales the compute, and the customer pays for what is used. AWS Lambda runs code in response to events, Amazon API Gateway and AWS AppSync expose APIs, and services such as Amazon SQS, Amazon SNS and Amazon EventBridge connect components. Serverless designs scale quickly and need little operational work, which makes them attractive for new applications and for modernising old ones.

At scale, however, serverless designs raise their own architectural questions. Which front door suits an API: a REST, HTTP or WebSocket API in API Gateway, a GraphQL API in AppSync, or an Application Load Balancer? How is Lambda concurrency controlled so that a traffic spike does not overwhelm a database? How are failed events handled? And at what point would containers or instances be cheaper than Lambda?

Why it matters for the exam

These topics appear mainly in Domain 2, Design for New Solutions, and Domain 4, Accelerate Workload Migration and Modernization. Questions usually turn on a specific requirement, such as an API reachable only from a VPC, per-customer request limits, protection for a relational database or predictable latency, and ask for the serverless feature that meets it.

How this module is organised

Choosing an API Front Door: API Gateway, AppSync or ALB compares the ways of exposing an API and their features. Architecting Lambda Applications at Scale explains concurrency, start-up latency, protection of downstream systems and cost. Choosing Event-Driven Integration Services explains how serverless components are connected and how failures are handled in each invocation model.

  1. Choosing an API Front Door: API Gateway, AppSync or ALB Lesson 1
  2. Architecting Lambda Applications at Scale Lesson 2
  3. Choosing Event-Driven Integration Services Lesson 3
  4. Practise and review
  5. Test your knowledge 4 questions