A solution uses AWS Step Functions to orchestrate an order processing workflow. Calls to an external payment service may time out. Requirements: retry only on transient failures, cap total retry time to 10 minutes, and avoid starting duplicate payment attempts. What should be configured?
Answer
Use Step Functions retry policy for specific transient error types (e.g., TimeoutError, ServiceUnavailable), set MaxAttempts and IntervalSeconds so the sum does not exceed 10 minutes, and implement idempotency at the payment call using a unique idempotency key per order
Explanation
Step Functions can target specific transient errors and cap the retry window by tuning interval/backoff and attempt limits. Idempotency keys ensure retries don’t create duplicate payment attempts.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You need to migrate a legacy SQL Server workload with frequent schema changes to a serverless database layer while meeting RPO=5 minutes and supporting multi-region reads. Which combination is most appropriate?
View question →
A company uses AWS Organizations with multiple workloads in different accounts. They need centralized security findings triage, but data must remain isolated per business unit. Additionally, some workloads must use customer-managed keys for encryption of logs. What is best?
View question →
A retail workload uses RDS Multi-AZ. The business requires read replicas to serve traffic, but write latency must stay under 20 ms p95. You also expect periodic failover and planned maintenance. What is the best AWS architecture choice?
View question →
A company needs near-real-time event processing with ordering guarantees per entity. They use Amazon EventBridge and store raw events in S3, then process with AWS Lambda. Which design best preserves per-entity ordering while maximizing throughput?
View question →
You have a multi-account AWS environment using AWS Organizations. A security control must prevent any new KMS keys from being created outside approved regions, and it must also ensure that created keys have rotation enabled. What is the most correct approach?
View question →
A media processing pipeline receives uploads to S3, transforms using containers on ECS, and publishes thumbnails. The pipeline must be resilient to spiky traffic and guarantee at-least-once processing without duplicating side effects. Which pattern is best?
View question →