Lambda Functions Flashcards
How are you billed in Lambda?
1-millisecond increments
High availability and Fault tolerance are two benefits of Lambda
True
How does Lambda scale?
In response to events.
What is an event driven Arc?
uses events to initiate actions and communication between decoupled services
T/F Consumers know who the producer is?
False: they are only aware of the router.
Who recieves events?
Those who subscirbe to them.
Are Lamda functions stateful?
No,
Synchronous Function
Synchronous events expect an immediate response from the function invocation
What services invoke a synchronous function?
Amazon API Gateway
Amazon Cognito
AWS CloudFormation
Amazon Alexa
Amazon Lex
Amazon CloudFront
asynchronous invocation
events are queued and the requestor doesn’t wait for the function to complete.
What services invoke an asynchronous function?
Amazon SNS
Amazon S3
Amazon EventBridge
Polling Invocation
poll (or watch) these services, retrieve any matching events, and invoke your functions
What services invoke an polling function?
Amazon Kinesis
Amazon SQS
Amazon DynamoDB Streams
What services can Lamda read for polling event source mapping?
Amazon DynamoDB
Amazon Kinesis Amazon MQ Amazon Managed Streaming for Apache Kafka (MSK) self-managed Apache Kafka Amazon SQS
Cold Start
a new execution environment is required to run a Lambda function.
Warm Start
the Lambda service retains the environment instead of destroying it immediately
Provisioned concurrency
is a Lambda feature that prepares concurrent execution environments before invocations, ensuring the lowest possible latency.
Permissions to invoke a lamda function are controlled how?
using an IAM resource-based policy
Permission to control what the function can to do within the other AWS services how?
using an IAM execution role
Trust Policy
A trust policy defines what actions your role can assume
What is needed for Lamda to access a VPC?
subnet IDs and security group IDs, and execution role permissions
How is PrivateLink used in Lamda Functions?
To establish a private connection between your VPC and Lambda, create an interface VPC endpoint
Ways to build Lamda Functions
You can author functions within the Lambda console, with an IDE toolkit, using command line tools, or using the AWS SDK
what is the Lamdba Console based on benefit?
Cloud9ide write, deploy, test