AWS Lambda Flashcards

1
Q

What is the purpose of Lambda?

A

Runs functions on demand without needing a server

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

Why Lambda is important?

A

Because it allows you to only concern about the code you write and AWS will take care of the rest

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

What kinds of language Lambda supports?

A
Python
Java
Go
C#
Ruby
NodeJS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Quote 2 main benefits of Adhoc Tasks handled by Lambda

A

Maintenance jobs

Database Backups

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

How does lambda costs work?

A

Pay per invocation, duration, memory

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

How to get logs from lambda?

A

Lambda has built in metrics with AWS Cloudwatch

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

How to setup a lambda function?

A

Go to AWS console
Upload some code
Receive an ARN (Amazon Resource Name)
Invoke the function by using the ARN

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

What is ARN (Amazon Resource Name)

A

Its an unique indentifier for a particular lambda app

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

When a user triggers a lambda function, what happens under the hood?

A

Under the hood there’s a load balancer provided by aws that handles the traffic through different EC2 instances

The EC2 Instances are stored in the Lambda Service Reserve Pool

When an invocation occurs it has a couple of machines to back your Load Balancer

after that the EC2 used comes back to the Lambda Service Reserve Pool which is shared among other costumers

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

What is a Lambda Service Reserve Pool?

A

Is a fleet of EC2 resources that AWS leaves available for your Load balancers when a user tries to invoke your lambda function

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

What’s API Gateway + Lambda used for ?

A

REST APIs

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

What’s S3 + Lambda used for ?

A

Data Processing

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

What’s SQS + Lambda used for ?

A

Message Buffering & Processing

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

What’s SNS + Lambda used for ?

A

Message Processing

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

What’s Step Functions + Lambda used for ?

A

Workflow orchestration

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

What’s DynamoDB + Lambda used for ?

A

Change Detection

17
Q

What is the Provisioned Concurrency?

A

It allows you to make your application more highly available and less likely to receive pikes in first invocations (Cold Start)