SAA-C03 · Question #611
SAA-C03 Question #611: Real Exam Question with Answer & Explanation
The correct answer is D: Provision two Amazon Simple Queue Service (Amazon SQS) queues. Use one SQS queue for. To ensure both order collection and fulfillment processes can scale adequately and prevent data loss during peak traffic hours, a solutions architect should provision an Amazon SQS queue for incoming orders between the collection and fulfillment stages.
Question
A company operates a food delivery service. Because of recent growth, the company's order processing system is experiencing scaling problems during peak traffic hours. The current architecture includes Amazon EC2 instances in an Auto Scaling group that collect orders from an application. A second group of EC2 instances in an Auto Scaling group fulfills the orders. The order collection process occurs quickly, but the order fulfillment process can take longer. Data must not be lost because of a scaling event. A solutions architect must ensure that the order collection process and the order fulfillment process can both scale adequately during peak traffic hours. Which solution will meet these requirements?
Options
- AUse Amazon CloudWatch to monitor the CPUUtilization metric for each instance in both Auto
- BUse Amazon CloudWatch to monitor the CPUUtilization metric for each instance in both Auto
- CProvision two Amazon Simple Queue Service (Amazon SQS) queues. Use one SQS queue for
- DProvision two Amazon Simple Queue Service (Amazon SQS) queues. Use one SQS queue for
Explanation
To ensure both order collection and fulfillment processes can scale adequately and prevent data loss during peak traffic hours, a solutions architect should provision an Amazon SQS queue for incoming orders between the collection and fulfillment stages.
Common mistakes.
- A. Relying solely on CPU utilization for scaling Auto Scaling groups might not prevent data loss if the slower fulfillment process cannot keep up with the incoming order backlog.
- B. While an SQS queue is part of the solution, the choice suggests a CPU metric for collection and only one queue, which might not be sufficient to fully decouple and manage the different processing speeds effectively.
- C. Provisioning separate SQS queues for each EC2 instance in both Auto Scaling groups is an anti-pattern for a shared work queue and would introduce unnecessary complexity without solving the primary decoupling issue between the two stages.
Concept tested. Decoupling microservices with message queues, handling variable processing speeds, SQS for reliable messaging
Reference. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-what-is-sqs.html
Community Discussion
No community discussion yet for this question.