Ultimate access to all questions.
A rapidly growing food delivery service faces scaling issues during peak hours with its EC2-based order processing system. The system comprises two Auto Scaling groups of EC2 instances: one for order collection and another for order fulfillment. The collection is efficient, but fulfillment is slower, and data integrity must be maintained during scaling. The architect's task is to ensure scalable order processing during peak times while optimizing AWS resource utilization. What is the appropriate solution?
Explanation:
The correct answer is D. Utilizing Amazon SQS queues for both order collection and fulfillment ensures that the processes are decoupled and can scale independently. By configuring EC2 instances to poll their respective queues and creating a metric based on a backlog per instance calculation, you can dynamically scale the Auto Scaling groups based on actual workload. This approach is more efficient and ensures minimal wastage of AWS resources compared to simply monitoring CPU usage or manually adjusting group sizes. Option C is similar but does not include the backlog per instance calculation, which is crucial for precise scaling.