AWS Lambda is a compute service that runs your code without managing servers. Lambda function runs your code whenever needed. You need to pay only when your code is running.
For an AWS interview question asking about AWS Lambda, a correct answer would be:
“AWS Lambda is a serverless computing service provided by Amazon Web Services (AWS). It allows developers to run code in response to events without provisioning or managing servers. With Lambda, you can upload your code and the service will automatically scale and execute it in response to various triggers such as HTTP requests, database events, file uploads, or custom events. This serverless architecture eliminates the need to manage infrastructure, making it easier to build scalable and cost-effective applications.”