Serverless Flashcards
Are Lambda Limits Global?
No, they are per region
What is the Lambda Memory Allocation?
Between 128MB and 10GB, made in increments of 1MB
What is the max runtime for a Lambda?
900 seconds (15 minutes)
How much space can the Lambda env variables take up?
4KB
How many concurrent execution can be made?
1000 but can be increased
When deploying the Lambda, how big can the zip file be?
50MB
How big can the deployment code and dependencies be uncompressed?
250MB
Why would you use Lambda Edge?
When you use lambda with Cloudfront and need to modify the Cloudfront response before returning to the client
What are the 2 modes available for Read/Write Capacity in DynamoDB?
- Provisioned Mode (Default)
- On-Demand
What are 4 features of Provisioned Mode for DynamoDB?
- 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
What are 4 features of On-Demand mode for DynamoDB?
- 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
What is DAX?
DynamoDB Accelerator
What does DAX do?
It helps solve read congestion by caching data
What are DynamoDB Streams?
They are an ordered stream of changes in a table
How long can data stay in a DynamoDB Stream?
Up to 24 hours
What are some use cases for using DynamoDB streams?
- Analytics
- Real time change
What is a pre-requisite for using a Global DynamoDB table?
You must enable DynamoDB Streams
What 2 indexes are available in DynamoDB?
- Global Secondary Indexes
- Local Secondary Indexes
What benefit do you get when using indexes?
They allow you to query on attributes other than the primary key
What are DynamoDB Transactions?
The ability to write a transaction to either multiple tables or none
What are the 3 Security Options for API Gateway?
- IAM Permissions
- Lambda Authorizer
- Cognito User Pools
What does Cognito help with?
It helps with authentication, not authorization