AWS Developer Associate (DVA-C03) · Free practice question 1 of 12
Step Functions Retry and Catch fields
An order workflow at Pemberton Wine uses AWS Step Functions. One Task state calls a shipping API that sometimes returns transient errors, and after three failed attempts the workflow should move to a state that notifies staff. How should the state be configured?
- A.Add a Wait state of 3 seconds before the Task and remove error handling from the state definition
- B.Add a Retry rule with MaxAttempts and BackoffRate, plus a Catch that routes to the notification state
- C.Wrap the Task in a Map state with a concurrency of 3 so that three copies of the call run in parallel
- D.Set the state machine type to Express so that failed Task states restart the entire execution automatically
Show answer and explanation
Correct answer: B. Add a Retry rule with MaxAttempts and BackoffRate, plus a Catch that routes to the notification state
Why: Task states support Retry rules (error names, interval, MaxAttempts, BackoffRate) and Catch rules that transition to a fallback state once retries are exhausted. A Map state iterates over items rather than retrying. Express workflows do not restart failed executions automatically. A fixed wait before the call does not handle failures at all.
More free AWS Developer Associate (DVA-C03) questions
- SQS FIFO message groups for ordering
- DynamoDB Streams for change processing
- EventBridge Scheduler one-time invocations
- Explicit deny in policy evaluation
- Hardening S3 bucket access settings
- ApplyGuardrail API for any model
- Previewing stack updates with change sets
- Test traffic hook in ECS blue/green
- API Gateway REST canary release
- SQS visibility timeout for Lambda consumers
- Metric filters for log-based alarms