AWS Certified Solutions Architect Professional SAP-C02 Practice Question
You are modernizing a claims-processing workflow that currently runs as a monolithic cron job on an on-premises server. For every new claim, the job performs three sequential actions:
- Validate the claim data.
- Call an external fraud-scoring API. The API responds asynchronously by sending an HTTPS callback within up to 3 hours. A duplicate call to the API generates an additional cost.
- Persist the fraud score in Amazon DynamoDB and notify the claimant.
The modernization design must meet these requirements:
- Replace the cron job with a fully managed, serverless orchestration service that minimizes custom code.
- Guarantee exactly-once execution of each fraud-scoring request.
- Pause the workflow until the external system returns the fraud score, without polling.
- Handle thousands of concurrent claims with minimal operational overhead and provide built-in execution history for auditing.
Which solution meets these requirements MOST cost-effectively?
Create an AWS Step Functions Standard workflow. Use a Task state that invokes a Lambda function to send the request to the external API and passes a task token. Configure the Task state with the Wait for Callback (
.waitForTaskToken
) pattern so the workflow pauses until the external system returns the token through an API Gateway endpoint.Create an AWS Step Functions Express workflow that invokes the external API synchronously and then uses a Wait state of 3 hours before persisting the result.
Create a Standard Step Functions workflow that uses the Run a Job (
.sync
) integration pattern to invoke the external API with a 3-hour timeout.Use Amazon EventBridge Scheduler to trigger an AWS Lambda function for each claim; store workflow state and callback information in DynamoDB, and resume processing when the Lambda function is reinvoked by the external system.