Lambda Flashcards
What is Lambda?
A Function-as-a-Service capability for short running and focused processing.
How are you billed for Lambda?
You are billed for the duration that a functions.
What is a Lambda function?
A deployment package of function code and a runtime environment.
What are the common runtimes for Lambda?
Python, Ruby, Java, Go, and C#. Custom runtimes are possible using layers.
What is the range of memory size for Lambda?
128MB - 10240MB in 1MB steps.
How much vCPU is allocated per MB of memory?
1vCPU per 1769MB of memory.
What is the default amount of storage for Lambda and where is it located?
512MB of storage available as /tmp. This can scale up to 10240MB.
What is the function timeout length for Lambda?
15 minutes (900 seconds).
What type of networking are Lambda functions given by default?
Public networking. They can access public AWS services and the public Internet.
What is a limitation of Lambda functions having public networking?
They cannot access VPC-based services unless the VPC-based services have public IPs and the appropriate security controls are in place to allow external access.
What happens to Lambda functions that are running inside a VPC?
They obey all VPC networking rules. They cannot access public AWS services or the Internet without the appropriate services and security rules for public access.
What are Lambda execution roles?
IAM roles attached to Lambda functions which control the permissions the Lambda function receives.
What are Lambda resource policies?
A Lambda resource policy controls what services and accounts can invoke Lambda functions.
What does Lambda use for logging?
CloudWatch Logs - Lambda execution output and logs
CloudWatch - Metrics such as invocation success/failure, retries, latency, etc.
X-Ray - distributed tracing of users and sessions
What is synchronous invocation of a Lambda function?
The CLI/API or API Gateway invokes a Lambda function and waits for a response. The result (success or failure) is returned during the request. Errors and retries must be handled by the client.