Lambda Flashcards
How much RAM can lambda allocate
128mb to 10,240mb (10GB)
How many CPU to RAM
2 vCPUs - 1,769mb of RAM
6 vCPU - 10,240mb of RAM
What is the timeout for Lambda
15 mins
What is the concurrent execution limit for lambda
1000… can be increased if asked
What is the Container Image Size
10GB
What will happen if you go over the concurrency limit in Lambda
The remaining invocations will throttle
How can you ensure that you dont go over the concurrency limit
Set a reserved concurrency at the function level
Using CodeDeploy, what are the two options for shifting traffic
Linear: Grow traffic every N minutes until 100%
Linear10percentEvery3Minutes
Linear10percentEvery10Minutes
Canary: Try X percent then 100%
Canary10percent5Minutes
Canary10percent30Minutes
What is X-Ray used for with Lambda
It is used to trace Lambda. Enable it in the Lambda configuration and it will run the X-Ray daemon for you
If you deploy lambda in a VPC but want to talk to an application on the internet, how would you connect this
Create a NAT Gateway in a public subnet
Attach the NAT Gateway to an Internet Gateway and it will use that to connect to the application
Note: you can assign a fixed elastic IP to the NATGW so that you can only allow traffic from it
If it is an AWS application, then you can create an endpoint in the VPC to talk to the application without the internet
What is the difference between Synchronous vs Asynchronous invocations in Lambda
Synchronous: Invoke Lambda directly & Get Response
Asynchronous: An event from S3 invokes lambda