Serverless Overview Flashcards
What AWS services are serverless?
- AWS Lambda & Step Functions
- DynamoDB
- AWS Cognito
- AWS API Gateway
- Amazon S3
- AWS SNS & SQS
- AWS Kinesis
- Aurora Serverless
Pricing on AWS Lambda?
- Pay per request and compute time
• $0.20 per 1 million requests thereafter ($0.0000002 per request)
- 400,000 GB-seconds of compute time per month if FREE • == 400,000 seconds if function is 1GB RAM
- == 3,200,000 seconds if function is 128 MB RAM
- After that $1.00 for 600,000 GB-seconds
• Free tier of 1,000,000 AWS Lambda requests and 400,000 GBs of compute time
Lambda Timeout
Default 3 seconds, max 300s (5minutes) (new limit 15 minutes) Exam expects 5 minutes
Lambda - Security - This must be attached to the Lambda function
IAM execution role
Lambda - Disk capacity?
512 MB
Lambda - Concurrency limits
1000
Lambda - Deployment - Max Lambda function deployment size
50MB
Lambda - Size of uncompressed deployment (code + dependencies)
150MB
Lambda - Can use __ directory to load other files at startup
/tmp
Lambda - Size of environment variables
4KB
DynamoDB - Is what kind of DB?
NoSQL database - not a relational database
DynamoDB is made of __?
tables
Each DynamoDB has a ___?
Primary key
Each DynamoDB item has ___?
Attributes (can be added over time – can be null)
max size of a DDB item?
400KB