DVA-C02

Introduction to AWS Step Functions

Serverless workflow orchestration with visual state machines.

  • 3 lessons
  • Module quiz

Many business processes consist of several steps: validate an order, charge the card, reserve stock, then send a confirmation, with different paths when something fails. Coding such a process inside a single Lambda function, or as a chain of functions calling each other, makes errors, retries, waiting and parallel work hard to handle and the progress of each run hard to see.

AWS Step Functions is a serverless orchestration service for these processes. A workflow is described as a state machine in Amazon States Language, a JSON format, and Step Functions runs each state in order, passes data between them, and handles retries, error handling, branching, parallel work and waiting. Every execution is shown as a diagram with the status of each step. Step Functions offers Standard workflows, which run for up to a year and are charged per state transition, and Express workflows, which run for up to five minutes at high volume and are charged per request and duration.

Where Step Functions fits

Step Functions coordinates other services rather than doing the work itself: it calls Lambda functions and more than 200 AWS services directly, and it can pause until a person or an external system responds. On the exam, it is the answer when a process has several steps with retries, branching, long waits or human approval, while a single short task belongs in one Lambda function.

How this module is organised

Coordinating Workflows with Step Functions State Machines explains the types of state, the two workflow types and the service integration patterns, such as waiting for a callback with a task token. Recognising Microservice, Event-Driven, Orchestration and Saga Patterns covers the architectural patterns the exam expects you to recognise, such as microservices, choreography and orchestration, and the saga pattern. Handling Transient Failures with Retries, Backoff and Circuit Breakers explains how workflows recover from failures and protect the services they call.

  1. Coordinating Workflows with Step Functions State Machines Lesson 1
  2. Recognising Microservice, Event-Driven, Orchestration and Saga Patterns Lesson 2
  3. Handling Transient Failures with Retries, Backoff and Circuit Breakers Lesson 3
  4. Practise and review
  5. Test your knowledge 8 questions