Serverless Flashcards

1
Q

Are Lambda Limits Global?

A

No, they are per region

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

What is the Lambda Memory Allocation?

A

Between 128MB and 10GB, made in increments of 1MB

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

What is the max runtime for a Lambda?

A

900 seconds (15 minutes)

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

How much space can the Lambda env variables take up?

A

4KB

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

How many concurrent execution can be made?

A

1000 but can be increased

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

When deploying the Lambda, how big can the zip file be?

A

50MB

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

How big can the deployment code and dependencies be uncompressed?

A

250MB

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

Why would you use Lambda Edge?

A

When you use lambda with Cloudfront and need to modify the Cloudfront response before returning to the client

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

What are the 2 modes available for Read/Write Capacity in DynamoDB?

A
  • Provisioned Mode (Default)

- On-Demand

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

What are 4 features of Provisioned Mode for DynamoDB?

A
  • You specify the # of reads/writes per second
  • You need to plan capacity in advance
  • You pay for provisioned RCU and WCU
  • You can add autoscaling for RCU and WCU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are 4 features of On-Demand mode for DynamoDB?

A
  • Reads/Writes automatically scale with your workload
  • No Capacity Planning needed
  • Its more expensive as you pay for what you use
  • Great for unpredictable workloads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is DAX?

A

DynamoDB Accelerator

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

What does DAX do?

A

It helps solve read congestion by caching data

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

What are DynamoDB Streams?

A

They are an ordered stream of changes in a table

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

How long can data stay in a DynamoDB Stream?

A

Up to 24 hours

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

What are some use cases for using DynamoDB streams?

A
  • Analytics

- Real time change

17
Q

What is a pre-requisite for using a Global DynamoDB table?

A

You must enable DynamoDB Streams

18
Q

What 2 indexes are available in DynamoDB?

A
  • Global Secondary Indexes

- Local Secondary Indexes

19
Q

What benefit do you get when using indexes?

A

They allow you to query on attributes other than the primary key

20
Q

What are DynamoDB Transactions?

A

The ability to write a transaction to either multiple tables or none

21
Q

What are the 3 Security Options for API Gateway?

A
  • IAM Permissions
  • Lambda Authorizer
  • Cognito User Pools
22
Q

What does Cognito help with?

A

It helps with authentication, not authorization