
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
A
An AWS Glue job
B
An AWS Lambda function
C
A containerized service hosted in Amazon Elastic Kubernetes Service (Amazon EKS)
D
A containerized service hosted in Amazon ECS with Amazon EC2
Explanation:
Correct Answer: B. An AWS Lambda function
Why AWS Lambda is the best choice:
Cost Optimization for Variable Workloads:
Asynchronous Processing Capability:
Fast Execution Time:
Why other options are not optimal:
A. AWS Glue job:
C. Containerized service in Amazon EKS:
D. Containerized service in Amazon ECS with Amazon EC2:
Key AWS Concepts Applied:
This solution provides the lowest cost because it eliminates idle compute costs while meeting the requirements for asynchronous processing within seconds.