AWS Certified Developer – Associate (DVA-C02) — Question 471

A developer is creating an AWS Step Functions state machine to handle an order processing workflow. When the state machine receives an order, the state machine pauses until the order has been confirmed. A record that is added to an Amazon DynamoDB table by another service confirms each order.

The developer must complete the order processing workflow.

Which solution will meet this requirement?

Answer options

Correct answer: B

Explanation

Option B is correct because utilizing a DynamoDB stream to trigger an AWS Lambda function that executes a redrive command allows the state machine to resume cleanly once the confirmation record is added. Options A and D rely on inefficient polling mechanisms that waste resources and risk Lambda timeouts. Option C is incorrect because terminating and restarting the state machine loses the state history and context of the original execution.