AWS Developer DVA-C02 · Development with AWS Services · medium

An order-fulfillment workflow coordinates 6 sequential and parallel steps: reserve inventory, charge credit card, handle payment retry/backoff on transient error, wait up to 48 hours for warehouse manager approval via a callback token (waitForTaskToken), and ship the package. Why is AWS Step Functions (Standard Workflow) preferred over chaining 6 AWS Lambda functions together via synchronous Invoke calls in code?

Published · Last updated · checked before publication — how we verify questions

Options

  • AIncrease a single AWS Lambda function's timeout to 48 hours using time.sleep(172800)
  • BStep Functions Standard Workflows support 1-year runs, waitForTaskToken, and Retry/CatchCorrect answer
  • CAmazon API Gateway WebSocket connections stay open for 48 hours without disconnects
  • DAmazon ElastiCache Memcached automatically orchestrates 48-hour payment retries

Answer: B. Step Functions Standard Workflows support 1-year runs, waitForTaskToken, and Retry/Catch

AWS Step Functions Standard Workflows provide built-in state management, declarative Retry and Catch error handling, visual audit history, and long-running execution durations up to 1 year (including .waitForTaskToken human approval callbacks without paying for idle Lambda compute), whereas a single Lambda execution is capped at 15 minutes.

Why the other options are wrong

  • A. Increase a single AWS Lambda function's timeout to 48 hours using time.sleep(172800) — AWS Lambda has a hard maximum execution timeout of 15 minutes (900 seconds), and sleeping inside Lambda bills for idle compute.
  • C. Amazon API Gateway WebSocket connections stay open for 48 hours without disconnects — API Gateway WebSocket connections have a maximum connection duration of 2 hours.
  • D. Amazon ElastiCache Memcached automatically orchestrates 48-hour payment retries — Memcached is a volatile key-value cache, not a durable workflow state machine.

All Development with AWS Services 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.