Serverless Flashcards
What does AWS X-Ray do?
it allows you to scan Lambda architecture and debug issues with AWS Lambda
Does AWS Lambda scale out automatically?
Yes
Does AWS Lambda scale up automatically?
No
Can an AWS Lambda function trigger another AWS Lambda Function?
No
What does SAM stand for?
Serverless Application Model
What is AWS SAM?
A superset of Cloudformation functionality that allows you to run serverless applications locally
What does ECS stand for?
Elastic Container Service
What is a container?
A container is a package with an application, libraries, runtime, and the tools required to run it
What are the benefits of using containers?
- Containers provide isolation benefits of virtualization with less overhead and faster start times than VMs
- Containers are portable, and offer a consistent environment
At a high level, what does ECS do?
- ECS is a managed container orchestration service
- It creates clusters to manage fleets of container deployments
- Schedules containers for optimized placement within a cluster
What is the pricing structure of ECS?
ECS is free
(although the EC2/Fargate instances that you spin up in it have standard charges)
In the context of ECS, What is a cluster?
In ECS, A cluster is a logical connection of ECS resources
In the context of ECS, what is the difference between a task definition and a container definition?
- A task definition defines your application (think Dockerfile but for ECS)
- A container definition defines the individual containers a task uses (think CPU, malloc, port mappings)
Suppose you have two containers that always need to run together. How would you ensure this in ECS?
put their container definitions under the same task definition
In the context of ECS, what is a task?
A single running copy of any containers defined in a task definition
(One working copy of your application)
In the context of ECS, what is a service?
A service allows task definitions to scale by adding tasks.
Sets a min/max number of tasks that varies with autoscaling
In the context of ECS, what is a registry?
storage for container images
Used to download images to create containers
At a high level, what is Fargate?
Fargate is a serverless container engine