Q48 — AWS SAA-C03 Ch.1
Question 48 of 65 | ← Chapter 1
Q48. A company has a service that produces event data The company wants to use AWS to process the event data as it iS received. The data iS written in a specific order that must be maintained throughout processing. The company wants to implement a solution that minimizes operational overhead.How should a solutions architect accomplish this?
- A. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue to hold messages Set up an AWS Lambda function to process messages from the queue. ✓
- B. Create an Amazon Simple Notification Service (Amazon SNS) topic to deliver notifications containing payloads to process.Configure an AWS Lambda function as a subscriber.
- C. Create an Amazon Simple Queue Service (Amazon SQS) standard queue to hold messages. Set up an AWS Lambda function to process messages from the queue independently.
- D. Create an Amazon Simple Notification Service (Amazon SNS) topic to deliver notifications containing payloads to process Configure an Amazon Simple Queue Service (Amazon SQS) queue as a subscriber.
Correct Answer: A. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue to hold messages Set up an AWS Lambda function to process messages from the queue.
Explanation
To process event data in a specific order while minimizing operational overhead, a solutions architect should choose option A: Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue to hold messages and set up an AWS Lambda function to process messages from the queue. Here's how this solution works: 1. Amazon SQS FIFO queue: Use a FIFO (First-In-First-Out) queue to maintain the order of the event data. FIFO queues ensure that messages are processed in the order they are received. 2. AWS Lambda function: Set up an AWS Lambda function, which is a serverless compute service, to process the messages from the SQS queue. The Lambda function can be triggered automatically whenever new messages are available in the queue. By using this approach, the company can achieve the following benefits: - Order preservation: The FIFO queue ensures that the event data is processed in the exact order it was received, maintaining the required order of processing. - Scalability: AWS Lambda scales automatically to handle the incoming messages based on the workload. It eliminates the need to manage and provision server resources, reducing operational overhead. - Asynchronous processing: The SQS FIFO queue decouples the message production from message processing. This allows the company to process the event data asynchronously without directly impacting the data producers. Option B is not suitable because Amazon SNS topics are not designed to maintain the order of messages. While it can deliver notifications, it does not guarantee message ordering. Option C is not the best choice as the SQS standard queue does not preserve the order of messages. It prioritizes scalability and high throughput over order preservation.