AWS Certified Solutions Architect – Associate (SAA-C02) — Question 250

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, as it is designed for event-driven, on-demand execution and can handle variable request loads at a low cost. AWS Glue jobs are not ideal for low-latency processing, while containerized services in Amazon EKS or ECS typically incur higher costs due to the need for infrastructure management, making them less cost-effective for this use case.