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
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.
More Development with AWS Services questions
- An Amazon API Gateway REST API fronts a legacy product-catalog backend that takes 800 ms per query. Because 90% of…
- A customer-facing checkout API built on AWS Lambda (Java 21 runtime) experiences a 3.2-second cold-start latency spike…
- An AWS Lambda function polls an Amazon SQS standard queue via an Event Source Mapping with a batch size of 10…
- Five different AWS Lambda functions written in Python 3.12 share the same 45 MB internal cryptography and…
- A photo-sharing platform stores private user photos in an Amazon S3 bucket (Block Public Access = ON). When an…
- A web application hosted on https://app.example.com makes an XMLHttpRequest / fetch() POST call (with a custom…
- A financial ledger uses Amazon SQS FIFO (First-In-First-Out) queues (orders.fifo) to guarantee strict message ordering…
- A developer is designing indexes for an Amazon DynamoDB Orders table whose base primary key is CustomerId (Partition…
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.