AWS Certified Solutions Architect – Associate (SAA-C03) — Question 927

A company is developing machine learning (ML) models on AWS. The company is developing the ML models as independent microservices. The microservices fetch approximately 1 GB of model data from Amazon S3 at startup and load the data into memory. Users access the ML models through an asynchronous API. Users can send a request or a batch of requests.

The company provides the ML models to hundreds of users. The usage patterns for the models are irregular. Some models are not used for days or weeks. Other models receive batches of thousands of requests at a time.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

Option D is correct because an Amazon SQS queue is the optimal way to handle asynchronous API requests and buffer sudden bursts of traffic. Since the ML microservices must download and load 1 GB of data from Amazon S3 at startup, AWS Lambda (Options A and C) would suffer from severe cold-start latencies and is not suitable for this startup profile. Amazon ECS combined with SQS-based auto scaling allows the system to scale down to zero during idle periods and scale up both tasks and container instances to handle large batches.