Bitzu

SAA-C03 ยท Decoupling and serverless patterns

Workflow orchestration with Step Functions

State machines, Standard versus Express workflows, retries and error handling, and orchestration versus choreography of microservices.

Key points

  • Step Functions: state machine in Amazon States Language; Task, Choice, Parallel, Map, Wait states; Retry and Catch for errors.
  • Standard: up to one year, exactly-once, 90-day history, billed per state transition; .sync jobs, callbacks.
  • Express: up to five minutes, billed per execution, duration, memory; high-volume idempotent events.
  • Type is fixed at creation.
  • Orchestration: central controller; choreography: services react to events.

Source: https://docs.aws.amazon.com/step-functions/latest/dg/choosing-workflow-type.html

Practice questions

Single choice

What is the maximum duration of a Step Functions Standard workflow execution?

  1. Five minutes
  2. 15 minutes
  3. 90 days
  4. One year
Show answer

Answer: D. One year

Standard workflows can run for up to one year. Five minutes is the Express workflow limit, and 15 minutes is the Lambda invocation limit.

Select all that apply

Which statements about Step Functions Express workflows are correct?

  1. An execution can run for at most five minutes
  2. Billing is based on executions, duration and memory used
  3. They support the .waitForTaskToken callback pattern
  4. Asynchronous Express executions are at-least-once
  5. Step Functions keeps their execution history for 90 days
Show answer

Answer: A. An execution can run for at most five minutes, B. Billing is based on executions, duration and memory used, D. Asynchronous Express executions are at-least-once

Express workflows last at most five minutes, are billed by number of executions, duration and memory, and run at least once in asynchronous mode. They do not support the .waitForTaskToken callback pattern, and Step Functions does not keep their execution history; you enable CloudWatch Logs instead.

True or false

You can switch an existing Step Functions state machine from Standard to Express by updating its settings.

Show answer

Answer: False

False. The workflow type is fixed when the state machine is created; to change it you create a new state machine of the other type.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More SAA-C03 topics in this module