Section 19: Serverless Flashcards
What is DynamoDB?
DynamoDB is a fully managed, serverless, highly available, distributed NoSQL DB that scales to massive workloads and can be replicated across multiple AZs
Are DynamoDB items good for storing large objects?
No, DynamoDB items are not good for storing large objects as their maximum size is only 400kb
What is the maximum Lambda execution time?
15 minutes
What is Lambda@Edge?
Lambda@Edge is when you deploy Lambda alongside a CloudFront distribution network (edge locations)
What are the three (3) main benefits of Lambda@Edge?
1) More responsive apps
2) Global reach
3) User prioritization
What are the two read/write DynamoDB capacity modes?
1) Provisioned mode (default)
2) On-demand mode
Explain DynamoDB on-demand read/write mode
Automatically scales with workloads, requiring no capacity planning. It is great for unpredictable workloads but is 2/3x more expensive than provisioned.
Explain DynamoDB provisioned read/write mode
You specify the number of read/writes per second and plan capacity before hand. Cheaper.
What is DynamoDB Accelerator (DAX)?
DAX is a fully managed, highly available seamless in-memory cache for Dynamo DB.
What is a common architecture with DAX and DynamoDB?
DAX sits in front of DynamoDB
How does DAX enhance DynamoDB?
It caches the most used data from DynamoDB solving read congestion, and offloads heavy reads to DynamoDB when it needs to.
What is a DynamoDB global table? What is the prerequisite to enabling global tables?
DynamoDb Global Tables are DynamoDb tables that are made accessible with low latency in multiple regions. Apps can read and write to the table in any region it exists.
What is Amazon API Gateway?
AWS API Gateway is a serverless service that enables stateless communication between a client and server.
What are the three API Gateway endpoint types?
1) Edge-optimized (default) for global clients
2) Regional (for clients within same region)
3) Private (for VPCs)
What are the two most key API Gateway integrations?
Lambda invocations via API Gateway and HTTP endpoints for backend use.