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.