Serverless Flashcards
What are the direct (synchronous) triggers for Lambda?
ALBs, Cognito, Lex, Alexa, API Gateway, CloudFront, Kinesis Data Firehose, Step Functions, and S3 Batch
What are the indirect (asyncrhonous) triggers for Lambda?
S3, SNS, SES, CloudFormation, CloudWatch Logs and Events, CodeCommit, Config, IoT and IoT Events, CodePipeline
You have a lambda that needs to write a record to DynamoDB. The trigger executes the lambda, but data doesn’t show up in your table. What’s up?
The lambda execution role does not have permissions to access DynamoDB
What framework is a lot like CloudFormation but for lambdas
SAM, the Serverless Application Model
What is serverless?
It allows you not to think about allocating servers, which are managed by AWS.
Which services could you use for hyperthreading?
EC2, ECS, and Lambda
How much storage space do you get in a Lambda function?
500MB by default in /tmp
How long can a Lambda execute?
From 1-15 minutes
What is the maximum amount of memory you can allocate to a Lambda?
3GB, scaling in 64MB increments from 128MB to 3GB
How long can a Lambda execute?
From 1-15 minutes
How can you exceed the 500 lambda storage limit?
You can connect to Amazon EFS via an EFS Access Point
How can you make sure your lambdas are executing for your global users at their lowest network latency?
Configure your lambda to respond to Amazon CloudFront requests, (i.e. Lambda@Edge)
How can you make sure your lambdas are executing for your global users at their lowest network latency?
Configure your lambda to respond to Amazon CloudFront requests, (i.e. Lambda@Edge)
What services can Lambda read from
Amazon Kinesis, DynamoDB, and SQS