Chapter 12 Serverless Compute Flashcards
Invocation Types in Lambda
- RequestResponse - Synchronous execution
- Event - Asynchronous execution
- DryRun - test caller invokes, but not execute function
What are the two requisite permission types for Lambda?
- Execution permissions (adopted by Lambda)
2. Invocation permissions (adopted by user of Lambda)
What are parameters given to Lambda fuction?
- event (everything you need to execute Lambda)
2. context (data about Lambda itself)
What are two configuration options for Lambda?
- default network configuration
2. Amazon VPC (talk to privately deployed resources)
What does X-ray do?
Collects data about requests your application serves
How does x-ray work?
You use x-ray SDK in application, which sends data to x-ray daemon, which send to AWS X-ray
default lambda timeout
3 seconds
max lambda timeout
15 minutes
max concurrent lambda functions
1,000
What is a dead letter queue in context of Lambda?
It is queue of failed lambda invocations. Can be configured w/ SNS topic or SQS. Can also be set as a metric for Cloudwatch.
What is best way to avoid using hardcoded sensitive data for lambda functions?
Use environmental variables
Max memory allocation for Lambda?
3GB