AWS Certified Solutions Architect Professional SAP-C02 Practice Question

An e-commerce company runs three AWS Lambda functions in sequence (ChargePayment ➝ ReserveInventory ➝ GenerateShipment) to process customer orders. Intermittent 5xx errors and timeouts in downstream services occasionally cause the whole workflow to fail.

The operations team needs a more reliable solution that meets these requirements:

  • Automatically retry transient errors with exponential backoff.
  • If a step ultimately fails, record the failure and invoke a CompensateOrder Lambda function, without losing the execution history.
  • Guarantee that each step runs exactly once, even across AWS service disruptions.
  • Minimize custom code and ongoing operational overhead.

Which approach should a solutions architect recommend?

  • Build an AWS Step Functions Standard state machine that invokes each Lambda task. Define Retry with MaxAttempts and BackoffRate for exponential backoff and add a Catch handler that transitions to a CompensateOrder state on failure.

  • Use an AWS Step Functions Express state machine to invoke the three Lambda functions and rely on EventBridge automatic retries for failed executions.

  • Configure AWS Lambda Destinations to send failed invocations to the CompensateOrder function and use Amazon EventBridge rules to trigger additional retries.

  • Add Amazon SQS queues in front of each Lambda function, implement retry logic in the code, and configure dead-letter queues for unprocessed messages.

AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot