Q31 — AWS SAA-C03 Ch.14
Question 31 of 100 | ← Chapter 14
Q1031. A solutions architect is designing an application that helps users fill out and submit registration forms. The solutions architect plans to use a two-tier architecture that includes a web application server tier and a worker tier.The application needs to process submitted forms quickly. The application needs to process each form exactly once. The solution must ensure that no data is lost.Which solution will meet these requirements?
- A. Use an Amazon Simple Queue Service (Amazon SQS) FIFO queue between the web application server tier and the worker tier to store and forward form data. ✓
- B. Use an Amazon API Gateway HTTP API between the web application server tier and the worker tier to store and forward form data.
- C. Use an Amazon Simple Queue Service (Amazon SQS) standard queue between the web application server tier and the worker tier to store and forward form data.
- D. Use an AWS Step Functions workflow. Create a synchronous workflow between the web application server tier and the worker tier that stores and forwards form data.
Correct Answer: A. Use an Amazon Simple Queue Service (Amazon SQS) FIFO queue between the web application server tier and the worker tier to store and forward form data.
Explanation
To meet the requirements of processing submitted forms quickly, ensuring each form is processed exactly once, and preventing data loss in a two-tier architecture, the best solution is:A. Use an Amazon Simple Queue Service (Amazon SQS) FIFO queue between the web application server tier and the worker tier to store and forward form data.Explanation:\1. Amazon SQS FIFO Queue: - A FIFO (First-In-First-Out) queue ensures that messages are processed in the exact order they are sent and guarantees exactly-once processing. This is essential for form submissions, where the order of processing might be important, and you want to ensure that no forms are missed or processed multiple times.\2. Durability and Reliability: - SQS provides a durable message storage solution, ensuring that no data is lost even if the worker tier is temporarily unable to process the messages. Messages can be retained in the FIFO queue until they are successfully processed.\3. Scalability: - Using SQS allows for easy scaling of the worker tier. You can add more workers to process messages from the queue concurrently, ensuring that form submissions are processed quickly without losing any data.Evaluation of Other Options:B. Use an Amazon API Gateway HTTP API: - API Gateway is typically designed for routing HTTP requests and does not provide guaranteed message delivery, exactly-once processing, or durability for asynchronous processing, making it unsuitable for this use case.C. Use an Amazon Simple Queue Service (Amazon SQS) standard queue: - While a standard queue allows for high throughput and is suitable for many use cases, it does not guarantee exactly-once delivery. Messages may be delivered more than once, which could lead to duplicate processing of form submissions.D. Use an AWS Step Functions workflow: - While Step Functions can manage workflows and ensure certain tasks are completed, using it as a synchronous workflow can introduce latency and complexity. It’s not specifically designed for handling message queuing like SQS, and managing state and retries in a synchronous manner can be less efficient than using a dedicated queuing service.Conclusion:Option A provides the most reliable, scalable, and efficient solution for processing registration forms in a two-tier architecture while ensuring that each form is processed exactly once without data loss.