Which AWS service is primarily used to run code in response to events without managing servers?
Answer
AWS Lambda
Explanation
AWS Lambda is a serverless compute service that runs code in response to events. You typically deploy functions and AWS handles the underlying server provisioning and scaling. EC2 Auto Scaling manages instances, RDS manages databases, and SQS is a messaging service. For event-driven compute, Lambda is the correct choice.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You want to distribute your application to users with low latency and better performance globally. Which AWS service is primarily responsible for this?
View question →
Which tool is used to provision infrastructure on AWS using templates and declarative configuration?
View question →
Which service is best for securely managing secrets, such as database credentials, without hardcoding them in applications?
View question →
Which AWS service helps you automatically scale Amazon EC2 instances based on demand?
View question →
Which design pattern is commonly recommended for building highly available web applications on AWS?
View question →
What is Amazon VPC in AWS?
View question →