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
the environment a lambda function runs in is called an
execution context
full creation and configuration of a lambda environment
Cold Start
When the same execution context is reused its called a
warm start
AWS will create and keep contexts warm and ready to use is called
Provisioned Concurrency
coordinates the sending and delivery of messages through topics
Simple Notification Service (SNS)
who receives messages within SNS
Subscribers
is SNS capable of server-side encryption?
Yes
Can SNS be used cross-account?
Yes
serverless orchestration service that lets you integrate with AWS Lambda functions and other AWS services to build business-critical applications
AWS Step Function
workflows have exactly-once workflow execution and can run for up to one year
Standard workflows
workflows have at-least-once workflow execution and can run for up to five minutes
Express workflows
fully managed service developers use to create, publish, maintain, monitor, and secure APIs at any scale. Acts as the “front door” for applications to access data, business logic, or functionality from your backend services
API Gateway
error stating invalid request on the client side
400 error code client error
error state valid request backend issue
500 error code server error
bad request error
400
access denied error
403
api gateway can throttle error
429
bad gateway exception error
502
service unavailable error
503
integration failure error
504
mesages delivered at least once
standard sqs queue
messages delievered exactly once and retains exact order
FIFO queue
period of time during which Amazon SQS prevents all consumers from receiving and processing the message
Visibility Timeout
messages that are added to the queue will start off in an invisible state
delay queue
queues allow for messages which are causing repeated processing errors to be moved
Dead letter queue
collect and process large streams of data records in real time
Kinesis Data Streams
used for decoupling and asynchronous communications
SQS
designed for huge-scale ingestion with multiple consumers of real-time data requires an external consumer to store the records in a data store
Kinesis Data Streams
fully managed service for delivering NEAR real-time streaming data to destinations such as Amazon Simple Storage Service (Amazon S3)
Amazon Kinesis Data Firehose
Can data firehose use lambda for data transformation
Yes
Amazon Simple Storage Service (Amazon S3), Amazon Redshift, Amazon OpenSearch Service, Amazon OpenSearch Serverless, Splunk, and any custom HTTP endpoint or HTTP endpoints can all be accepted by Kinesis Data Firehose
True
serverless service that enables you to analyze your streaming data, acquire actionable insights, and respond to events in real-time using SQL
Amazon Kinesis Data Analytics
service that securely streams video from connected devices or sources to AWS
Amazon Kinesis Video Streams
serverless service that is primarily used for extract, transform, and
load workloads or ETL
AWS Glue
Persistent metadata about data sources in region
Data catalog
open source messsage broke based on manage apache ActiveMQ
Amazon MQ