ExitAWS Step Functions: workflow error handling1 / 9
Explanationassociate9 steps · 4 exercises

Recover inside or outside the workflow

Trace how Step Functions matches errors, including wildcard exceptions, to retry states with backoff or route failures and timeouts to a fallback, and identify which failures must be handled at the execution level.

By default, an error reported by a state fails the entire execution. A Step Functions workflow can instead handle a task error inside the current run: retry the work or move to a fallback that returns a useful result with less information.

This Standard workflow tries to fetch inventory. If it cannot, it can return “availability unknown” rather than report that an item is out of stock. The diagram shows outbound calls and events, not task responses. It also shows a separate handler for failures that end the run.

task attemptswildcard-caught errorsexecution status eventsfailure events
Standard workflowAWS Step Functions
Fetch inventoryAWS Lambda
Return unknown availabilityAWS Lambda
Execution status routingAmazon EventBridge
Handle failed executionAWS Lambda

Stage 1 of 6: The Standard workflow runs the inventory lookup and owns the decisions about retries and fallback.

Next up: Complete the diagram on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.