A logistics company is designing an automated package sorting and delivery notification system. The system receives scan events from millions of IoT barcode scanners globally. These events must be processed immediately to update tracking history, and a notification must then be sent to the customer. The transaction volume spikes dramatically during holiday periods but drops to near zero overnight. The engineering team needs to design the architecture to be resilient, cost-efficient, and aligned with AWS Cloud design principles.
Which TWO architectural decisions best align with AWS design principles for this scenario?
- Decouple the barcode ingestion service from the customer notification service using Amazon Simple Queue Service (SQS).Cevap
- Use Amazon EC2 Auto Scaling to dynamically adjust the number of processing instances based on the volume of queue messages.Cevap
- CDesign the barcode ingestion and customer notification functions as a single monolithic application to minimize inter-service communication latency.
- DOver-provision a static cluster of Amazon EC2 instances to handle the maximum projected holiday peak load at all times.
- EHardcode IP addresses of the processing servers directly into the scanner clients to simplify routing and network configuration.
Cevap
Decouple the barcode ingestion service from the customer notification service using Amazon Simple Queue Service (SQS), and use Amazon EC2 Auto Scaling to dynamically adjust the number of processing instances based on the volume of queue messages.
The correct architectural decisions are to decouple the barcode ingestion from the notification service using Amazon Simple Queue Service (SQS) and to use Amazon EC2 Auto Scaling to dynamically size the processing layer. SQS introduces loose coupling by buffer-queuing events, preventing component failures from affecting other parts of the system. Auto Scaling implements elasticity by dynamically scaling processing capacity to match actual traffic demands, maintaining cost-efficiency during off-peak hours.
Adım Adım Çözüm
Anahtar Kavram
AWS Cloud design principles, specifically loose coupling and elasticity.
Tahmini Süre:2m 0s