Data Ingestion and Transformation
An AWS Step Functions workflow receives a validation result containing a Boolean field named valid. How should the workflow route valid records to transformation and invalid records to quarantine without additional compute?
Show the answer
Correct answerB. Use a Choice state with a rule on the valid field.
AWhy not this: A Pass state can pass or transform data but cannot conditionally select the next state.
BWhy this is right: A Choice state evaluates the Boolean field and routes execution to the appropriate destination.
CWhy not this: A Map state repeats processing over a collection rather than selecting a destination from a Boolean result.
DWhy not this: A Parallel state executes branches concurrently; it does not select a branch by evaluating the valid field.
A Choice state evaluates data and routes execution to the matching next state without additional compute. A Parallel state runs its branches concurrently rather than selecting a destination based on a validation result.