AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company is building a web application with a microservices architecture. One of the services needs to process orders submitted by users, but processing can take varying amounts of time. To ensure the system scales effectively and remains responsive, the company wants to decouple the order submission from order processing, allowing the processing service to handle orders asynchronously. Which service is the BEST choice to achieve this objective?
Amazon Simple Queue Service (SQS) is the best choice for decoupling order submission and order processing services. It allows messages (orders) to be stored in a queue, enabling the processing service to retrieve and process them asynchronously at its own pace. This allows the system to scale effectively by decoupling its components. Amazon Simple Notification Service (SNS) is a messaging service suitable for sending notifications to multiple subscribers but does not provide message queuing capabilities needed for processing at varying times. Amazon API Gateway is used to create, publish, and manage APIs, but it does not help with decoupling components for asynchronous processing. AWS Lambda is a serverless compute service that runs custom code in response to events but does not provide a mechanism for decoupling via message queuing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon SQS and how does it work?
Open an interactive chat with Bash
What are the advantages of using SQS for order processing?
Open an interactive chat with Bash
How does SQS compare with other AWS services like SNS and Lambda?