Step Functions Flashcards
1
Q
Three patterns for integrating Step Functions with an AWS Service
A
- Request a Response (Default): Lambda, SNS
- Run a Job (Wait for Completion): Asynch: ECS tasks, Glue Jobs, Batch
- Callback: Call a Service with a Task Token. When the service is done working, it can return the Token with a “SendTaskSuccess” or “SendTaskFailure” API call.
2
Q
What happens when a SF State reports an Error?
A
- First looks for a “retry”
- If none, or retry fails, look to “CATCH” array
CATCH options include retry, log the error, send to a defined recovery state
3
Q
Must every Step Functions State have a “Next” field? Can they have more than one?
A
Yes, at least one. Those States with a “Choice” will have a “Next” option corresponding to each possible choice.