Serverless - Lambda Flashcards
What is AWS Lambda?
AWS Lambda is a serverless compute service that runs your code in response to events and automatically manages the compute resources.
What is the maximum execution time for a Lambda function?
15 minutes per invocation.
How does Lambda scale?
Lambda automatically scales by running code in parallel in response to incoming requests or events.
Why is Lambda considered cost-effective?
You only pay for the compute time and requests, and it offers a generous free tier.
How can you limit the number of concurrent executions for a Lambda function?
By setting a reserved concurrency limit at the function level.
What happens if a Lambda function exceeds its reserved concurrency limit?
Invocations beyond the limit are throttled.
What is the default account-wide concurrency limit for Lambda functions?
1,000 concurrent executions per region.
Can the account-wide concurrency limit be increased?
Yes, by submitting a support request to AWS.
What is provisioned concurrency in Lambda?
It pre-allocates instances of a Lambda function to avoid cold starts and reduce latency.
What is Lambda SnapStart?
It improves your Lambda functions performance up to 10x at no extra cost for Java 11 and above by invoking it from a pre-initialised state.
What are the two types of Edge Functions provided by AWS?
CloudFront Functions and Lambda@Edge.
What are CloudFront Functions used for?
High-scale, latency-sensitive customizations for viewer requests and viewer responses.
What events can Lambda@Edge modify?
Viewer request
Viewer response
Origin request
Origin response
Where are Lambda functions launched by default?
In an AWS-managed VPC, outside of the user’s VPC.
Can a default Lambda function access private resources in your VPC?
No, it cannot access private resources like RDS, ElastiCache, or internal load balancers.