AWS Certified Developer – Associate (DVA-C02) — Question 445
A developer is building an ecommerce application that uses multiple AWS Lambda functions. Each function performs a specific step in a customer order workflow, such as order processing and inventory management.
The developer must ensure that the Lambda functions run in a specific order.
Which solution will meet this requirement with the LEAST operational overhead?
Answer options
- A. Configure an Amazon Simple Queue Service (Amazon SQS) queue to contain messages about each step a function must perform. Configure the Lambda functions to run sequentially based on the order of messages in the SQS queue.
- B. Configure an Amazon Simple Notification Service (Amazon SNS) topic to contain notifications about each step a function must perform. Subscribe the Lambda functions to the SNS topic. Use subscription filters based on the step each function must perform.
- C. Configure an AWS Step Functions state machine to invoke the Lambda functions in a specific order.
- D. Configure Amazon EventBridge Scheduler schedules to invoke the Lambda functions in a specific order.
Correct answer: C
Explanation
AWS Step Functions is a fully managed serverless orchestration service designed to coordinate multiple AWS Lambda functions into structured workflows with minimal operational overhead. It natively handles state, branching, retries, and sequential execution without requiring custom coordination code. Other options like SQS, SNS, or EventBridge Scheduler are not built for workflow state management and would require complex, custom-coded logic to ensure sequential execution.