AWS Certified Solutions Architect – Associate (SAA-C02) — Question 255
A solutions architect is designing the cloud architecture for a company that needs to host hundreds of machine learning models for its users. During startup, the models need to load up to 10 GB of data from Amazon S3 into memory, but they do not need disk access. Most of the models are used sporadically, but the users expect all of them to be highly available and accessible with low latency.
Which solution meets the requirements and is MOST cost-effective?
Answer options
- A. Deploy models as AWS Lambda functions behind an Amazon API Gateway for each model.
- B. Deploy models as Amazon Elastic Container Service (Amazon ECS) services behind an Application Load Balancer for each model.
- C. Deploy models as AWS Lambda functions behind a single Amazon API Gateway with path-based routing where one path corresponds to each model.
- D. Deploy models as Amazon Elastic Container Service (Amazon ECS) services behind a single Application Load Balancer with path-based routing where one path corresponds to each model.
Correct answer: D
Explanation
The correct answer is D because using Amazon ECS with path-based routing allows for efficient resource management and reduces costs while meeting the high availability and low latency requirements. Options A and C using AWS Lambda may not handle the memory requirement effectively due to cold start times and resource limitations. Option B, while viable, does not leverage the cost-saving benefits of a single Application Load Balancer with path-based routing.