A company is developing a new mobile application backend that performs simple database lookups, with each request completing in under a second. The application's usage is highly sporadic, with long periods of inactivity followed by sudden bursts of user activity. To minimize costs and administrative effort, the company wants a compute solution that requires zero server management, charges only for the exact duration of code execution, and eliminates the responsibility of operating system patching.
Which AWS compute service should the company choose to meet these requirements?
- AAmazon Elastic Compute Cloud (Amazon EC2) instances
- BAmazon Elastic Container Service (Amazon ECS) running on Amazon EC2 instances
- AWS Lambda functionsAnswer
- DAmazon Lightsail virtual private servers
Answer
AWS Lambda functions
AWS Lambda is a serverless, event-driven compute service that runs code in response to events and automatically manages the underlying compute infrastructure. Since it charges only for the duration of active execution and incurs zero cost when idle, it perfectly aligns with the sporadic workload scenario. Because AWS manages the underlying servers, operating system patching is fully handled by AWS, eliminating that operational burden for the customer.
Step-by-Step Solution
Key Concept
AWS serverless compute advantages and shared responsibility boundaries
Estimated Time:1m 30s