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

  • AOrchestrate the Lambda functions and callback tokens using an AWS Step Functions Standard Workflow state machineCorrect answer
  • BHave the first AWS Lambda function invoke the next five functions synchronously and pause using sleep statements
  • CConfigure an Amazon Simple Workflow Service (SWF) domain on EC2 polling instances managed by custom decider scripts
  • DUse Amazon EventBridge Scheduler one-time schedules to chain each step without maintaining workflow state

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.

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.