Lambda Flashcards

1
Q

What is a Lambda Concurrent Execution Limit? And what is the limit?

A
  • It’s a limit on the number of concurrent executions across all functions in a given region per account.
  • The default limit is at 1.000
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What error will I see if I exceed the limit?

A
  • “TooManyRequestException”

- HTTP Status Code 429

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

Can the concurrent execution limit be increased?

A

Yes, but you will have to contact AWS Support.

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

In Lambda, what is Reserved concurrency?

A

It’s a set number of executions which are reserved for a certain function. It also acts as a limit for that function.

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

If you are using an unqualified ARN for Lambda, which version will be used? (i.e. no alias or version in the ARN)

A

$LATEST

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

By default, a Lambda function cannot access resources inside a private VPC. What do we need to set up to change this?

A
  • Provide VPC config information to the function
  • Private subnet ID
  • Security group ID (with required access)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does it work when a Lambda function sets up config to access resources within a private VPC?

A
  • Private subnet ID and Security group ID is given to the function
  • Lambda uses the VPC information to set up Elastic Network interfaces (ENIs) using an IP from the private subnet CIDR range
  • The security group needs to allow your function to access resources in VPC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Triggers?

A
  • API Gateway
  • AWS IoT
  • Alexa Skills Kit
  • Alexa Smart Home
  • Application Load Balancer
  • CloudFront
  • CloudWatch logs
  • CodeCommit
  • Cognito Sync trigger
  • DynamoDB
  • EventBridge (CloudWatch Events)
  • Kinesis
  • S3
  • SNS
  • SQS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What 7 languages is supported by Lambda?

A
  • Java
  • Python
  • Go
  • Node.js
  • C#
  • PowerShell
  • Ruby
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Can Lambda functions do things globally?

A

Yes.

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

What is the maximum timeout for a Lambda function?

A

15 minutes

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

What is the default timeout on a Lambda function?

A

3 seconds

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