A Cantrill - Serverless, Event driven architectures Flashcards
What are the issues with Monolithic Architectures?
Fails Together, Scales Together, Bills Together.
Higher likelihood of failure, More difficult to scale effectively AND its cost ineffective.
What is the Lambda function timeout?
15 minutes.
What are the 2 networking modes for Lambda?
Public and VPC based (private)
What are Lambda execution roles?
IAM roles attached to the lambda functions which control PERMISSIONS the Lambda function RECEIVES.
What is a Lambda resource policy?
Controls WHAT services and accounts can INVOKE a Lambda function.
What does services does Lambda use for Logging and monitoring?
CloudWatch, CW logs, and X-Ray (distributed tracing)
What does CloudWatch Logs require for Lambda to work with it?
CW Logs require permissions via Execution role for Lambda.
What is Lambda Provisioned concurrency ?
AWS will create and keep a # of contexts (runtime, configuration) warm and ready to use. Improves speed.
What is the difference between cold and warm start in Lambda?
Cold start builds the lambda environment from scratch (runtime, config).
Warm start occurs when a lambda reuses the environment from another previously run Lambda (saves time)
What is the new version of CloudWatch Events?
EventBridge is the new version of CloudWatch Events.
EventBridge can have additional event busses that can support non AWS (3rd party, onprem) services? T or F
True. EventBridge can incorporate 3rd party or onprem services in a bus.
Under what service will you find “State Machines”?
State Machines are located under Step Functions.
What is 400 error?
Bad Request, Generic
What is 403 error?
Access Denied, Authorizer denied.
What is 429 error?
Throttling error
503?
Service unavailable
What is a 502 error
bad gateway. Lambda returned bad output