AWS Lambda Flashcards
FaaS stands for
Function as a Service
FaaS is also known as
Serverless computing
Serverless computing is an option for deploying applications on __________
cloud
With serverless compute you install a piece of ___________ on cloud platform
Function
How does AWS executes a function
he cloud platform makes the function available on-demand and manages resource allocation for you.
Design constraints/ design issues with Lambda. When to not use AWS Lambda
- Functions will timeout after 15 minutes.
- The amount of RAM available ranges from 128MB to 3008MB with a 64MB increment between each option.
- The Lambda code should not exceed 250mb in size, and the zipped version should be no larger than 50mb
- For few applications, with huge data size, AWS EC2 may be cheaper
How does AWS charge you for Lambda
AWS charges you for the number of requests your Lambda functions recieve and the time it takes to execute those requests per 100ms.
ETL with Lambda
Extract, Transform, Load (ETL) processes - retrieving data, processing it, and storing the results in a database works well as a function that can be triggered remotely or set up on a schedule.
What are the components of serverless applications?
- Event sources
- Functions
- In some cases services
What are event sources in AWS lambda
An event source is an AWS service or developer-created application that produces events that trigger an AWS Lambda function to run.
Event sources can be _______ and _________ sources
push and pull
What are push event sources
Services publish/push events to Lambda by invoking the cloud function directly.
What are pull event sources ?
For resources that do not publish directly to Lambda, Lambda pulls/polls resources
________________ enables automatic invocation of the Lambda function when events occur.
Event source mapping
What is the function of event source mapping?
Event source mapping identifies the type of events to publish and the Lambda function to invoke when events occur
Push event sources are also referred to as ?
Regular AWS Services.
Push event sources includes
SE, SNS, SES
For push event sources, the event source mapping is maintained on ________
the invoker/S3/SNS
Pull event sources are also referred to as ?
Stream-based event services.
Pull event sources includes
Kinesis, DynamoDB
Event source mapping is maintained on __________side
Lambda’s side.
Can Lambda be used as an event source
Yes. For S3, Lambda,
What happens when a designated event occurs on Lambda’s end ?
When the designated event occurs, the Lambda function runs it own container.
How are resources allocated when a Lambda function launches it’s container?
The resources allocated to the container and the number of containers launched is based on the size of the data and computational requirements of the function, all handled by AWS.