Ultimate access to all questions.
Which AWS compute service should be used for an API designed to handle highly variable request volumes, requiring asynchronous processing within seconds, to minimize costs?
Explanation:
The correct answer is B (AWS Lambda function). AWS Lambda is ideal for this scenario because it can handle highly variable request volumes and only charges for the compute time consumed. It suits asynchronous processing and can scale down to zero when no requests are being made, ensuring cost efficiency. In contrast, options like AWS Glue jobs, EKS, and ECS with EC2 are either less cost-effective for sporadic usage or involve more complex management.