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

A solutions architect is designing a new API using Amazon API Gateway that will receive requests from users. The volume of requests is highly variable; several hours can pass without receiving a single request. The data processing will take place asynchronously, but should be completed within a few seconds after a request is made.

Which compute service should the solutions architect have the API invoke to deliver the requirements at the lowest cost?

Answer options

Correct answer: B

Explanation

The correct answer is B, an AWS Lambda function, because it is designed for handling variable workloads and can execute code in response to API requests without requiring provisioning of servers, thus optimizing costs. The other options, such as AWS Glue jobs, containerized services in Amazon EKS, and Amazon ECS with EC2, typically involve higher costs and are not as efficient for sporadic requests.