Serverless and Application Services Flashcards
uses events to trigger and communicate between decoupled services and is common in modern applications built with microservices
Event-Driven Architecture
compute service that lets you run code without provisioning or managing servers on a high-availability compute infrastructure and performs all of the administration of the compute resources
Lambda
piece of code that lambda runs
Lambda Function
you are only billed for the duration that a function runs
true
Lambda functions can run for up to 9000 seconds (15 minutes)
True
Anything involving permissions with lambda involves an execution role attached to a specific function
True
are lambda functions givien public networking by default? Can they access public AWS services and the public internet?
yes
Does lambda have access to VPC based services?
No, public IPs need to be provided and security controls must allow
Lambda functions running in a vpc obey all VPC networking rules
True
attached to lambda functions which control the permissions the lambda function receives
Execution Roles
controls what services and accounts can invoke lambda functions
Lambda Resource Policy
Does lambda use CloudWatch?
Yes
Where logs are stored from lambda executions
CloudWatch Logs
Does storing logs in CloudWatch Logs require permissions
Yes, via Execution Role
Lambda runs the function and waits for a response. When the function completes, Lambda returns the response from the function’s code with additional data, such as the version of the function that was invoked
Synchronous Invocation
When you invoke a function, you don’t wait for a response from the function code. You hand off the event to Lambda and Lambda handles the rest
Asynchronous Invocation
Invocation of a function usually done by a human
Synchronous Invocation
Invocation of a function usually done by AWS services
Asynchronous Invocation
Term for when running a lambda function and the outcome will be the same no matter how many times it is invoked
Idempotent
New feature where successful or failed events can be sent
Destination
Lambda resource that reads from an event source and invokes a Lambda function processes items from a stream or queue in services that don’t invoke Lambda functions directly
event source mappings
Permissions from the lambda execution roles are used by the event source mapping to interact with the event source
True
Does lambda have versions?
Yes