A digital media platform is migrating its video transcoding system to AWS. The system currently runs on a single high-performance server where video uploads, transcoding jobs, and metadata storage are handled by the same software process. High demand for video uploads frequently causes the entire server to run out of memory and crash, failing all ongoing transcoding jobs. The company wants to redesign this architecture on AWS using cloud design principles. Which of the following architectural changes should the company implement to align with AWS Cloud design principles? (Select TWO.)
- Decouple the upload front-end from the transcoding backend by using Amazon SQS queues to pass transcoding jobs asynchronously.Cevap
- Use an Amazon EC2 Auto Scaling group to dynamically adjust the number of transcoding workers based on the length of the queue.Cevap
- CRun the upload, transcoding, and database components on a single larger Amazon EC2 instance to minimize latency between processes.
- DProvision a fixed fleet of maximum-capacity Amazon EC2 instances to run 24/7 to ensure the transcoding backend never has to scale.
- ERely on AWS to perform application-level debugging and code maintenance for the web server code running on Amazon EC2.
Cevap
The correct architectural changes are to decouple the upload front-end from the transcoding backend using Amazon SQS queues, and to use an Amazon EC2 Auto Scaling group to dynamically adjust transcoding workers based on the queue length.
Decoupling the upload front-end from the transcoding backend using Amazon SQS queues ensures that the two systems operate independently. If the transcoding backend experiences a spike in load or temporary failure, the uploads can still be accepted and queued. Using an Amazon EC2 Auto Scaling group to adjust worker instances based on queue length allows the system to scale out to handle high load and scale in to save costs when there are no jobs, directly aligning with the elasticity principle.
Adım Adım Çözüm
Anahtar Kavram
AWS Cloud Design Principles (Loose Coupling and Elasticity)