Serverless Flashcards

1
Q

What are the direct (synchronous) triggers for Lambda?

A

ALBs, Cognito, Lex, Alexa, API Gateway, CloudFront, Kinesis Data Firehose, Step Functions, and S3 Batch

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

What are the indirect (asyncrhonous) triggers for Lambda?

A

S3, SNS, SES, CloudFormation, CloudWatch Logs and Events, CodeCommit, Config, IoT and IoT Events, CodePipeline

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

You have a lambda that needs to write a record to DynamoDB. The trigger executes the lambda, but data doesn’t show up in your table. What’s up?

A

The lambda execution role does not have permissions to access DynamoDB

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

What framework is a lot like CloudFormation but for lambdas

A

SAM, the Serverless Application Model

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

What is serverless?

A

It allows you not to think about allocating servers, which are managed by AWS.

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

Which services could you use for hyperthreading?

A

EC2, ECS, and Lambda

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

How much storage space do you get in a Lambda function?

A

500MB by default in /tmp

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

How long can a Lambda execute?

A

From 1-15 minutes

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

What is the maximum amount of memory you can allocate to a Lambda?

A

3GB, scaling in 64MB increments from 128MB to 3GB

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

How long can a Lambda execute?

A

From 1-15 minutes

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

How can you exceed the 500 lambda storage limit?

A

You can connect to Amazon EFS via an EFS Access Point

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

How can you make sure your lambdas are executing for your global users at their lowest network latency?

A

Configure your lambda to respond to Amazon CloudFront requests, (i.e. Lambda@Edge)

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

How can you make sure your lambdas are executing for your global users at their lowest network latency?

A

Configure your lambda to respond to Amazon CloudFront requests, (i.e. Lambda@Edge)

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

What services can Lambda read from

A

Amazon Kinesis, DynamoDB, and SQS

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