Lambda Flashcards
What is Lambda?
a serverless compute service that lets you run code without managing servers
What does serverless mean?
it means that AWS manages the servers for you and you cannot access them.
What is a real-life example lambda that could be used for data processing?
Say you have a data file that is uploaded to S2 and when it uploads it triggers a lambda which then stores the data from the CSV ins a DynamoDB server
How could Lambda be used to send email notifications?
How can Lambda be used for backend business logic?
What are the 4 features of Lambda?
- Supports popular programming languages
- You author the code using your favorite development environment or via the console
- Lambda can execute your code in response to events
- Lambda functions have a 15-minutes timeout
What is the pricing model for Lambda?
- Compute time
- Request Count
- Always Free
Describe the Compute Time Pricing Model for Lambda?
- Pay only for compute time used
- There is no charge if your code is not running
Describe the Request Count Pricing Model for Lambda?
- A request is counted each time it starts execution
- Testing counts towards the console count as well
Describe the Always Free Tier for Lambda?
- The free usage tier includes 1 million free requests each month
What happens to the pricing after the free-Tier expires for lambda?
Even after the free-usage tier expires, you’ll have access to 1 million free lambda calls each month
Does Lambda Scale Automatically?
Yes, lambda will scale automatically
What is the main attraction to lambda for developers?
Allows developers to focus on core business logic for the apps they are developing instead of worrying about managing servers
What is a function in Lambda?
The application code that you author is called a function and can be written in multiple languages