What is AWS Lambda primarily used for?
a) To run code without provisioning or managing servers
b) To create and manage EC2 instances
c) To store large datasets
d) To monitor application performance
Answer:
a) To run code without provisioning or managing servers
Explanation:
AWS Lambda is a serverless compute service that allows users to run code in response to events without provisioning or managing servers. Lambda automatically scales and executes the code based on the incoming requests or events, and users only pay for the compute time consumed.
It supports a variety of event sources, such as S3 uploads, DynamoDB updates, API Gateway, and more, enabling event-driven architecture.
Lambda is ideal for building serverless applications, automating workflows, and running backend services without the need for server infrastructure management.