AWS Solutions Architect · Design Resilient Architectures · medium
An order-fulfillment workflow coordinates six AWS Lambda functions and an external payment gateway. Each order requires sequential and parallel steps, human approval timeouts of up to three days, and declarative per-step retry and catch policies with visual execution history. Which service should orchestrate this workflow?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: A. Orchestrate the Lambda functions and callback tokens using an AWS Step Functions Standard Workflow state machine
AWS Step Functions Standard Workflows support long-running executions (up to one year), wait-for-callback human approval patterns, parallel branches, declarative retry/catch error handling, and full visual execution history.Chaining Lambda functions directly in code is brittle and limited to 15-minute execution timeouts, and SQS queues alone do not provide branching orchestration.
Why the other options are wrong
- B. Have the first AWS Lambda function invoke the next five functions synchronously and pause using sleep statements — Lambda functions have a maximum 15-minute execution timeout and pay for idle wait time when chained synchronously.
- C. Configure an Amazon Simple Workflow Service (SWF) domain on EC2 polling instances managed by custom decider scripts — AWS recommends Step Functions over legacy SWF for new serverless orchestration to avoid managing custom decider workers.
- D. Use Amazon EventBridge Scheduler one-time schedules to chain each step without maintaining workflow state — EventBridge Scheduler triggers time-based events and does not maintain per-order branching state or catch/retry graphs.
More Design Resilient Architectures questions
- A stateful banking application requires clients to connect over TCP using static anycast IP addresses that remain…
- A web application runs on an Amazon EC2 Auto Scaling group behind an Application Load Balancer across three…
- A production Amazon RDS for MySQL database runs in a single Availability Zone. Management requires automatic database…
- A SaaS platform ingests webhook events from twenty third-party partners and routes them to different internal…
- An enterprise ERP system has a Recovery Time Objective (RTO) of 15 minutes and a Recovery Point Objective (RPO) of 1…
- A global payments API requires a Recovery Point Objective (RPO) under 5 seconds and a Recovery Time Objective (RTO)…
- An e-commerce checkout service publishes order events that must be processed once and strictly in the order each…
All Design Resilient Architectures questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.