SAA-C03 Question 160
Single answerA company has an e-commerce platform where customers place orders. Once an order is placed, the system needs to perform several actions in sequence: validate the payment, update the inventory, notify the shipping department, and send a confirmation email to the customer. If any step fails, the system should log the failure and stop further processing. Which AWS service is most suitable for orchestrating this workflow?
- A
Amazon Simple Notification Service (SNS)
- B
AWS Step Functions
- C
Amazon S3 Event Notifications
- D
Amazon Simple Queue Service (SQS)
Show answer and explanation
Correct answer: B
Explanation
AWS Step Functions is the most suitable service for orchestrating the described workflow, as it allows for sequential execution of tasks with built-in error handling and logging. It is specifically designed to manage workflows with complex dependencies, which is essential for the e-commerce platform's requirements. Other services like Amazon SNS, SQS, or S3 Event Notifications lack the ability to orchestrate workflows or handle sequential task execution.
- A. Incorrect.
Amazon SNS is a notification service primarily used for fan-out messaging to subscribers. It does not provide workflow orchestration capabilities or handle sequential task execution.
- B. Correct.
AWS Step Functions is a fully managed workflow orchestration service that enables you to define and execute workflows with multiple steps. It supports sequential and conditional execution, error handling, and logging, making it the ideal choice for the described scenario.
- C. Incorrect.
Amazon S3 Event Notifications are used to trigger events in response to changes in an S3 bucket, such as object creation or deletion. This service does not support workflow orchestration or the sequential execution of tasks.
- D. Incorrect.
Amazon SQS is a fully managed message queuing service that enables decoupling of applications. However, it does not provide the ability to orchestrate workflows or manage task dependencies.