A Step Functions workflow must process an S3 JSON array exceeding 256 KiB, with one object key per item. The downstream service permits at most 20 concurrent tasks; which design meets these constraints without custom batching?
Show the answer
Correct answerB. Use a Distributed Map with an S3 ItemReader and MaxConcurrency set to 20.
AWhy not this: Parallel branches do not partition the array, and passing the entire array exceeds the state payload limit.
BWhy this is right: The S3 ItemReader handles the large input, while MaxConcurrency limits concurrent child executions to 20.
CWhy not this: Without an explicit concurrency limit, Distributed Map can exceed the downstream service's capacity.
DWhy not this: Inline Map requires its input array in the state payload, which cannot exceed 256 KiB.
A Distributed Map can read a large dataset directly from S3, and MaxConcurrency limits concurrent child workflow executions. An Inline Map cannot accept an array exceeding the 256 KiB state payload limit.