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
What is the maximum duration of a Step Functions Standard workflow execution?
- Five minutes
- 15 minutes
- 90 days
- 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.
Which statements about Step Functions Express workflows are correct?
- An execution can run for at most five minutes
- Billing is based on executions, duration and memory used
- They support the .waitForTaskToken callback pattern
- Asynchronous Express executions are at-least-once
- 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.
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.
