Deployment and Orchestration of ML and AI Workflows

A Step Functions workflow creates a network stack, then must pass its generated subnet IDs to a compute stack. CreateStack returns before provisioning finishes, and either stack can fail. How should the workflow coordinate provisioning?

Show the answer

Correct answerB. Poll DescribeStacks, branch on status, and pass completed network outputs as compute stack parameters.

AWhy not this: Parallel creation does not establish the required output dependency or explicitly handle network-stack failure.

BWhy this is right: Status checks establish readiness, failure branches stop invalid provisioning, and outputs supply the generated subnet IDs.

CWhy not this: DependsOn orders resources within a template; it cannot wait on a separately managed stack.

DWhy not this: A fixed delay cannot establish successful completion, and requested parameters do not contain generated subnet IDs.

Polling DescribeStacks lets the workflow wait for successful completion, handle failure states, and retrieve generated outputs before provisioning compute. DependsOn cannot coordinate completion of separately managed stacks.