SAA-C03 Question 161
Single answerA company is developing a serverless application that processes user-submitted images. The workflow involves three sequential steps: resizing the image, applying filters, and saving the processed image to an Amazon S3 bucket. Each step is implemented as an AWS Lambda function. The company wants to ensure that the workflow is resilient, handles failures gracefully, and automatically retries failed steps. Which service should be used to orchestrate this workflow?
- A
AWS Step Functions
- B
Amazon MQ
- C
Amazon Simple Workflow Service (SWF)
- D
Amazon EventBridge
Show answer and explanation
Correct answer: A
Explanation
AWS Step Functions is the ideal service for orchestrating a serverless workflow involving multiple steps, such as image processing in this scenario. It allows developers to define state machines that represent the workflow, manage task dependencies, and implement error handling and retries. This makes it a better option than alternatives like Amazon MQ, SWF, or EventBridge for this use case.
- A. Correct.
AWS Step Functions is the correct choice because it is designed for workflow orchestration and supports features like automatic retries, error handling, and sequential or parallel execution of tasks.
- B. Incorrect.
Amazon MQ is a managed message broker service for inter-application communication, but it does not handle orchestration of workflows or task retries.
- C. Incorrect.
Amazon Simple Workflow Service (SWF) is used for workflow orchestration, but it is more complex to implement and less suited for serverless applications compared to AWS Step Functions.
- D. Incorrect.
Amazon EventBridge is used for event-driven architectures to route events between services, but it does not provide workflow orchestration or automatic retry mechanisms.