Lambda Flashcards

1
Q

How much RAM can lambda allocate

A

128mb to 10,240mb (10GB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many CPU to RAM

A

2 vCPUs - 1,769mb of RAM
6 vCPU - 10,240mb of RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the timeout for Lambda

A

15 mins

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the concurrent execution limit for lambda

A

1000… can be increased if asked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Container Image Size

A

10GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What will happen if you go over the concurrency limit in Lambda

A

The remaining invocations will throttle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you ensure that you dont go over the concurrency limit

A

Set a reserved concurrency at the function level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using CodeDeploy, what are the two options for shifting traffic

A

Linear: Grow traffic every N minutes until 100%
Linear10percentEvery3Minutes
Linear10percentEvery10Minutes

Canary: Try X percent then 100%
Canary10percent5Minutes
Canary10percent30Minutes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is X-Ray used for with Lambda

A

It is used to trace Lambda. Enable it in the Lambda configuration and it will run the X-Ray daemon for you

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

If you deploy lambda in a VPC but want to talk to an application on the internet, how would you connect this

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between Synchronous vs Asynchronous invocations in Lambda

A

Synchronous: Invoke Lambda directly & Get Response

Asynchronous: An event from S3 invokes lambda

How well did you know this?
1
Not at all
2
3
4
5
Perfectly