Serverless Flashcards
What Is Lambda?
AWS Lambda is a serverless computing service that lets you run code without provisioning or managing the underlying servers. It’s like you’re running code without computers.
- You can allocate up to 10 GB of RAM(direct memory, but indirect CPU) and 15 minutes of runtime.
- Has a temp storage available /temp default is 512MB and can be up to 10 GB.
Building a Function.
- You’ll need to pick from an available runtime or bring your own. This is the environment your code will run.
- If your Lambda function needs to make an AWS API call, you’ll need to attach a role.
- You can (optionally) define the VPC, subnet, and security groups your
functions are a part of. - Defining the amount of available memory will allocate how much CPU and RAM your code gets.
- What’s going to alert your Lambda function to start? Defining a trigger will kick Lambda off if that event occurs
What Is the AWS Serverless Application Repository?
Allows users to easily find, deploy, or even publish their own serverless
applications.
- Define whole applications via AWS SAM templates. Private by default.
What Is a Container?
A container is a standard unit of software that packages up code and all its
dependencies, so the application runs quickly and reliably from one computing environment to another.
What is ECS?
- ECS can manage 1, 10, hundreds, or thousands of containers. It will
appropriately place the containers and keep them online. - Containers can have individual roles attached to them, making security a
breeze. - Containers are appropriately registered with the load balancers as they come online and go offline.
- Extremely easy to set up and scale to handle any workload.
What is EKS?
The AWS-managed version of Kubernetes is called Elastic Kubernetes Service (EKS).
How do we decide when to pick ECS or EKS?
ECS:
Proprietary AWS container management solution. Best used when you’re all in on AWS and looking for something simple.
EKS:
AWS-managed version of open-source Kubernetes container management solution. Best used when you’re not all in on AWS. More work to configure and integrate with AWS
What Is Fargate?
AWS Fargate is a serverless compute engine for containers that work with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes Service (EKS).
- Linux-only workloads.
EC2 vs. Fargate
EC2:
- You are responsible for the underlying operating system
- EC2 pricing model
- Long-running containers
- Multiple containers share the same host
Fargate:
- No operating system access
- Pay based on resources allocated and time ran
- Short-running tasks
- Isolated environments
What Is EventBridge?
Amazon EventBridge (formerly known as CloudWatch Events) is a serverless event bus. It allows you to pass events from a
source to an endpoint. Essentially, it’s the glue that holds your serverless application together.
- Define patterns on when the rules will be invoked.
What is Amazon ECR?
- AWS-managed container image registry that offers secure, scalable, and
reliable infrastructure. - Private container image repositories with resource-based permissions via IAM.
- Supports Open Container Initiative (OCI images, Docker images, and OCI
artifacts. - Authentication token required for pushing and pulling images to and from registries.
What is Amazon EKS Distro?
- Amazon EKS Distro (EKS D) is a Kubernetes distribution based on
and used by Amazon EKS. - It has the same versions and dependencies deployed by Amazon EKS.
- EKS-D is fully managed by you unlike Amazon EKS, which is managed by AWS.
- Run EKS D anywhere — on-premises, in the cloud, or somewhere else!
- You are fully responsible for upgrading and managing your platforms.
What is EKS Anywhere and EKS Anywhere?
- An on-premises way to manage Kubernetes (K8s) clusters with the
same practices used for Amazon EKS. - Feature of Amazon ECS allowing
the management of containerbased apps on-premises
What is Amazon Aurora Serverless?
- On-demand and Auto Scaling configuration for the Amazon Aurora database service.
- Automation of monitoring workloads and adjusting capacity for databases
- Capacity adjusted based on application demands
- Charged only for resources consumed by DB clusters; per-second billing
- Helps customers stay well within budgets via the AutoScaling and per-second billing features
What is AWS XRAY?
- App Insights: Collects application data for viewing, filtering, and gaining insights about requests and responses.
-
Downstream: View calls to downstream AWS resources and other
microservices/APIs or databases. - Traces: Receives traces from your applications for allowing insights.
- Multiple Options: Integrated services can add tracing headers, send trace data, or run the XRay daemon.
- Tracing header: Extra HTTP header containing sampling decisions and trace ID. The tracing header containing added information is named X-Amzn-Trace-Id