Serverless and App Services Flashcards
By default, what can AWS lambda functions access?
Public AWS services and the public internet.
What are lambda execution roles?
Enable lambda function to interact with AWS services and resources.
How can lambda interact with instances in a private VPC?
Configure the lambda function to run within the VPC.
What controls the services and accounts that can invoke lambda functions?
Lambda resource policy
What AWS service can you use to get information about function success/failures, retries, latency?
Cloudwatch - specifically metrics
What is the difference between synchronous and asynchronous function invocation?
Synchronous: Pass data, get response of success or failure, typically done by human via CLI or API Gateway
Asynchronous: Typically done by AWS service, lambda handles retry upon failure (max 2 retries)
When is event source mapping used to invoke a lambda function?
Used on streams and queues which don’t support event generation to invoke lambda
What indicates the latest version of a lambda function?
$Latest
What is an execution context?
The environment a lambda function runs in. Can be cold (start form scratch) or warm (ready to go).
What is the main advantage of EventBridge over CloudWatch?
You can configure multiple event busses to route events to targets.
What is the main functionality of SNS?
Coordinates sending and delivery of messages
What types of messages are sent with SNS?
Texts, Email, mobile push, HTTP
What is the max size of an SNS message?
256 KB
What can you use when you want a stateful lambda execution or want to chain multiple lambda functions together?
Step functions
True or False: API Gateway cannot be used to connect to on premise endpoints
False