Chapter 12 Serverless Compute Flashcards

1
Q

Invocation Types in Lambda

A
  1. RequestResponse - Synchronous execution
  2. Event - Asynchronous execution
  3. DryRun - test caller invokes, but not execute function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two requisite permission types for Lambda?

A
  1. Execution permissions (adopted by Lambda)

2. Invocation permissions (adopted by user of Lambda)

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

What are parameters given to Lambda fuction?

A
  1. event (everything you need to execute Lambda)

2. context (data about Lambda itself)

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

What are two configuration options for Lambda?

A
  1. default network configuration

2. Amazon VPC (talk to privately deployed resources)

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

What does X-ray do?

A

Collects data about requests your application serves

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

How does x-ray work?

A

You use x-ray SDK in application, which sends data to x-ray daemon, which send to AWS X-ray

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

default lambda timeout

A

3 seconds

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

max lambda timeout

A

15 minutes

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

max concurrent lambda functions

A

1,000

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

What is a dead letter queue in context of Lambda?

A

It is queue of failed lambda invocations. Can be configured w/ SNS topic or SQS. Can also be set as a metric for Cloudwatch.

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

What is best way to avoid using hardcoded sensitive data for lambda functions?

A

Use environmental variables

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

Max memory allocation for Lambda?

A

3GB

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