Domain 3: Development with AWS Services Flashcards
What is the maximum processing time of an AWS Lambda function?
Maximum processing time of 15 mins (cannot be increased)
What is the maximum lambda concurrent executions?
1000 (can be increased by opening a support ticket)
What are Lambda “layers” used for?
Additional code (libraries or custom runtime) in a .zip format for your lambda function to use.
What are some of the serverless AWS services available?
Lambda, dynamodb, API Gateway, S3, SQS, SNS, Step functions and CloudWatch Events
What is Lambda?
A serverless Function-as-a-Service (FaaS) event driven service
How to refer to Lambda function versions?
Unqualified ARN -
arn:aws:lambda:aws-region:acct-id:function:helloworld
Refers to the $LATEST “helloworld” version
Qualified ARN -
arn:aws:lambda:aws-region:acct-id:function:helloworld:42
Refers to version 42 of the helloworld function
What is AWS API Gateway?
AWS serverless service for managing HTTP, SOAP, REST traffic at scale
What languages are supported by AWS Lambda?
Go, C#, Python, Nodejs
What are the main AWS HTTP status codes and their meanings?
2xx - Success
4xx - Client error
5xx - Server side errors
400 - Bad request 401 - Unauthorized 403 - Forbidden/access denied 404 - Resource not found 409 - Conflict 429 - TooManyRequests
500 - Internal Server Error
503 - Service is unavailable
What are the DynamoDB primary key types?
Partition key - Unique item attribute
Composite key - Partition + sort key (partition and sort key combo have to be unique)
What are the different types of a DynamoDB secondary index?
Local Secondary Index
- Same partition key as primary but different sort key
- Can only create at same time table is created
Global Secondary Index
- Different partition and sort key
- Create at any time
- Eventual consistency only
- Own provisioned WCU/RCU
What is the quota for secondary indexes per table?
5 Local secondary indexes
20 Global secondary indexes per table (can be increased)
What is a WCU and RCU?
1 WCU = 1 x 1 kB write per second
1 RCU = 1 x 4 kB strongly consistent reads per second OR
2 x 4 kB eventually consistent reads per second
What are some of the ways to reduce a query time with dynamodb?
- –projection-expression : To only retrieve the attributes of each item that is needed
- Increase the WCU/RCU
- –page-size : To paginate the number of items per page
What are some of the ways to increase a scan speed to dynamodb?
- –projection-expression : To only retrieve the attributes of each item that is needed
- Increase the WCU/RCU
- –page-size : To paginate the number of items per page
- Performing a parallel scan on the dynamodb table
What are the supported documents of a dynamodb table?
HTML, XML or JSON
How is access managed to dynamodb?
IAM policies, access can be granted on a per item basis as well
What are the main db caching services?
DAX - DynamoDB accelerator, only for dynamodb
Elasticache - In memory caching
Both sit between the application and the database
What is the Lazy Loading caching strategy?
Lazy Loading - Loads data into the cache only when necessary
- Set the TTL to reduce stale data
- Little wasted resources
What is the “Write through” caching strategy?
Adds or updates data to the cache whenever data is written to the db
- Write penalty
- Wasted resources when data isn’t read
How does dynamodb support ACID?
DynamoDB transactions: Multiple reads or writes which either fails or succeeds
What is DynamoDB streams?
A time ordered sequence of item level modifications on a dynamodb table which can trigger a Lambda function
Data is stored for 24 hrs
Before and after item images can be captured
What is EFS?
EFC - Elastic File System: Simple and scalable file storage to be used with EC2
What is AWS RDS?
AWS Relational Database service